harnessed 4.49.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/messages/en.json CHANGED
@@ -20,7 +20,9 @@
20
20
  "setup.mcp_hint": "Run /mcp in Claude Code to verify MCP server connections.",
21
21
  "setup.mcp_hint_codex": "Run codex mcp list to verify MCP server connections.",
22
22
  "setup.search_key_hint.header": "\n⚠ Search MCP API keys missing — the server(s) below are installed but will fail at query time until the key is configured:",
23
+ "setup.search_key_hint.header_codex": "\n⚠ Search MCP API keys not visible to this check: Codex checks only process env. Verify the tools first; if authentication fails, set the key in your shell environment.",
23
24
  "setup.search_key_hint.line": " {{server}}: set {{envVar}} — add it to the ~/.claude/settings.json \"env\" block (e.g. {\"env\": {\"{{envVar}}\": \"<your-key>\"}}) or export {{envVar}} in your shell",
25
+ "setup.search_key_hint.line_codex": " {{server}}: set {{envVar}} in your shell environment (export {{envVar}}=\"<your-key>\")",
24
26
  "setup.optional_offer.ecc_note": " ecc (bonus tier): installing it unlocks finer-grained scenario orchestration (per-language review/build expert routing etc.); the trade-off is ~20k+ tokens/session of static listing overhead — inherent to ECC's own scale (281 skills / 94 commands / 67 agents), not introduced by harnessed.",
25
27
  "setup.bundled_summary": "\nharnessed workflows bundled at <packageRoot>/workflows/ (share-only, read-only)",
26
28
  "setup.bundled_location": "",
@@ -20,7 +20,9 @@
20
20
  "setup.mcp_hint": "Run /mcp in Claude Code to verify MCP server connections.",
21
21
  "setup.mcp_hint_codex": "Run codex mcp list to verify MCP server connections.",
22
22
  "setup.search_key_hint.header": "\n⚠ 搜索类 MCP 缺少 API key — 下列 server 已安装,但未配置 key 前查询会失败:",
23
+ "setup.search_key_hint.header_codex": "\n⚠ 本次检查未观察到搜索类 MCP API key: Codex 仅检查 process env。请先验证工具;若出现认证失败,再在 shell 环境中设置 key。",
23
24
  "setup.search_key_hint.line": " {{server}}: 需配置 {{envVar}} — 写入 ~/.claude/settings.json 的 \"env\" 块(如 {\"env\": {\"{{envVar}}\": \"<your-key>\"}})或在 shell 中 export {{envVar}}",
25
+ "setup.search_key_hint.line_codex": " {{server}}: 请在 shell 环境中设置 {{envVar}} (export {{envVar}}=\"<your-key>\")",
24
26
  "setup.optional_offer.ecc_note": " ecc(bonus tier): 安装后点亮更细化的场景编排(语言级 review/build 专家路由等);代价是每 session 约 2 万余 tokens 的静态列表开销 — 由 ECC 自身规模(281 skills/94 commands/67 agents 清单加载)决定,非 harnessed 引入。",
25
27
  "setup.bundled_summary": "\nharnessed workflows 已 bundle 于 <packageRoot>/workflows/(只读共享)",
26
28
  "setup.bundled_location": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harnessed",
3
- "version": "4.49.1",
3
+ "version": "5.0.0",
4
4
  "description": "AI coding harness package manager + composition orchestrator",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -53,6 +53,7 @@
53
53
  "schemas",
54
54
  "README.md",
55
55
  "README-en.md",
56
+ "README-zh.md",
56
57
  "LICENSE",
57
58
  "NOTICE",
58
59
  "THIRD-PARTY-NOTICES.md"
@@ -69,6 +70,9 @@
69
70
  "test:coverage": "vitest run --coverage --passWithNoTests",
70
71
  "test:codex-live": "node ./scripts/codex-live/run.mjs",
71
72
  "bench": "vitest bench --run",
73
+ "bench:runtime": "node scripts/benchmark-runtime.mjs",
74
+ "test:runtime-channels": "node scripts/runtime-channel-smoke.mjs",
75
+ "test:docs": "node --test tests/docs/install-channels.contract.mjs",
72
76
  "lint": "biome check .",
