@data-matters.io/agent-harness

中文文档
0.1.3发布于 2026/11/01UNLICENSED零依赖

Spec-Driven Development with Claude Code: gates, task loop and standards installed into a product repository

原始使用文档

@data-matters.io/agent-harness

Spec-Driven Development with Claude Code, installed into a product repository: the Definition of Done as executable gates, a task loop that implements an approved OpenSpec change one task per session, and the standards the agent follows.

Install

Pin the package exactly and let the project's install generate the harness. pnpm refuses a version younger than its minimum release age: to adopt a release on its first day, list it in pnpm-workspace.yaml first.

minimumReleaseAgeExclude:
  - '@data-matters.io/agent-harness@<version>'
pnpm add -D -E @data-matters.io/agent-harness
pnpm exec harness init --new --stack nextjs   # or nestjs, vite; --existing for a codebase without tests
{ "scripts": { "prepare": "harness install" } }

harness init also writes .github/dependabot.yml: weekly bumps of the harness only, after a 2-day cooldown, so each bump is past pnpm's minimum release age. harness install writes the generated files (.harness/*.sh, .harness/standards/, .harness/CLAUDE.harness.md, the Claude Code Stop hook) and they stay git-ignored, so they always match the pinned version.

Commands

CommandWhat it does
harness initFirst adoption: the project-owned and seeded files, CLAUDE.md, the .gitignore entries
harness install(Re)generates the git-ignored files; idempotent
harness checkFails when the generated files are stale or edited, or a required file is missing
harness update-filesThree-way merge of the seeded files (.claude/settings.json, openspec/config.yaml) after a bump
harness pr-scopeClassifies a pull request for CI (spec-only or not) without installing the project

Run harness --help for the options.

版本与发布记录

@data-matters.io/agent-harness 共发布 5 个版本,首次发布于 2026/10/17;过去 12 个月发布了 5 个版本。

版本发布日期距今
0.1.3latest2026/11/012 天前
0.1.22026/10/313 天前
0.1.12026/10/295 天前
0.1.02026/10/1717 天前
0.0.0-stage2026/10/1717 天前

关于 @data-matters.io/agent-harness 的常见问题

@data-matters.io/agent-harness 是什么?

使用Claude代码进行规范驱动开发:将门、任务循环和标准安装到产品存储库中

如何安装 @data-matters.io/agent-harness?

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

@data-matters.io/agent-harness 支持 TypeScript 吗?

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

@data-matters.io/agent-harness 需要什么版本的 Node.js?

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

@data-matters.io/agent-harness 可以商用吗?

@data-matters.io/agent-harness 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@data-matters.io/agent-harness 还在维护吗?

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