Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"name": "HelixHarness contributors"
},
"metadata": {
"description": "Plugin marketplace for the HelixHarness repository, exposing the helixharness workflow plugin for Claude Code and Codex"
"description": "Plugin marketplace for the HelixHarness repository, exposing the helixharness workflow plugin for Claude Code, Codex and OpenCode"
},
"plugins": [
{
"name": "helix",
"description": "HelixHarness workflow plugin for Claude Code and Codex with commands and reusable skills",
"description": "HelixHarness workflow plugin for Claude Code, Codex and OpenCode with commands and reusable skills",
"source": "./helixharness",
"version": "1.0.0",
"license": "Apache-2.0"
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
>
> Your team's engineering DNA, carried into AI development.

**HelixHarness helps your team build its own AI coding harness on Codex and Claude Code.** It brings your business knowledge, engineering rules and development workflow into the agent's work—from requirements through implementation, tests, review and archive. Verified lessons stay with the project, ready for the next feature.
**HelixHarness helps your team build its own AI coding harness on Codex, Claude Code and OpenCode.** It brings your business knowledge, engineering rules and development workflow into the agent's work—from requirements through implementation, tests, review and archive. Verified lessons stay with the project, ready for the next feature.

Start with the plugin. When you want to improve the harness itself, the optional **helixharness-platform** lets maintainers observe usage, compare framework versions and evaluate candidate improvements before adopting them.

**9 commands · Codex / Claude Code · Single repo / multi-repo Workspace · Apache-2.0**
**9 commands · Codex / Claude Code / OpenCode · Single repo / multi-repo Workspace · Apache-2.0**

[Quick start](#quick-start) · [The name](#the-story-behind-the-name) · [Why HelixHarness](#why-helixharness) · [Framework iteration platform](#a-platform-for-iterating-on-helixharness) · [User guide](docs/user-guide.md)

Expand Down Expand Up @@ -63,7 +63,7 @@ Knowledge accumulates as **reviewable repository documents**. You control what b

### 1. Install the plugin

Requirements: Python 3.10+, Git and a plugin-capable Codex or Claude Code installation. Make sure the host is signed in or has its model configuration set up and is working normally.
Requirements: Python 3.10+, Git and a plugin-capable Codex, Claude Code or OpenCode installation. OpenCode requires v2.2+. Make sure the host is signed in or has its model configuration set up and is working normally.

After the repository is public, run the commands for your host in a terminal. No manual source clone is needed:

Expand All @@ -79,13 +79,18 @@ claude plugin marketplace add https://github.com/didi/helixharness.git
claude plugin install helix@helixharness-marketplace
```

The root marketplace installs the `helixharness/` plugin, not the platform. For testing before publication or modifying the plugin, use [developer installation from local source](docs/installation.md#developer-installation). See [hook verification, updates and uninstall](docs/installation.md).
```bash
# OpenCode v2.2+
opencode plugin add 'github:didi/helixharness::path:helixharness'
```

The root marketplace installs the `helixharness/` plugin, not the platform. OpenCode installs the same plugin package directly. For testing before publication or modifying the plugin, use [developer installation from local source](docs/installation.md#developer-installation). See [hook verification, updates and uninstall](docs/installation.md).

### 2. Run a small feature

The product name is **HelixHarness**; its plugin ID and command namespace are **`helix`**.

Open a new agent session in the **application repository** you want to develop. Review the plugin hooks through the host's native interface, then enter these commands in the conversation:
Open a new agent session in the **application repository** you want to develop. Codex and Claude Code users review the plugin hooks through the host's native interface; OpenCode registers its commands, skills and agents from the plugin package. Then enter these commands in the conversation:

```text
/helix:init
Expand Down Expand Up @@ -184,10 +189,10 @@ Report community bugs through [GitHub Issues](https://github.com/didi/helixharne

Two planned directions will help more teams shape HelixHarness around their development practices:

- **More coding agents.** Extend support beyond Codex and Claude Code so teams can use HelixHarness with more of their preferred tools.
- **More coding agents.** Extend support beyond Codex, Claude Code and OpenCode so teams can use HelixHarness with more of their preferred tools.
- **Configurable workflows.** Let teams configure workflow stages and their order to fit their development process.

These are planned capabilities. The current release supports Codex and Claude Code with the Propose → Apply → Archive workflow. Share concrete use cases through the [contribution guide](CONTRIBUTING.md) to help shape these directions.
These are planned capabilities. The current release supports Codex, Claude Code and OpenCode with the Propose → Apply → Archive workflow. Share concrete use cases through the [contribution guide](CONTRIBUTING.md) to help shape these directions.

## Documentation and contribution

Expand Down
19 changes: 12 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
>
> 为适配而生,为进化而设计。让团队的工程 DNA,融入 AI 研发。

**HelixHarness 帮助团队在 Codex 和 Claude Code 上构建专属的 AI Coding Harness。** 将你的业务知识、工程规范与研发工作流带入 Agent 的工作过程,从需求分析、实现、测试、评审到归档,让 AI 按团队的方式开展研发,并将经验证的经验留在项目中,供下一个需求复用。
**HelixHarness 帮助团队在 Codex、Claude Code 和 OpenCode 上构建专属的 AI Coding Harness。** 将你的业务知识、工程规范与研发工作流带入 Agent 的工作过程,从需求分析、实现、测试、评审到归档,让 AI 按团队的方式开展研发,并将经验证的经验留在项目中,供下一个需求复用。

从插件开始即可。当你希望改进 Harness 本身时,可选的 **helixharness-platform** 帮助框架维护者观测使用过程、对比框架版本,并在采纳候选改进前验证效果。

**9 个命令 · Codex / Claude Code · 单仓 / 多仓 Workspace · Apache-2.0**
**9 个命令 · Codex / Claude Code / OpenCode · 单仓 / 多仓 Workspace · Apache-2.0**

[快速开始](#快速开始) · [命名故事](#名字背后的故事) · [框架亮点](#框架亮点) · [框架迭代平台](#围绕-helixharness-框架的迭代平台) · [使用指南](docs/user-guide.zh-CN.md)

Expand Down Expand Up @@ -63,7 +63,7 @@ Knowledge 与 Harness 通过索引引导上下文加载,Specs 保存每个需

### 1. 安装插件

需要 Python 3.10+、Git,以及支持插件市场的 Codex 或 Claude Code。先确保宿主已完成登录或模型配置,能够正常使用。
需要 Python 3.10+、Git,以及 Codex、Claude Code 或 OpenCode。OpenCode 需 v2.2+。先确保宿主已完成登录或模型配置,能够正常使用。

仓库公开后,在终端选择对应宿主安装,无需先手动克隆源码:

Expand All @@ -79,11 +79,16 @@ claude plugin marketplace add https://github.com/didi/helixharness.git
claude plugin install helix@helixharness-marketplace
```

根市场会安装 `helixharness/` 插件,不会安装平台。发布前测试或修改插件时,使用[开发者安装(本地源码)](docs/installation.md#developer-installation)。详见[hooks 检查、更新与卸载](docs/installation.md)。
```bash
# OpenCode v2.2+
opencode plugin add 'github:didi/helixharness::path:helixharness'
```

根市场会安装 `helixharness/` 插件,不会安装平台;OpenCode 直接安装同一插件包。发布前测试或修改插件时,使用[开发者安装(本地源码)](docs/installation.md#developer-installation)。详见[hooks 检查、更新与卸载](docs/installation.md)。

### 2. 完成一个小需求

在要开发的**业务仓库**新开 Agent 会话,通过宿主原生界面审阅插件 hooks,然后在对话中输入:
在要开发的**业务仓库**新开 Agent 会话。Codex/Claude Code 通过宿主原生界面审阅插件 hooks;OpenCode 由插件包注册命令、Skill 和子任务角色。然后在对话中输入:

```text
/helix:init
Expand Down Expand Up @@ -182,10 +187,10 @@ python -m web_ui.demo --port 7860

接下来计划围绕两个方向,让更多团队按自己的研发方式使用 HelixHarness:

- **支持更多 Coding Agent**:在 Codex 和 Claude Code 之外扩展宿主适配,让团队能在更多熟悉的工具中使用 HelixHarness。
- **支持更多 Coding Agent**:在 Codex、Claude Code 和 OpenCode 之外扩展宿主适配,让团队能在更多熟悉的工具中使用 HelixHarness。
- **支持工作流配置**:允许团队配置工作流阶段及其顺序,适配自身的研发流程。

以上为规划能力。当前版本支持 Codex 和 Claude Code,采用 Propose → Apply → Archive 工作流。欢迎通过[贡献指南](CONTRIBUTING.md)分享具体使用场景,帮助完善这些方向。
以上为规划能力。当前版本支持 Codex、Claude Code 和 OpenCode,采用 Propose → Apply → Archive 工作流。欢迎通过[贡献指南](CONTRIBUTING.md)分享具体使用场景,帮助完善这些方向。

## 文档与贡献

Expand Down
33 changes: 25 additions & 8 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Requirements

Python 3.10+, Git and a Codex or Claude Code installation supporting plugin marketplaces are required. Make sure the host is signed in or has its model configuration set up and is working normally. The platform is optional.
Python 3.10+, Git and a Codex, Claude Code or OpenCode installation are required. Codex and Claude Code need a client that supports plugin marketplaces; OpenCode needs v2.2+ with plugin support. Make sure the host is signed in or has its model configuration set up and is working normally. The platform is optional.

The examples use Bash/Zsh. `didi/helixharness` is the planned public repository; remote commands become usable after its publication. For testing before publication or modifying the plugin, use [developer installation](#developer-installation).

Expand All @@ -26,7 +26,12 @@ claude plugin marketplace add https://github.com/didi/helixharness.git
claude plugin install helix@helixharness-marketplace
```

The repository root contains `.claude-plugin/marketplace.json`, whose `./helixharness` source points to the plugin. Both hosts consume this compatible marketplace format. The platform is not installed by these commands.
```bash
# OpenCode v2.2+
opencode plugin add 'github:didi/helixharness::path:helixharness'
```

The repository root contains `.claude-plugin/marketplace.json`, whose `./helixharness` source points to the plugin. Codex and Claude Code consume this compatible marketplace format. OpenCode installs the `helixharness/` package directly; its `package.json` exports `opencode/index.ts`. The platform is not installed by these commands.

Sources: [OpenAI plugin packaging](https://developers.openai.com/plugins/build/plugins#marketplace-metadata), [Claude Code marketplaces](https://code.claude.com/docs/en/plugin-marketplaces). Host commands and trust screens can vary with client version; use a version providing the listed commands.

Expand All @@ -48,33 +53,45 @@ claude plugin marketplace add "$HELIXHARNESS_SOURCE"
claude plugin install helix@helixharness-marketplace
```

For OpenCode, point the `plugins` array at the plugin subdirectory instead:

```jsonc
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["/absolute/path/to/helixharness/helixharness"]
}
```

A standalone plugin copy can still use the absolute path to `helixharness/`; its nested marketplace points to `.`. Register only one source under `helixharness-marketplace` at a time. When switching sources, remove the old marketplace using the host's plugin management first.

## Verify installation

Open a new host session in the application repository you want to develop. Confirm the nine public commands: `init`, `propose`, `apply`, `archive`, `bug-fix`, `ut`, `update`, `status`, `config`.

Review and trust the plugin's hooks through the host's native interface. Confirm SessionStart identifies the host and installed plugin path. Command visibility alone does not prove hooks executed. Then run `/helix:init`; check generated project hooks and project documentation before creating a feature. Repeated init should preserve unrelated host settings. For single-repository Init, required project files include nonempty `docs/harness/index.md`, `docs/knowledge/index.md` and `docs/knowledge/project-context.md`; also check the other outputs required for the detected project type. A final completion message is not a substitute for those checks.
Codex and Claude Code review and trust the plugin's hooks through the host's native interface. Confirm SessionStart identifies the host and installed plugin path. Command visibility alone does not prove hooks executed. OpenCode registers `helix:<command>` commands, `helix-<skill>` method skills and `helix-<agent>` subagent roles from its plugin package; it has no SessionStart hook, so run `/helix:status` once and confirm the admitted text contains `canonical_host_id: opencode`, the current `plugin_root` and `repo_root`.

Then run `/helix:init`; check generated project hooks and project documentation before creating a feature. Repeated init should preserve unrelated host settings. For single-repository Init, required project files include nonempty `docs/harness/index.md`, `docs/knowledge/index.md` and `docs/knowledge/project-context.md`; also check the other outputs required for the detected project type. A final completion message is not a substitute for those checks.

If an entrypoint reports `plugin_source_mismatch`, its executing copy differs from the source bound to the session. Check the active marketplace and installed plugin, keep the intended source selected, and start a new session. Use resources from that installation; do not mix another checkout or cached version into the workflow.

## Updates

Run `/helix:update` in the host conversation. The plugin checks the configured marketplace, shows an available update and uses the host adapter after authorization.

- **Git source:** the host refreshes the configured repository; use the same marketplace for later versions.
- **Codex / Claude Code Git source:** the host refreshes the configured repository; use the same marketplace for later versions.
- **OpenCode:** `plugin_update=unsupported`, so `/helix:update` returns `continue_silently`. Update with `opencode plugin update`, or re-run `opencode plugin add` for a pinned revision.
- **Local source:** update the source copy yourself first, then check for updates. The plugin does not pull an arbitrary local checkout automatically. If the copy was cloned, review its working tree and update it using your normal Git workflow.
- Start a new host session after updating; review changed hooks when the host requests it.


## Uninstall

Use the host's plugin management to uninstall `helix@helixharness-marketplace`. Generated project knowledge, requirements and business code are retained. Review project hook settings separately if you no longer want the host to invoke HelixHarness in that application repository.
Use the host's plugin management to uninstall `helix@helixharness-marketplace`. For OpenCode use `opencode plugin remove helixharness-opencode` or remove the directory from `plugins`. Generated project knowledge, requirements and business code are retained. Review project hook settings separately if you no longer want the host to invoke HelixHarness in that application repository.

## 中文说明

需要 Python 3.10+、Git,以及支持插件市场的 Codex 或 Claude Code。先确保宿主已完成登录或模型配置,能够正常使用。平台不是安装插件的前置条件。
需要 Python 3.10+、Git,以及 Codex、Claude Code 或 OpenCode。Codex/Claude Code 需支持插件市场;OpenCode 需 v2.2+ 并支持插件。先确保宿主已完成登录或模型配置,能够正常使用。平台不是安装插件的前置条件。

正式发布后使用上面的 GitHub 安装命令,无需先手动克隆源码。发布前测试或修改插件时,使用[开发者安装(本地源码)](#developer-installation):先下载或克隆源码,再从**包含两个子项目的根目录**添加本地市场。根市场指向 `./helixharness`,不会安装平台。独立插件副本仍可添加插件目录本身;同名市场只保留一个来源。
正式发布后使用上面的 GitHub 安装命令,无需先手动克隆源码。发布前测试或修改插件时,使用[开发者安装(本地源码)](#developer-installation):先下载或克隆源码,再从**包含两个子项目的根目录**添加本地市场。根市场指向 `./helixharness`,不会安装平台。独立插件副本仍可添加插件目录本身;同名市场只保留一个来源。OpenCode 直接把 `helixharness/` 插件目录加入 `plugins` 数组。

安装后新开会话,确认九个命令可见、插件 hooks 已审阅并实际执行,再在业务仓库运行 `/helix:init` 并检查项目 hooks。单仓 Init 还需检查非空的 `docs/harness/index.md`、`docs/knowledge/index.md`、`docs/knowledge/project-context.md` 及对应项目类型要求的其他产物,不能只看“已完成”回复。若出现 `plugin_source_mismatch`,先核对市场来源与当前安装插件,选定正确来源并新开会话,避免混用其他 checkout 或缓存版本。更新使用 `/helix:update`;本地来源需先自行更新源码,不能把版本识别成功当作已完成跨版本升级。
安装后新开会话,确认九个命令可见、插件 hooks 已审阅并实际执行,再在业务仓库运行 `/helix:init` 并检查项目 hooks。OpenCode 没有 SessionStart hook:确认 `helix:*` 命令、`helix-*` 方法 Skill 和子任务角色可见,并执行一次 `/helix:status`,检查正文包含 `canonical_host_id: opencode`、当前 `plugin_root` 与 `repo_root`。单仓 Init 还需检查非空的 `docs/harness/index.md`、`docs/knowledge/index.md`、`docs/knowledge/project-context.md` 及对应项目类型要求的其他产物,不能只看“已完成”回复。若出现 `plugin_source_mismatch`,先核对市场来源与当前安装插件,选定正确来源并新开会话,避免混用其他 checkout 或缓存版本。更新使用 `/helix:update`;本地来源需先自行更新源码,不能把版本识别成功当作已完成跨版本升级。OpenCode 的 `/helix:update` 返回 `continue_silently`,请使用 `opencode plugin update` 手动更新。
Loading