73
77
  "lint:fix": "biome check --write .",
74
78
  "format": "biome format --write .",
@@ -1320,6 +1320,25 @@
1320
1320
  "type": "integer"
1321
1321
  }
1322
1322
  }
1323
+ },
1324
+ "uninstall": {
1325
+ "additionalProperties": false,
1326
+ "type": "object",
1327
+ "required": [
1328
+ "cmd"
1329
+ ],
1330
+ "properties": {
1331
+ "cmd": {
1332
+ "minLength": 1,
1333
+ "type": "string"
1334
+ },
1335
+ "cleanup_paths": {
1336
+ "type": "array",
1337
+ "items": {
1338
+ "type": "string"
1339
+ }
1340
+ }
1341
+ }
1323
1342
  }
1324
1343
  }
1325
1344
  }
@@ -200,6 +200,12 @@ capabilities:
200
200
  install_type: plugin
201
201
  plugin_id: ui-ux-pro-max
202
202
  cmd: /ui-ux-pro-max
203
+ by_host:
204
+ codex:
205
+ impl: user-skill
206
+ cmd: $ui-ux-pro-max
207
+ install_type: user-skill
208
+ skill_dir: ui-ux-pro-max
203
209
  since: v2.0
204
210
  category: tool-slash-cmd
205
211
  description: UI/UX 默认主方案 数据驱动
@@ -222,7 +228,7 @@ capabilities:
222
228
 
223
229
  playwright-cli:
224
230
  impl: npm-cli
225
- cmd: playwright
231
+ cmd: playwright-cli
226
232
  since: v2.0
227
233
  category: tool-bundled-skill
228
234
  description: "AI 实时操作浏览器 一行 Bash (手层 — 探查 / 调试 / 一次性交互)"
@@ -234,18 +240,24 @@ capabilities:
234
240
  cmd: "@playwright/test"
235
241
  since: v2.0
236
242
  category: tool-plugin
237
- description: "E2E test framework TypeScript (脑层 — 写测试 / 跑 CI / 断言 / fixtures / reporter)"
243
+ description: "E2E test framework TypeScript (project-level dependency; install @playwright/test in the project; global playwright-cli does not provide project imports)"
238
244
  routing_note:
239
245
  - subtask.type == 'e2e_test' AND subtask.language == 'typescript'
240
246
 
241
247
  webapp-testing:
242
- impl: gstack
248
+ impl: user-skill
243
249
  install_type: user-skill
244
- skill_dir: gstack
250
+ skill_dir: webapp-testing
245
251
  cmd: /webapp-testing
252
+ by_host:
253
+ codex:
254
+ impl: user-skill
255
+ cmd: $webapp-testing
256
+ install_type: user-skill
257
+ skill_dir: webapp-testing
246
258
  since: v2.0
247
259
  category: tool-bundled-skill
248
- description: "Python 后端联动 E2E (筋骨层 — Python Playwright + with_server.py)"
260
+ description: "Anthropic webapp-testing skill + with_server.py; Python Playwright is a project-level dependency, never installed automatically"
249
261
  routing_note:
250
262
  - subtask.type == 'e2e_test' AND subtask.language == 'python'
251
263
 
@@ -515,6 +527,12 @@ capabilities:
515
527
  install_type: plugin
516
528
  plugin_id: planning-with-files
517
529
  cmd: /plan
530
+ by_host:
531
+ codex:
532
+ impl: user-skill
533
+ cmd: $planning-with-files
534
+ install_type: user-skill
535
+ skill_dir: planning-with-files
518
536
  since: v2.0
519
537
  category: tool-plugin
520
538
  description: Manus-style persistent markdown planning (Claude Code plugin slash cmd)
@@ -84,6 +84,12 @@ primitives:
84
84
  claude: "SendMessage"
85
85
  codex: "send_input"
86
86
 
87
+ # Planning plugin command on Claude, manifest-installed user-skill on Codex.
88
+ planning_command:
89
+ default:
90
+ claude: "/plan"
91
+ codex: "$planning-with-files"
92
+
87
93
  # The formation noun. codex v1 has no branded team concept — per F4 the
