Skip to content
Draft
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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,13 @@ Host differences remain explicit. Qoder Desktop is bundled, Cursor is
session-only while its native command contract is being reconciled, Pi
lifecycle commands without current native evidence remain manual or
unavailable, and WorkBuddy has no managed Better Harness plugin lifecycle
surface.
surface. OpenClaw has neither a lifecycle profile nor a session-evidence
contract, so only its configured assets are inventoried.

### More adapters

Beyond the hosts above, Better Harness also supports Qwen Code, Pi, Kimi Code,
WorkBuddy, and Grok. Their exact install, invocation, and
WorkBuddy, Grok, and OpenClaw. Their exact install, invocation, and
evidence boundaries live in the docs so this README stays focused:

- **Qwen Code** — [installation guide](docs/docs/installation.mdx#qwen-code)
Expand All @@ -402,6 +403,9 @@ evidence boundaries live in the docs so this README stays focused:
(`.kimi-plugin/plugin.json` plugin install).
- **WorkBuddy** — [Host Adapter Matrix](docs/docs/hosts/adapter-matrix.md#workbuddy).
- **Grok** — [Host Adapter Matrix](docs/docs/hosts/adapter-matrix.md#grok).
- **OpenClaw** — [Host Adapter Matrix](docs/docs/hosts/adapter-matrix.md#openclaw)
(partial adapter: configured assets only; live sessions stay in per-agent
SQLite, so no session evidence ships).

Each produces a self-contained `report.html` with paired `report.md` and
`findings.json`; missing or partial session evidence stays explicit.
Expand Down
11 changes: 7 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
不同宿主的入口并不完全相同,请直接使用对应章节给出的命令。

本 README 仅内联展示最常用宿主的安装步骤。其余受支持的宿主(Qwen Code、Pi、
Kimi Code、WorkBuddy 与 Grok)的步骤与边界保留在
Kimi Code、WorkBuddy、Grok 与 OpenClaw)的步骤与边界保留在
[安装指南](docs/docs/installation.mdx)和[公开宿主适配矩阵](docs/docs/hosts/adapter-matrix.md)中;
参见[更多适配器](#更多适配器)。README 中的排布只是展示选择,并不代表支持等级。

Expand Down Expand Up @@ -184,7 +184,8 @@ better-harness plugin verify --host qwen --surface cli

宿主差异会保持显式:Qoder Desktop 为内置分发;Cursor 在原生命令合同完成核对前
只保留会话级状态;Pi 缺少当前原生证据的生命周期操作会标记为手工或不可用;
WorkBuddy 没有可管理的 Better Harness 插件生命周期入口。
WorkBuddy 没有可管理的 Better Harness 插件生命周期入口。OpenClaw 既没有生命周期
profile,也没有会话证据契约,因此只清点其已配置资产。

### Claude Code

Expand Down Expand Up @@ -363,8 +364,8 @@ Copilot 不记录逐次响应的 token 用量,VS Code Copilot Chat 也没有

### 更多适配器

除上述宿主外,Better Harness 还支持 Qwen Code、Pi、Kimi Code、WorkBuddy 与
Grok。它们确切的安装、调用与证据边界都放在文档里,以保持本 README 精简:
除上述宿主外,Better Harness 还支持 Qwen Code、Pi、Kimi Code、WorkBuddy、
Grok 与 OpenClaw。它们确切的安装、调用与证据边界都放在文档里,以保持本 README 精简:

- **Qwen Code** —— [安装指南](docs/docs/installation.mdx#qwen-code)
(`qwen extensions install QoderAI/better-harness`)。
Expand All @@ -376,6 +377,8 @@ Grok。它们确切的安装、调用与证据边界都放在文档里,以保
(`.kimi-plugin/plugin.json` 插件安装)。
- **WorkBuddy** —— [宿主适配器矩阵](docs/docs/hosts/adapter-matrix.md#workbuddy)。
- **Grok** —— [宿主适配器矩阵](docs/docs/hosts/adapter-matrix.md#grok)。
- **OpenClaw** —— [宿主适配器矩阵](docs/docs/hosts/adapter-matrix.md#openclaw)
(部分适配器:仅已配置资产;实时会话保存在各 agent 的 SQLite 中,不提供会话证据)。

它们都产出自包含的 `report.html` 及配套的 `report.md` 与 `findings.json`;
缺失或不完整的会话证据会被明确标注。
Expand Down
36 changes: 26 additions & 10 deletions docs/adapters/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Host Adapter Matrix

This is the single entry point for Claude Code, Augment/Auggie, Codex, Qoder,
Cursor, Qwen, GitHub Copilot, Pi, Kimi Code, WorkBuddy, and Grok host
boundaries, plus the
Cursor, Qwen, GitHub Copilot, Pi, Kimi Code, WorkBuddy, Grok, and OpenClaw
host boundaries, plus the
DeepSeek Harness (DSH) verified install/discovery, developer-preview
configured-assets, session, Asset Practices, neutral Harness analysis, and
Evidence Bundle slices, plus qualified portable HTML report rendering. Do not
create `docs/adapters/claude-code.md`, `docs/adapters/codex.md`,
`docs/adapters/qoder.md`, `docs/adapters/cursor.md`, `docs/adapters/qwen.md`,
`docs/adapters/copilot.md`, `docs/adapters/pi.md`,
`docs/adapters/kimi-code.md`, `docs/adapters/workbuddy.md`, or
`docs/adapters/grok.md` by default.
`docs/adapters/kimi-code.md`, `docs/adapters/workbuddy.md`,
`docs/adapters/grok.md`, or `docs/adapters/openclaw.md` by default.

Adding another host? Follow
[Contributing a New Coding Agent Host](contributing-new-coding-agent.md) before
Expand Down Expand Up @@ -48,6 +48,7 @@ project `.kimi-code/skills/`), then runs `/skill:better-harness`.
| Kimi Code | Analysis-capable source-local host | `.kimi-plugin/plugin.json` | `scripts/agent-customize/providers/kimi.mjs` | `scripts/session-analysis/platforms/kimi.mjs` | self-contained HTML + Markdown | `AGENTS.md` + `~/.kimi-code/skills` + project `.kimi-code/skills`/`.kimi/skills` + `~/.kimi-code/mcp.json` | `harness evidence-bundle --platform kimi` -> validated `html` render |
| WorkBuddy | Analysis-capable source-local host | none (skills install into `~/.workbuddy/skills`) | `scripts/agent-customize/providers/workbuddy.mjs` | `scripts/session-analysis/platforms/workbuddy.mjs` | self-contained HTML + Markdown | `~/.workbuddy` `AGENTS.md` + identity files + `.agents` + `AGENTS.md` | `session-analysis --platform workbuddy sources` -> validated `html` render |
| Grok | Analysis-capable source-local host | none (skills install into `~/.grok/skills`) | `scripts/agent-customize/providers/grok.mjs` | `scripts/session-analysis/platforms/grok.mjs` | self-contained HTML + Markdown | `~/.grok` + `.grok` + `.agents` + `AGENTS.md` | `session-analysis --platform grok sources` -> skill symlink -> validated `html` render |
| OpenClaw | Partial source-local host | none (skills install into OpenClaw-owned skill roots) | `scripts/agent-customize/providers/openclaw.mjs` | none; live sessions stay in per-agent SQLite | self-contained HTML + Markdown | state `skills/`, per-agent `workshop-skills`, `openclaw.json` `mcp.servers`, agent workspace `skills/` + `.agents/skills` + instruction files | fixture-covered focused tests only; no native smoke yet |
| DeepSeek Harness (DSH) | Verified install/discovery for headless/base and Web `standard`/`code`/`cordis`; shared read-only analysis over developer-preview configured and Session evidence | `.dsh-plugin/cordis.patch.yml` host shell (one Cordis bundle row naming `scripts/dsh-skill-discovery/bundle.mjs`, which loads the local policy at `scripts/dsh-skill-discovery/index.mjs`); no lifecycle shell | `scripts/agent-customize/providers/dsh.mjs`; filesystem Skills and cwd-sensitive Instructions, configured-not-observed | `scripts/session-analysis/platforms/dsh.mjs`; `dsh-v1` for the audited format-0 session-evidence slice from DSH `dsh-v0.1.0-rc.7` and `dsh-v0.1.0-rc.8`, raw `.jsonl` and feature-detected `.jsonl.zstd` | self-contained HTML + Markdown | canonical Skill from the complete root; model Skill calls rejected | `dsh plugin --profile <name> add @qoder-ai/better-harness` -> `npm run test:dsh-bundle`; `npm run test:dsh-native`; `npm run test:dsh-configured-assets-native`; validated portable `html` render and native output-root inertness |

## Read-only Plugin Lifecycle
Expand Down Expand Up @@ -85,11 +86,12 @@ Plans never execute and always preserve native surface differences:
| Pi CLI / CLI session | Persistent user/project install guidance and inventory; separate `pi -e` session-only activation whose update/remove operations are not applicable |
| WorkBuddy | `PLUGIN_LIFECYCLE_UNSUPPORTED`; adapter evidence remains available |

Kimi Code, Grok, and DSH are absent from this table on purpose: none has a
validated native lifecycle contract yet, so lifecycle targets reject them with
`UNKNOWN_HOST` instead of borrowing another host's install route. Kimi Code and
Grok retain their configured-asset and session evidence. DSH retains its
bounded verified discovery, configured-assets, and partial session-evidence
Kimi Code, Grok, OpenClaw, and DSH are absent from this table on purpose: none
has a validated native lifecycle contract yet, so lifecycle targets reject them
with `UNKNOWN_HOST` instead of borrowing another host's install route. Kimi Code
and Grok retain their configured-asset and session evidence, OpenClaw retains
its configured-asset inventory, and DSH retains its bounded verified discovery,
configured-assets, and partial session-evidence
slices, but has no lifecycle profile or native lifecycle claim.

The lifecycle commands do not read raw session transcripts, contact a registry,
Expand Down Expand Up @@ -221,6 +223,20 @@ edit host settings, or register an `apply` path.
`signals.json`). The adapter honors `GROK_HOME`. Grok has no install shell in
this repository; skills install manually into `~/.grok/skills` (symlink is
enough for `/better-harness`).
- OpenClaw configured assets are inventoried through
`scripts/agent-customize/providers/openclaw.mjs`, covering managed skills under
the state directory, per-agent `workshop-skills`, the personal
`~/.agents/skills` root in a default state directory, `mcp.servers` from the
JSON5 `openclaw.json`, and the agent workspace `skills/`, `.agents/skills`,
and `AGENTS.md`/`SOUL.md`/`USER.md`/`IDENTITY.md`/`MEMORY.md`/`BOOT.md`
instruction files. The adapter resolves `agents.defaults.workspace` and
`agents.entries.<agentId>.workspace` to attribute the requested workspace, and
it reports an unparsed config as unparsed instead of empty. The adapter honors
`OPENCLAW_STATE_DIR`, `OPENCLAW_CONFIG_PATH`, `--openclaw-home`, and
`--openclaw-config-path`. Live sessions stay in per-agent SQLite, which this
repository does not decode, so no session-evidence slice ships; OpenClaw has no
install shell, plugin lifecycle, or native smoke evidence in this repository
and stays a partial adapter outside the verified Quickstart set.
- DeepSeek Harness has independent bounded capabilities. Verified
install/discovery uses DSH `0.1.1-rc.2` at audited source
`b150a551b8d465e31e418e1b2eaf5e79bbb7d28e`. The supported discovery route is
Expand Down Expand Up @@ -317,7 +333,7 @@ Canonical templates live under `templates/reporting/`.
`findings.json`, Canvas-only `canvas.json`, and `report.canvas.tsx`.
- `cursor-canvas.md`: Cursor Canvas output contract, covering the complete
report, native Context Usage projection, and public IDE actions.
- `html-visual.md`: portable Claude Code/Codex/Qwen/Copilot/Pi/Kimi Code/WorkBuddy/Grok/DeepSeek Harness visual output contract, covering
- `html-visual.md`: portable Claude Code/Codex/Qwen/Copilot/Pi/Kimi Code/WorkBuddy/Grok/OpenClaw/DeepSeek Harness visual output contract, covering
`findings.json`, `report.md`, and `report.html`.
- Markdown-only output has no visual companion.

Expand Down
33 changes: 27 additions & 6 deletions docs/docs/hosts/adapter-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ host-neutral.
## Support levels

Better Harness currently declares ten more complete capability-level host
adapters, a partial Augment/Auggie session-only adapter, plus bounded DSH
adapters, two partial adapters (Augment/Auggie session-only and OpenClaw
configured-assets only), plus bounded DSH
discovery, configured-assets, and session slices.
Six have verified public Quickstart paths. Pi, Kimi Code, WorkBuddy, and Grok
are visible as adapter support because their installation and end-to-end
evidence boundaries differ from that six-host set. DSH has Verified
Six have verified public Quickstart paths. Pi, Kimi Code, WorkBuddy, Grok, and
OpenClaw are visible as adapter support because their installation and
end-to-end evidence boundaries differ from that six-host set. DSH has Verified
install/discovery for a qualified runtime/preset boundary plus developer-preview
configured-assets and session-evidence contracts. It supports shared read-only
Asset Practices, neutral Harness analysis, Evidence Bundles, and qualified
Expand All @@ -41,6 +42,7 @@ remains the complete capability-level source of truth.
| Kimi Code | Adapter support | Analysis-capable source-local host | `.kimi-plugin/plugin.json` | Workspace-matching Kimi wire transcripts | Self-contained HTML + Markdown |
| WorkBuddy | Adapter support | Analysis-capable source-local host | None; skills use WorkBuddy-owned paths | Workspace-matching WorkBuddy JSONL transcripts | Self-contained HTML + Markdown |
| Grok | Adapter support | Analysis-capable source-local host | None; skills use Grok-owned paths | Workspace-matching Grok session dirs (`updates.jsonl`) | Self-contained HTML + Markdown |
| OpenClaw | Partial adapter | Configured assets only; no install, lifecycle, or session-evidence claim | None; skills use OpenClaw-owned paths | None; live sessions stay in per-agent SQLite | Self-contained HTML + Markdown |
| DeepSeek Harness (DSH) | Verified install/discovery | Qualified headless/base and Web `standard`/`code`/`cordis`; shared read-only analysis over partial configured-assets and session evidence | `.dsh-plugin/cordis.patch.yml` Cordis bundle shell plus the local DSH Cordis policy; no lifecycle shell | DSH JSONL backend session format `0`: raw `.jsonl` and feature-detected `.jsonl.zstd` | Self-contained HTML + Markdown |

The `@qoder-ai/better-harness` npm package includes all eight plugin metadata
Expand Down Expand Up @@ -69,7 +71,10 @@ contract is stale, persistent Pi operations without native evidence stay
unavailable, transient Pi update/remove are not applicable, and WorkBuddy
returns `PLUGIN_LIFECYCLE_UNSUPPORTED`. Kimi Code and Grok have no validated
native lifecycle contract yet, so lifecycle targets reject them with
`UNKNOWN_HOST` while their adapter evidence stays available. DSH likewise has
`UNKNOWN_HOST` while their adapter evidence stays available. OpenClaw has no
lifecycle profile and no session-evidence contract either, so lifecycle targets
reject it with `UNKNOWN_HOST` and only its configured assets are inventoried.
DSH likewise has
no lifecycle profile: lifecycle targets reject it with `UNKNOWN_HOST`; its
manually configured verified discovery and partial session evidence remain
available. The shadow host profiles do not replace the canonical adapter matrix
Expand All @@ -82,7 +87,7 @@ lifecycle target.
`canvas.json`, and `report.canvas.tsx`.
- **Cursor Canvas** — the same complete report contract rendered with
`cursor/canvas`, native Context Window evidence, and IDE actions.
- **HTML visual** — portable Claude Code/Codex/Qwen/Copilot/Pi/Kimi Code/WorkBuddy/Grok/DeepSeek Harness contract
- **HTML visual** — portable Claude Code/Codex/Qwen/Copilot/Pi/Kimi Code/WorkBuddy/Grok/OpenClaw/DeepSeek Harness contract
covering `findings.json`, `report.md`, and a self-contained `report.html`
(see the [sample report](pathname:///demo/better-harness-report/)).
- **Markdown-only** — no visual companion.
Expand Down Expand Up @@ -166,6 +171,22 @@ npm-packaged host artifact; installation is a manual skill symlink into
outside the verified Quickstart set until a complete interactive report-loop
smoke is observed.

### OpenClaw {#openclaw}

OpenClaw configured assets are inventoried through
`scripts/agent-customize/providers/openclaw.mjs`, and portable HTML routing
reuses the generic Better Harness-owned root. The adapter keeps the state
directory (`~/.openclaw` or `OPENCLAW_STATE_DIR`) apart from each agent
workspace, attributes the requested workspace to a configured agent, and
inventories `mcp.servers` from the JSON5 `openclaw.json` plus managed, personal,
and per-agent workshop skills. Live sessions and transcripts live in per-agent
SQLite, which this repository does not decode, and `openclaw sessions
export-trajectory` writes into the workspace it exports, so no session-evidence
slice ships. This repository does not ship an OpenClaw install shell, plugin
lifecycle profile, or npm-packaged host artifact, and no native smoke has been
recorded yet, so OpenClaw stays a partial adapter outside the verified
Quickstart set.

### DeepSeek Harness (DSH) {#deepseek-harness-dsh}

DSH has Verified install/discovery against DSH `0.1.1-rc.2` at audited source
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Plans preserve host differences instead of inventing a common mutation path.
Qoder Desktop is bundled, Codex Desktop returns manual UI steps, Cursor remains
session-only while its native command contract is reconciled, Pi operations
without current native evidence are manual or unavailable, and WorkBuddy has no
managed plugin lifecycle surface. There is no `plugin apply` command.
managed plugin lifecycle surface. OpenClaw has neither a lifecycle profile nor a
session-evidence contract, and only its configured assets are inventoried. There
is no `plugin apply` command.

Git can clone the Cursor manifest for inspection, but manifest presence alone
does not establish a supported installation route.
Expand Down
Loading
Loading