@brainwav/coding-harness

中文文档
0.15.3发布于 2026/08/03Apache-2.0ES Module近 30 天下载 1.4万

SynAIpse AI Delivery Harness for evidence-backed agentic software delivery

原始使用文档
文档目录6 节
  1. doc_schema: coding-harness-doc/v1 doc_type: product authori…
  2. Start here
  3. Install
  4. Verify and close out
  5. Maintainers
  6. Claims boundary

doc_schema: coding-harness-doc/v1 doc_type: product authority: canon canon_class: canonical distribution: source-only audience: [human-operator, coding-harness-maintainer, codex-agent] lifecycle_state: active owner: coding-harness-maintainers created: 2026-06-04 last_reviewed: 2026-07-31 review_cadence: quarterly maintenance_trigger: [product-surface-change, install-workflow-change, release-contract-change] semver_impact: minor validated_by: [pnpm docs:lifecycle] depends_on: [ARCHITECTURE.md, docs/README.md, harness.contract.json]

SynAIpse

SynAIpse is a small delivery harness for AI-assisted repository work. It helps an agent understand the named task, take one useful action, run repository proof, and report local and hosted truth separately. It is not an agent runtime or a substitute for independent review.

Start here

Use the job that matches the immediate need.

JobCommandResult
Orientharness next --jsonOne task-first, read-only next action.
Diagnoseharness check --jsonFast local health and an actionable failure.
Installharness init --minimal --dry-run --jsonOne-file preview with no surprise writes.
Verifyharness verify-work --fastRepository-native focused proof.
Close outharness pr-closeout --pr <number> --jsonSeparate PR, CI, review, finding, and merge truth.

The CLI reference is the complete routine command catalogue. Internal and expert operations are intentionally absent from the default journey and require a named consumer or task scope.

Install

Install the published CLI when you need it outside this source checkout:

pnpm add -g @brainwav/coding-harness
harness next --json

For a source checkout, use the current-tree probe while developing, or build before exercising the package-facing binary:

node --import tsx src/cli.ts next --json
pnpm build
pnpm exec harness next --json

The package root resolves to the built dist/cli.js entrypoint for consumers; importing it is side-effect-free. Use the harness binary (or a direct CLI invocation) when you intend to execute a command.

Preview installation before any writes:

harness init --minimal --dry-run --json

Minimal install creates only harness.contract.json. Its compact contract explicitly selects no CI checks or review policy; it does not infer a workflow, memory system, docs site, hooks, tracker, or governance pack. Use harness contract init --preset standard --force only when a repository chooses that broader policy.

Verify and close out

Use the repository's own focused checks first. verify-work --fast keeps Local Memory out of routine execution: optional mode does not invoke its helper or daemon and does not block repository proof. Use bash scripts/codex-preflight.sh --stack auto --mode required only for an explicit Local Memory diagnostic or acceptance lane. verify-work --fast reports local validation only. It does not establish a pull request's CI, review, approval, merge, release, or deployment state.

After a PR exists, pr-closeout reports those external lanes separately. It does not approve, merge, publish, or release a change.

Maintainers

Read AGENTS.md, then CODESTYLE.md. The CLI reference is the checked command catalogue; contributor validation owns broader gates. The tag-driven private npm release workflow bootstraps the repository-pinned uv runtime before artifact validation; local checks do not prove publication. Keep the stable product surface small and move unselected expert capability out of the routine path. Keep the truth-bounded recovery status in docs/roadmap/agent-first-status.md and its weekly cadence entry in harness.contract.json current together. Routine corrections stay local, or record no_system_change with the reason, checked scope, and no-durable-destination decision; promote shared guidance only for a contradictory contract, a crossed safety boundary, recurrence across independent work, or a named current consumer that requires a reusable rule.

Claims boundary

Local command output and tests prove only their recorded local behavior. GitHub PR state, CI, review threads, approvals, merge, package publication, and release each require current evidence from their authoritative system.

版本与发布记录

@brainwav/coding-harness 共发布 251 个版本,首次发布于 2026/02/28;过去 12 个月发布了 251 个版本。

版本发布日期距今
0.15.3latest2026/08/033 个月前
0.15.02026/05/066 个月前
0.14.02026/04/256 个月前
0.13.12026/04/206 个月前
0.13.02026/04/146 个月前
0.12.12026/04/126 个月前

其他发布通道:preview → 0.8.1-pr.93.dcba8e1。

关于 @brainwav/coding-harness 的常见问题

@brainwav/coding-harness 是什么?

SynAIpse AI Delivery Harness for evidence-backed agentic software delivery

如何安装 @brainwav/coding-harness?

在项目目录运行 npm install @brainwav/coding-harness,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 harness,可以用 npx harness 直接运行。

@brainwav/coding-harness 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/brainwav__coding-harness 是否存在。

@brainwav/coding-harness 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@brainwav/coding-harness 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=26.3.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@brainwav/coding-harness 可以商用吗?

@brainwav/coding-harness 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@brainwav/coding-harness 的下载量有多少?

根据 npm 官方下载统计,@brainwav/coding-harness 在 2026/10/09 – 2026/11/07 这 30 天内被下载 13,602 次,日均约 453 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brainwav/coding-harness 还在维护吗?

最新版本 0.15.3 发布于 2026/08/03(3 个月前);至今共发布 251 个版本,其中过去 12 个月发布了 251 个;首次发布于 2026/02/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。