88
94
  # formation IS repeated spawn_agent, so the codex cell is descriptive prose
89
95
  # rather than a tool name. If a call site reads badly after substitution,
@@ -343,6 +349,9 @@ primitives:
343
349
  # ─────────────────────────────────────────────────────────────────────────────
344
350
  host_map_notes:
345
351
  codex:
352
+ - "Codex planning helper paths take precedence over upstream legacy examples: expand `~/.agents/skills/planning-with-files/scripts/session-catchup.py` to an absolute path before invoking it with a working Python 3 interpreter and `-B`. Resolve native `init-session.ps1` and `check-complete.ps1` under that same scripts directory on Windows; use their `.sh` siblings on Linux/macOS. Templates live at `~/.agents/skills/planning-with-files/templates/`. These installed paths override `$CLAUDE_PLUGIN_ROOT` and `~/.claude/skills/planning-with-files` examples; do not create legacy Claude directories or rewrite upstream skills. This path mapping does not register Claude plugin hooks on Codex."
353
+ - "Codex UI helper paths take precedence over upstream legacy examples: expand `~/.agents/skills/ui-ux-pro-max/scripts/search.py` to an absolute path and invoke it with a working Python 3 interpreter and `-B`. Its `data/` belongs to the same installed skill root. Do not resolve `.shared/ui-ux-pro-max/scripts/search.py` against the project cwd or create that legacy project directory. Prefer the resolved installed absolute path regardless of the current working directory."
346
354
  - "`request_user_input` — TODO(未验证): the tool exists upstream (`codex-rs/core/src/tools/handlers/request_user_input{,_spec}.rs`), but whether it is enabled on this install was not measured. The `default_mode_request_user_input` entry in `codex features list` is a mode flag, not the tool's own switch. If a clarification round-trip is unavailable, do not guess — stop and report `STATUS: NEEDS_CLARIFICATION` with the questions."
347
- - "Claude Code plugin components — some workflow prose names an upstream component distributed as a Claude Code plugin (e.g. `planning-with-files`, invoked as `/plan`). That is the component's actual distribution channel, not a Claude Code-specific spelling of something codex also has, so the wording is left as-is. On this host those components are NOT installed: harnessed reports it at capability-resolution time as a per-capability warning. Treat such a step as unavailable rather than substituting an equivalent, and record the skip."
355
+ - "Codex user-skill mappings — load `planning-with-files` from `~/.agents/skills/planning-with-files/SKILL.md` and invoke `$planning-with-files`; load `ui-ux-pro-max` from `~/.agents/skills/ui-ux-pro-max/SKILL.md` and invoke `$ui-ux-pro-max`. Keep the same planning outputs: `task_plan.md`, `progress.md`, and `findings.md`. On this host, interpret legacy planning-with-files `/plan` references and Claude Code plugin requirements for these two components through their Codex user-skill mappings; never invoke harnessed's `/plan` master for planning-with-files, which would recurse."
356
+ - "Unsupported Claude Code plugin components — `code-review` and `code-simplifier` have no declared Codex install mapping and remain unavailable on this host. Record the skip rather than substituting an equivalent."
348
357
  - "codex agent lifecycle — session scope, automatic reclamation on session exit, and whether an agent may spawn another are ALL unmeasured. Nothing in this artifact asserts them. Close every agent you spawn with `close_agent` explicitly rather than relying on any cleanup you have not observed."
@@ -72,6 +72,12 @@ primitives:
72
72
  claude: "SendMessage"
73
73
  codex: "send_input"
74
74
 
75
+ # Planning plugin command on Claude, manifest-installed user-skill on Codex.
76
+ planning_command:
77
+ default:
78
+ claude: "/plan"
79
+ codex: "$planning-with-files"
80
+
75
81
  # 编队名词。codex v1 无品牌化编队概念 —— 按 F4,编队方式就是多次 spawn_agent,
76
82
  # 所以 codex cell 是描述性短语而非工具名。若某句替换后读起来别扭,那句应改判
77
83
  # 为 C 类整段变体,而不是硬套本 token。
@@ -314,6 +320,9 @@ primitives:
314
320
  # ─────────────────────────────────────────────────────────────────────────────
