Skip to content
Open
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ observable behavior and compatibility, not every internal refactor.

### Added

- BitFun (OpenBitFun) joins as a partial source-local host: a configured-asset
provider covers user skills, agents, `config/app.json` MCP servers, hooks, and
project `.openbitfun` plus `.agents` assets, and a session-evidence adapter
reads `~/.openbitfun/projects/*/sessions/*/` metadata and turn files with
`--bitfun-home`/`OPENBITFUN_HOME` overrides. No install shell, plugin
lifecycle, or native smoke claim ships with it.

- DeepSeek Harness now ships a host shell bundle entry so
`dsh plugin --profile <name> add @qoder-ai/better-harness` registers skill
discovery and the explicit-only policy automatically, replacing the manual
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ invocation, and report-output steps. Better Harness does not use one universal
entrypoint across every host.

This README shows inline setup for the most common hosts. Additional supported
hosts (Qwen Code, Pi, Kimi Code, WorkBuddy, and Grok) keep their steps and
boundaries in the [installation guide](docs/docs/installation.mdx) and the
hosts (Qwen Code, Pi, Kimi Code, WorkBuddy, Grok, and BitFun) keep their steps
and boundaries in the [installation guide](docs/docs/installation.mdx) and the
[public Host Adapter Matrix](docs/docs/hosts/adapter-matrix.md); see
[More adapters](#more-adapters). README placement is a display choice, not a
support-level claim.
Expand Down Expand Up @@ -384,12 +384,14 @@ 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. BitFun likewise has no lifecycle profile: lifecycle targets reject it
with `UNKNOWN_HOST`, while its configured-asset and session evidence stay
available.

### 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 BitFun. 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 +404,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).
- **BitFun** — [Host Adapter Matrix](docs/docs/hosts/adapter-matrix.md#bitfun)
(partial adapter: configured assets and session evidence only; skills install
into the OpenBitFun user skills dir).

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 与 BitFun)的步骤与边界保留在
[安装指南](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 插件生命周期入口。BitFun 同样没有生命周期
profile:生命周期目标会以 `UNKNOWN_HOST` 拒绝,而它的已配置资产与会话证据仍然可用。

### 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 与 BitFun。它们确切的安装、调用与证据边界都放在文档里,以保持本 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)。
- **BitFun** —— [宿主适配器矩阵](docs/docs/hosts/adapter-matrix.md#bitfun)
(部分适配器:仅已配置资产与会话证据;Skill 需安装到 OpenBitFun 用户 Skill 目录)。

它们都产出自包含的 `report.html` 及配套的 `report.md` 与 `findings.json`;
缺失或不完整的会话证据会被明确标注。
Expand Down
32 changes: 23 additions & 9 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
Cursor, Qwen, GitHub Copilot, Pi, Kimi Code, WorkBuddy, Grok, and BitFun 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/bitfun.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 |
| BitFun | Partial source-local host | none (skills install into the OpenBitFun user skills dir) | `scripts/agent-customize/providers/bitfun.mjs` | `scripts/session-analysis/platforms/bitfun.mjs` | self-contained HTML + Markdown | user `agents/` + `config/app.json` MCP + `config/hooks.json` + project `.openbitfun` + `.agents` + 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,11 @@ 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, BitFun, 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,
Grok, and BitFun retain their configured-asset and session evidence. 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 +222,19 @@ 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`).
- BitFun configured assets are inventoried through
`scripts/agent-customize/providers/bitfun.mjs`, covering the OpenBitFun user
skills dir (builtin `.system` skills excluded), user `agents/`, `config/app.json`
MCP servers, `config/hooks.json`, the shared `.agents/skills` directories, and
project `.openbitfun` skills, agents, rules, and hooks plus `AGENTS.md` and the
compatibility instruction files. Session evidence comes from
`scripts/session-analysis/platforms/bitfun.mjs`, which scans
`~/.openbitfun/projects/<key>/sessions/<session-id>/` and trusts each
`metadata.json` workspace field instead of reimplementing the runtime project
key; turns are read from `turns/turn-%04d.json`. The adapter honors
`OPENBITFUN_HOME` and `--bitfun-home`. BitFun has no install shell, plugin
lifecycle, or native smoke evidence in this repository, so it 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 +331,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/BitFun/DeepSeek Harness visual output contract, covering
`findings.json`, `report.md`, and `report.html`.
- Markdown-only output has no visual companion.

Expand Down
2 changes: 1 addition & 1 deletion docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ until you need diagnosis. See [../models/routing.md](../models/routing.md).
| Project evidence | `better-harness core-change-watch` | Project, history, core-path, and diff signals |
| Change confidence | `hooks/git-scripts/blast-radius` | Symbol-graph blast radius of a change |
| Dependency governance | `better-harness dependency-governance` | Update automation, audit, stale-dep signals |
| Session evidence | `better-harness session-analysis` | Normalize Qoder, Codex, Claude, Augment/Auggie, Cursor, Qwen, Copilot, Pi, Kimi Code, or WorkBuddy session behavior |
| Session evidence | `better-harness session-analysis` | Normalize Qoder, Codex, Claude, Augment/Auggie, Cursor, Qwen, Copilot, Pi, Kimi Code, WorkBuddy, Grok, or BitFun session behavior |
| Agent assets | `better-harness coding-agent-practices inventory` | Inventory configured agent surfaces |
| Guardrails | `hooks/`, `scripts/agent-guardrails` | Secret scanning and lifecycle checks |

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/concepts/harness-inspector.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ The default output is:

Useful bounds include `--platform`, `--since`, `--until`, `--commits`, and
`--max-sessions`. `--platform all` discovers evidence across Qoder, Codex,
Claude Code, Cursor, Qwen Code, GitHub Copilot, Pi, Kimi Code, WorkBuddy, and
Grok, while preserving provider-specific gaps.
Claude Code, Cursor, Qwen Code, GitHub Copilot, Pi, Kimi Code, WorkBuddy, Grok,
and BitFun, while preserving provider-specific gaps.

An optional `.better-harness/feature-tree.md` supplies reviewed intent:

Expand Down
28 changes: 22 additions & 6 deletions docs/docs/hosts/adapter-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ 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 BitFun
configured-assets plus session evidence), and 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
Six have verified public Quickstart paths. Pi, Kimi Code, WorkBuddy, Grok, and
BitFun 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
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 |
| BitFun | Partial adapter | Configured-assets and session evidence only; no install or lifecycle claim | None; skills use OpenBitFun-owned paths | Workspace-matching BitFun session dirs under `~/.openbitfun/projects/` | 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 All @@ -67,8 +69,8 @@ steps without executing them. Qoder Desktop remains bundled, Codex Desktop uses
manual UI steps, Cursor installation stays unavailable while its local help
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
returns `PLUGIN_LIFECYCLE_UNSUPPORTED`. Kimi Code, Grok, and BitFun have no
validated native lifecycle contract yet, so lifecycle targets reject them with
`UNKNOWN_HOST` while their adapter evidence stays available. DSH likewise has
no lifecycle profile: lifecycle targets reject it with `UNKNOWN_HOST`; its
manually configured verified discovery and partial session evidence remain
Expand All @@ -82,7 +84,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/BitFun/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 +168,20 @@ 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.

### BitFun {#bitfun}

BitFun configured assets and workspace-matched session evidence are implemented,
and portable HTML routing reuses the generic Better Harness-owned root. The
adapter treats the product home (`~/.openbitfun` or `OPENBITFUN_HOME`), the
platform user root, and the project `.openbitfun` directory as separate storage
families. Discovery scans
`projects/<runtime-key>/sessions/<session-id>/metadata.json` and trusts its
recorded workspace fields instead of reimplementing the host-owned project key;
sessions of unknown shape still appear with explicit metadata coverage. This
repository does not ship a BitFun install shell, plugin lifecycle profile, or
npm-packaged host artifact, and no native smoke has been recorded yet, so BitFun
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. BitFun likewise has no lifecycle profile, so
lifecycle targets reject it with `UNKNOWN_HOST`. 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