315
321
  host_map_notes:
316
322
  codex:
323
+ - "Codex planning helper 路径优先于上游 legacy 示例:先把 `~/.agents/skills/planning-with-files/scripts/session-catchup.py` 展开为绝对路径,再用可运行的 Python 3 interpreter 和 `-B` 调用。Windows 的 native `init-session.ps1`、`check-complete.ps1` 从同一 scripts 目录解析;Linux/macOS 使用对应 `.sh` 文件。模板位于 `~/.agents/skills/planning-with-files/templates/`。这些安装路径覆盖 `$CLAUDE_PLUGIN_ROOT` 和 `~/.claude/skills/planning-with-files` 示例;不要创建 legacy Claude 目录或改写上游 skill。路径映射不会在 Codex 注册 Claude plugin hooks。"
324
+ - "Codex UI helper 路径优先于上游 legacy 示例:把 `~/.agents/skills/ui-ux-pro-max/scripts/search.py` 展开为绝对路径,用可运行的 Python 3 interpreter 和 `-B` 调用。其 `data/` 属于同一个已安装 skill 根目录。不要相对项目 cwd 解析 `.shared/ui-ux-pro-max/scripts/search.py`,也不要创建该 legacy 项目目录。无论当前工作目录在哪,都优先使用已解析的安装绝对路径。"
317
325
  - "`request_user_input` —— TODO(未验证):该工具在上游确实存在(`codex-rs/core/src/tools/handlers/request_user_input{,_spec}.rs`),但**本机是否默认启用未实测**。`codex features list` 里的 `default_mode_request_user_input` 是某个模式的 flag,不是该工具自身的开关。若澄清 round-trip 不可用,**不要猜** —— 停下并输出 `STATUS: NEEDS_CLARIFICATION` + 问题列表。"
318
- - "Claude Code plugin 类组件 —— 本产物部分正文会提到以 Claude Code plugin 形式分发的上游组件(如 `planning-with-files`,调用形式 `/plan`)。那是该组件**真实的分发渠道名称**,不是「codex 上也有、只是叫法不同」的东西,所以措辞按原样保留。**在本宿主上这些组件并未安装**:harnessed 会在能力解析阶段按 capability 逐条告警。遇到这类步骤请视为**不可用**并记录 skip,不要自行找等价物替代。"
326
+ - "Codex user-skill 映射:从 `~/.agents/skills/planning-with-files/SKILL.md` 读取 `planning-with-files`,调用 `$planning-with-files`;从 `~/.agents/skills/ui-ux-pro-max/SKILL.md` 读取 `ui-ux-pro-max`,调用 `$ui-ux-pro-max`。规划产物保持相同:`task_plan.md`、`progress.md`、`findings.md`。本宿主上,旧正文中 planning-with-files `/plan` 的引用和这两项组件的 Claude Code plugin 要求均按其 Codex user-skill 映射解释;绝不能为 planning-with-files 调用 harnessed 的 `/plan` master,否则会递归。"
327
+ - "仍 unsupported 的 Claude Code plugin 组件:`code-review` 和 `code-simplifier` 没有声明 Codex 安装映射,在本宿主上仍不可用。请记录 skip,不要自行找等价物替代。"
319
328
  - "codex agent 生命周期 —— 是否 session-scoped、session 退出是否自动回收、能否嵌套 spawn,**三者全部未实测**。本产物不对它们作任何断言。请对每个 spawn 出来的 agent **显式**调 `close_agent`,不要依赖任何你没有亲自观察过的清理行为。"
@@ -263,7 +263,7 @@ prompts:
263
263
  - "Dependencies are explicit (task N requires task M output)"
264
264
  - "Tasks are ≤1 day each; split if larger"
265
265
  - "Identify the verification step (test / lint / typecheck) for each task"
266
- - "Persist as `task_plan.md` + `progress.md` under `.planning/phases/<NN>-<slug>/` via planning-with-files `/plan`"
266
+ - "Persist as `task_plan.md` + `progress.md` under `.planning/phases/<NN>-<slug>/` via planning-with-files `{{ host.planning_command }}`"
267
267
  - "Final pass: a fresh agent should be able to execute from these files alone"
268
268
  severity: "ready-to-execute / needs-revision / blocked"
269
269
  description: "Break a phase into ordered tasks with file paths + acceptance criteria; persist via planning-with-files."
@@ -313,7 +313,7 @@ prompts:
313
313
  ≤200 LOC per file. Conditionally invoke `/improve-codebase-architecture`
314
314
  for periodic health audits, `/diagnosing-bugs` for unknown bug root
315
315
  causes. Update `progress.md` via
316
- planning-with-files `/plan` when done.
316
+ planning-with-files `{{ host.planning_command }}` when done.
317
317
  checklist:
318
318
  - "Before any edit: read the file you intend to change end-to-end"
319
319
  # v4.17.0 — CodeGraph light wiring (opt-in; sister capabilities.yaml `codegraph` entry)
@@ -323,7 +323,7 @@ prompts:
323
323
  - "Trust internal code: don't re-validate already-checked inputs at every layer"
324
324
  - "No speculative abstractions (no 'just in case' generics)"
325
325
  - "Edit with surgical precision: full path, exact selectors, no broad rewrites"
326
- - "Update progress.md before declaring done (planning-with-files `/plan`)"
326
+ - "Update progress.md before declaring done (planning-with-files `{{ host.planning_command }}`)"
327
327
  # improve-codebase-architecture methodology paraphrased from mattpocock/skills (MIT, b8be62f)
328
328
  # Source: skills/engineering/improve-codebase-architecture/SKILL.md
329
329
  - "improve-arch: hunt deepening opportunities — modules whose interface is nearly as complex as their implementation are shallow; deep modules hide a lot of behaviour behind a small interface"
@@ -246,7 +246,7 @@ prompts:
246
246
  - "依赖显式化(任务 N 需要任务 M 的产出)"
247
247
  - "每个任务 ≤1 天;更大就拆"
248
248
  - "为每个任务指明验证步骤(test / lint / typecheck)"
249
- - "经 planning-with-files `/plan` 持久化为 `task_plan.md` + `progress.md`,目录为 `.planning/phases/<NN>-<slug>/`"
249
+ - "经 planning-with-files `{{ host.planning_command }}` 持久化为 `task_plan.md` + `progress.md`,目录为 `.planning/phases/<NN>-<slug>/`"
250
250
  - "最后过一遍:一个全新 agent 仅凭这些文件就能执行"
251
251
  severity: "ready-to-execute / needs-revision / blocked"
252
252
  description: "把 phase 拆成带文件路径 + 验收标准的有序任务;经 planning-with-files 持久化。"
@@ -292,7 +292,7 @@ prompts:
292
292
  在 karpathy 4 心法(Think Before Coding / Simplicity First /
293
293
  Surgical Changes / Goal-Driven Execution)约束下实现单个子任务,
294
294
  每个文件 ≤200 LOC。视情况调用 `/improve-codebase-architecture`
295
- (周期性健康审计)、`/diagnosing-bugs`(未知 bug 根因)。完成时经 planning-with-files `/plan`
295
+ (周期性健康审计)、`/diagnosing-bugs`(未知 bug 根因)。完成时经 planning-with-files `{{ host.planning_command }}`
296
296
  更新 `progress.md`。
297
297
  checklist:
298
298
  - "任何编辑前:把你打算改的文件从头到尾读一遍"
@@ -303,7 +303,7 @@ prompts:
303
303
  - "信任内部代码:别在每一层重复校验已检查过的输入"
304
304
  - "不做投机性抽象(不写『以防万一』的泛型)"
305
305
  - "外科手术式编辑:完整路径、精确选择器,不做大范围重写"
306
- - "宣告完成前更新 progress.md(planning-with-files `/plan`)"
306
+ - "宣告完成前更新 progress.md(planning-with-files `{{ host.planning_command }}`)"
307
307
  # improve-codebase-architecture methodology paraphrased from mattpocock/skills (MIT, b8be62f)
308
308
  # Source: skills/engineering/improve-codebase-architecture/SKILL.md
309
309
  - "improve-arch:猎取加深机会 —— 接口几乎和实现一样复杂的模块是浅模块;深模块在小接口背后藏了大量行为"