harnessed 4.32.19 → 4.32.21
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/README.md +9 -8
- package/bin/harnessed-inject-state.mjs +280 -258
- package/bin/harnessed-stop-hook.mjs +93 -82
- package/dist/cli.mjs +157 -24
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/optional/ecc.yaml +20 -0
- package/manifests/skill-packs/ui-ux-pro-max.yaml +37 -24
- package/manifests/tools/chrome-devtools-mcp.yaml +33 -13
- package/manifests/tools/tavily-mcp.yaml +4 -1
- package/package.json +1 -1
- package/workflows/auto/SKILL.md +2 -2
- package/workflows/auto/SKILL.zh-Hans.md +2 -2
- package/workflows/capabilities.yaml +5 -1
- package/workflows/judgments/web-search-routing.yaml +3 -0
- package/workflows/plan/auto/SKILL.md +2 -2
- package/workflows/plan/auto/SKILL.zh-Hans.md +2 -2
- package/workflows/ship/auto/SKILL.md +2 -2
- package/workflows/ship/auto/SKILL.zh-Hans.md +2 -2
- package/workflows/task/auto/SKILL.md +2 -2
- package/workflows/task/auto/SKILL.zh-Hans.md +2 -2
- package/workflows/task/test/SKILL.md +1 -1
- package/workflows/task/test/SKILL.zh-Hans.md +1 -1
- package/workflows/task/test/workflow.yaml +1 -1
- package/workflows/verify/auto/SKILL.md +2 -2
- package/workflows/verify/auto/SKILL.zh-Hans.md +2 -2
- package/manifests/tools/exa-mcp.yaml +0 -39
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,SAqGb,CAAA;;;AClGO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.32.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,SAqGb,CAAA;;;AClGO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"4.32.21\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup && node ./scripts/build-hooks.mjs\",\n \"build:hooks\": \"node ./scripts/build-hooks.mjs\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\",\n \"build:binary\": \"bun scripts/build-binary.mjs\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"esbuild\": \"0.27.7\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
|
|
@@ -52,6 +52,26 @@ spec:
|
|
|
52
52
|
timeout_ms: 10000
|
|
53
53
|
uninstall:
|
|
54
54
|
cmd: "claude plugin uninstall ecc@ecc"
|
|
55
|
+
# 4.32.21 — codex channel. ECC is multi-harness: CC = plugin marketplace
|
|
56
|
+
# (above); codex = README-recommended sync flow (clone + scripts/
|
|
57
|
+
# sync-ecc-to-codex.sh, which merges AGENTS.md/skills/prompts/agents into
|
|
58
|
+
# ~/.codex with timestamped backups; codex marketplace route is experimental
|
|
59
|
+
# and NOT recommended upstream — "pick one path only per harness").
|
|
60
|
+
# Prerequisite: run Codex once so ~/.codex/config.toml exists. The clone is
|
|
61
|
+
# KEPT (gstack-style pre-clean, not self-cleaning) so D-15 SHA-verify can
|
|
62
|
+
# rev-parse it against git_ref. idempotent/verify are WEAK checks — they
|
|
63
|
+
# probe the kept clone cache, not the ~/.codex merge state (sync output has
|
|
64
|
+
# no stable pinned artifact contract).
|
|
65
|
+
harness_overrides:
|
|
66
|
+
codex:
|
|
67
|
+
install:
|
|
68
|
+
method: git-clone-with-setup
|
|
69
|
+
cmd: "rm -rf ~/.codex/.cache/ecc && git clone https://github.com/affaan-m/ECC.git ~/.codex/.cache/ecc && cd ~/.codex/.cache/ecc && bash scripts/sync-ecc-to-codex.sh"
|
|
70
|
+
git_ref: ec92b528471df708c2384ebbcc82b390b60f535a
|
|
71
|
+
idempotent_check: "test -d ~/.codex/.cache/ecc/.git"
|
|
72
|
+
verify:
|
|
73
|
+
cmd: "test -d ~/.codex/.cache/ecc/.git"
|
|
74
|
+
timeout_ms: 10000
|
|
55
75
|
upstream_health:
|
|
56
76
|
stability: unstable
|
|
57
77
|
last_check: "2026-06-17"
|
|
@@ -1,41 +1,54 @@
|
|
|
1
1
|
# yaml-language-server: $schema=../../schemas/manifest.v1.schema.json
|
|
2
|
+
#
|
|
3
|
+
# 4.32.21 — install method changed from `git-clone-with-setup` (self-pack:
|
|
4
|
+
# clone midwayjs/midway v4-next, cp .codex/skills/ui-ux-pro-max into
|
|
5
|
+
# ~/.claude/skills) to `cc-plugin-marketplace` — the official
|
|
6
|
+
# nextlevelbuilder/ui-ux-pro-max-skill plugin supersedes the git self-pack
|
|
7
|
+
# (auto-updating, kills the plugin-skill + user-skill dual-load). Third-party
|
|
8
|
+
# marketplace ⇒ two-stage cmd (`marketplace add` first); sister
|
|
9
|
+
# karpathy-skills.yaml pattern. codex keeps the midway git-clone path via
|
|
10
|
+
# harness_overrides (`claude plugin` is a Claude Code-only concept).
|
|
2
11
|
apiVersion: harnessed/v1
|
|
3
12
|
kind: Manifest
|
|
4
13
|
metadata:
|
|
5
14
|
name: ui-ux-pro-max
|
|
6
|
-
display_name: ui-ux-pro-max
|
|
7
|
-
description: Data-driven, standards-based UI/UX expert skill
|
|
15
|
+
display_name: ui-ux-pro-max
|
|
16
|
+
description: Data-driven, standards-based UI/UX expert skill, installed as the official ui-ux-pro-max Claude Code plugin.
|
|
8
17
|
upstream:
|
|
9
18
|
source: midwayjs/midway
|
|
10
19
|
homepage: https://github.com/midwayjs/midway/tree/v4-next/.codex/skills/ui-ux-pro-max
|
|
11
20
|
repository: https://github.com/midwayjs/midway.git
|
|
12
21
|
license: MIT
|
|
13
22
|
notice: |
|
|
14
|
-
ui-ux-pro-max skill
|
|
15
|
-
|
|
23
|
+
ui-ux-pro-max skill (MIT), distributed as a Claude Code plugin via the
|
|
24
|
+
nextlevelbuilder/ui-ux-pro-max-skill marketplace (4.32.21 — supersedes
|
|
25
|
+
the git-clone-with-setup self-pack from midwayjs/midway v4-next, which
|
|
26
|
+
dual-loaded next to the plugin). Third-party marketplace ⇒ two-stage
|
|
27
|
+
install (`claude plugin marketplace add` + `claude plugin install`).
|
|
28
|
+
codex installs still use the midway git-clone path (harness_overrides).
|
|
16
29
|
spec:
|
|
17
|
-
type: cc-
|
|
30
|
+
type: cc-plugin
|
|
18
31
|
component_type: command
|
|
19
32
|
category: design
|
|
20
|
-
install_type:
|
|
33
|
+
install_type: skill
|
|
21
34
|
install:
|
|
22
|
-
method:
|
|
23
|
-
cmd: "
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
method: cc-plugin-marketplace
|
|
36
|
+
cmd: "claude plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill && claude plugin install ui-ux-pro-max@ui-ux-pro-max-skill"
|
|
37
|
+
# 4.32.21 — local marketplace cache 实测版本 (~/.claude/plugins/cache/ui-ux-pro-max-skill/ui-ux-pro-max/2.5.0/)
|
|
38
|
+
git_ref: 2.5.0
|
|
39
|
+
idempotent_check: "claude plugin list 2>&1 | grep -qw ui-ux-pro-max"
|
|
40
|
+
marketplace_source:
|
|
41
|
+
source: github
|
|
42
|
+
repo: nextlevelbuilder/ui-ux-pro-max-skill
|
|
29
43
|
verify:
|
|
30
|
-
cmd: "
|
|
31
|
-
timeout_ms:
|
|
32
|
-
expected_exit_code: 0
|
|
44
|
+
cmd: "claude plugin list 2>&1 | grep -qw ui-ux-pro-max"
|
|
45
|
+
timeout_ms: 10000
|
|
33
46
|
uninstall:
|
|
34
|
-
cmd: "
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
#
|
|
38
|
-
#
|
|
47
|
+
cmd: "claude plugin uninstall ui-ux-pro-max@ui-ux-pro-max-skill"
|
|
48
|
+
# v4.14.0 — codex install path unchanged by the 4.32.21 plugin migration:
|
|
49
|
+
# `claude plugin` does not exist on codex, so codex keeps the upstream midway
|
|
50
|
+
# .codex/skills git-clone into shared ~/.agents/skills (codex descriptor
|
|
51
|
+
# skillsDir).
|
|
39
52
|
harness_overrides:
|
|
40
53
|
codex:
|
|
41
54
|
install:
|
|
@@ -47,9 +60,9 @@ spec:
|
|
|
47
60
|
cmd: "test -f ~/.agents/skills/ui-ux-pro-max/SKILL.md"
|
|
48
61
|
timeout_ms: 5000
|
|
49
62
|
upstream_health:
|
|
50
|
-
stability:
|
|
51
|
-
last_check: "2026-
|
|
52
|
-
last_known_good_version:
|
|
63
|
+
stability: stable
|
|
64
|
+
last_check: "2026-07-29"
|
|
65
|
+
last_known_good_version: "2.5.0"
|
|
53
66
|
fallback_action: warn
|
|
54
67
|
signed_by: easyinplay
|
|
55
68
|
platforms:
|
|
@@ -11,28 +11,48 @@ metadata:
|
|
|
11
11
|
repository: https://github.com/ChromeDevTools/chrome-devtools-mcp.git
|
|
12
12
|
license: Apache-2.0
|
|
13
13
|
notice: |
|
|
14
|
-
chrome-devtools-mcp by ChromeDevTools team (Apache-2.0,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
chrome-devtools-mcp by ChromeDevTools team (Apache-2.0), distributed as
|
|
15
|
+
a Claude Code plugin via the BUILT-IN claude-plugins-official marketplace
|
|
16
|
+
(4.32.21 — supersedes the mcp-stdio-add install pinning npm ^0.1.0; the
|
|
17
|
+
official plugin auto-updates + fuller toolset).
|
|
18
|
+
ECC bundles a same-name connector by default — ecc users set
|
|
19
|
+
ECC_DISABLED_MCPS=chrome-devtools at ECC install/sync to avoid a duplicate.
|
|
20
|
+
testing category — perf / a11y / memory-leak (`perf-a11y-memory` rule).
|
|
17
21
|
spec:
|
|
18
|
-
type:
|
|
22
|
+
type: cc-plugin
|
|
19
23
|
component_type: mcp-tool
|
|
20
24
|
category: testing
|
|
21
|
-
install_type:
|
|
25
|
+
install_type: skill
|
|
22
26
|
install:
|
|
23
|
-
method:
|
|
24
|
-
cmd: "claude
|
|
25
|
-
|
|
26
|
-
idempotent_check: "claude
|
|
27
|
+
method: cc-plugin-marketplace
|
|
28
|
+
cmd: "claude plugin install chrome-devtools-mcp@claude-plugins-official"
|
|
29
|
+
git_ref: 1.6.0
|
|
30
|
+
idempotent_check: "claude plugin list 2>&1 | grep -qw chrome-devtools-mcp"
|
|
27
31
|
verify:
|
|
28
|
-
cmd: "claude
|
|
32
|
+
cmd: "claude plugin list 2>&1 | grep -qw chrome-devtools-mcp"
|
|
29
33
|
timeout_ms: 10000
|
|
30
34
|
uninstall:
|
|
31
|
-
cmd: "claude
|
|
35
|
+
cmd: "claude plugin uninstall chrome-devtools-mcp@claude-plugins-official"
|
|
36
|
+
# 4.32.21 — codex has no claude plugin ecosystem; without an override the
|
|
37
|
+
# cc-plugin-marketplace method hits the CLAUDE_ONLY_METHODS harness-mismatch
|
|
38
|
+
# gate (regression vs the pre-4.32.21 mcp-stdio-add manifest, which installed
|
|
39
|
+
# fine on codex via the installer's internal platform routing). Keep codex on
|
|
40
|
+
# the npm stdio MCP path (^1.6.0 — npm latest, also unpins the old ^0.1.0);
|
|
41
|
+
# cmd stays claude-shaped, the mcpStdioAdd codex arm translates it.
|
|
42
|
+
harness_overrides:
|
|
43
|
+
codex:
|
|
44
|
+
install:
|
|
45
|
+
method: mcp-stdio-add
|
|
46
|
+
cmd: "claude mcp add --scope project --transport stdio chrome-devtools-mcp -- npx --yes chrome-devtools-mcp@^1.6.0"
|
|
47
|
+
npm_version: ^1.6.0
|
|
48
|
+
idempotent_check: "claude mcp list | grep -q chrome-devtools-mcp"
|
|
49
|
+
verify:
|
|
50
|
+
cmd: "claude mcp list | grep -q chrome-devtools-mcp"
|
|
51
|
+
timeout_ms: 10000
|
|
32
52
|
upstream_health:
|
|
33
53
|
stability: stable
|
|
34
|
-
last_check: "2026-
|
|
35
|
-
last_known_good_version: "
|
|
54
|
+
last_check: "2026-07-29"
|
|
55
|
+
last_known_good_version: "1.6.0"
|
|
36
56
|
fallback_action: warn
|
|
37
57
|
signed_by: easyinplay
|
|
38
58
|
platforms:
|
|
@@ -31,7 +31,10 @@ spec:
|
|
|
31
31
|
last_check: "2026-05-11"
|
|
32
32
|
last_known_good_version: 0.2.19
|
|
33
33
|
fallback_action: use_alternative
|
|
34
|
-
|
|
34
|
+
# 4.32.21 — was exa-mcp; that manifest is deleted (exa is now provided by
|
|
35
|
+
# the ECC plugin's built-in hosted exa MCP). Alternative points at the
|
|
36
|
+
# optional ecc manifest (manifests/optional/ecc.yaml).
|
|
37
|
+
alternative: ecc
|
|
35
38
|
signed_by: easyinplay
|
|
36
39
|
platforms:
|
|
37
40
|
- linux
|
package/package.json
CHANGED
package/workflows/auto/SKILL.md
CHANGED
|
@@ -120,13 +120,13 @@ Do NOT pipe to `harnessed run auto` — that is the CI/headless path (in-process
|
|
|
120
120
|
that blocks the session, bypasses Agent Teams, and hangs inside Claude Code).
|
|
121
121
|
|
|
122
122
|
1. FIRST run the discuss stage interactively in THIS session (spawned subagents cannot ask the user questions). Evaluate strategic / phase / subtask clarification criteria for "$ARGUMENTS"; dialogue with the user (AskUserQuestion) for each layer that fires, lock decisions, transparent-skip the rest. After locking blocking decisions, relay the deferrable set to the user in a single batched AskUserQuestion with each agent-recommended default pre-selected — deferrable defers scheduling, not user authority; only skip an item if the user explicitly defers it again. Produce a locked spec.
|
|
123
|
-
2. Bash: `harnessed gates auto --task "<locked spec>" --skip-sub
|
|
123
|
+
2. Bash: `harnessed gates auto --task "<locked spec>" --skip-sub discuss` → parse the JSON `{fire, skip, parallelism}`. This is the plan SoT (no spawn). Keep the verbatim JSON. For a small self-contained task (single-file / single-page class), the sanctioned lite path is adding `--skip-sub verify --skip-sub retro` (repeatable / comma-separated) — skipped subs are still recorded in the ledger with reasons; lite ≠ freestyle (the ledger/evidence IS the difference).
|
|
124
124
|
3. Bash: `harnessed checkpoint start auto --plan '<the verbatim gates JSON from step 2>'` → seeds the per-sub ledger so `harnessed status --recover` can re-orient you after compaction.
|
|
125
125
|
4. If `parallelism.escalate_to_teams === true`: read `~/.claude/rules/agent-teams.md`, then drive the fired subs as an Agent Team (`TeamCreate` → `Agent(name, team_name, …)` per sub with its `harnessed prompt <sub>` prompt → coordinate via `SendMessage` → `SendMessage shutdown_request` + `TeamDelete`). Still checkpoint each sub (`complete` / `fail`) as below.
|
|
126
126
|
- **Teardown is a MUST-in-finally contract, not best-effort**: regardless of whether every sub reached COMPLETE, max_iterations was exhausted, or you consider the work done, before you end the run you MUST `SendMessage shutdown_request` to every teammate + `TeamDelete`. Skipping teardown leaves orphan teammate processes that hang the host (headless especially — issue #7: an 11h hang, work complete but the process never exited).
|
|
127
127
|
- **Headless never spawns teams**: in a headless session (`claude -p`) `harnessed gates` already returns `escalate_to_teams: false` (Agent Teams are session-scoped — lost on `/resume`, incompatible with `-p`). Do NOT `TeamCreate` or background-`Agent` spawn in headless even if you think it would parallelize — run the fired subs sequentially in-session instead.
|
|
128
128
|
5. Otherwise, for each fired sub in `order` (serial subs sequentially, parallel subs concurrently):
|
|
129
|
-
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
129
|
+
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → repeat this loop for ITS fired subs.
|
|
130
130
|
- **Else (leaf sub):**
|
|
131
131
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → parse `{prompt, max_iterations, model}`.
|
|
132
132
|
b. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, use the native goal gate instead (Claude Code 2.1.139+ / Codex): `/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"` then spawn the subagent and let the goal evaluator drive re-spawns until it clears. If `/goal` is unavailable too, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations). Set the goal only at the leaf subtask level — `/goal` is single-slot per session and a nested goal overwrites the outer one.
|
|
@@ -118,13 +118,13 @@ Sister `workflows/capabilities.yaml`:
|
|
|
118
118
|
session、绕过 Agent Teams,在 Claude Code 内部调用时会挂死)。
|
|
119
119
|
|
|
120
120
|
1. 先在**本 session** 交互式跑 discuss 阶段(spawned subagent 无法向用户提问):对 "$ARGUMENTS" 评估 strategic / phase / subtask 澄清判据,对每个 fire 的层用 AskUserQuestion 与用户对话锁决策,其余透明 skip。blocking 集锁定后,把 deferrable 集以单轮批量 AskUserQuestion 转达给用户(各项 agent 推荐默认值预选)—— deferrable 推迟的是排期,不是用户决策权;仅当用户明确再次推迟才可跳过该项。产出 locked spec。
|
|
121
|
-
2. Bash: `harnessed gates auto --task "<locked spec>" --skip-sub
|
|
121
|
+
2. Bash: `harnessed gates auto --task "<locked spec>" --skip-sub discuss` → 解析 JSON `{fire, skip, parallelism}`。这是 plan SoT(不 spawn)。保留 verbatim JSON。自包含小任务(单文件/单页面级)的合规轻量路径:追加 `--skip-sub verify --skip-sub retro`(可重复/逗号分隔)——被 skip 的 sub 仍带原因进 ledger;lite ≠ freestyle(差别就在 ledger/evidence)。
|
|
122
122
|
3. Bash: `harnessed checkpoint start auto --plan '<step 2 的 verbatim gates JSON>'` → seed per-sub ledger,让 `harnessed status --recover` 能在 compaction 后给你重新定位。
|
|
123
123
|
4. 若 `parallelism.escalate_to_teams === true`:读 `~/.claude/rules/agent-teams.md`,然后把 fired subs 作为 Agent Team 驱动(`TeamCreate` → 每个 sub `Agent(name, team_name, …)` + 其 `harnessed prompt <sub>` prompt → 用 `SendMessage` 协调 → `SendMessage shutdown_request` + `TeamDelete`)。每个 sub 仍按下方 checkpoint(`complete` / `fail`)。
|
|
124
124
|
- **teardown 是 finally 强制契约,非尽力而为**:无论是否每个 sub 都到达 COMPLETE、max_iterations 是否耗尽、或你是否认为工作已完成,收尾前你都**必须**对每个 teammate `SendMessage shutdown_request` + `TeamDelete`。跳过 teardown 会留下孤儿 teammate 进程挂起宿主(headless 尤甚 —— issue #7:挂 11 小时,工作已完成但进程从不退出)。
|
|
125
125
|
- **headless 绝不 spawn team**:headless session(`claude -p`)下 `harnessed gates` 已返回 `escalate_to_teams: false`(Agent Teams 是 session-scoped —— `/resume` 即丢,与 `-p` 不兼容)。即使你认为能并行,headless 下也**不要** `TeamCreate` 或背景 `Agent` spawn —— 改为在 session 内顺序驱动 fired subs。
|
|
126
126
|
5. 否则,对 `order` 里每个 fired sub(serial 串行、parallel 并发):
|
|
127
|
-
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
127
|
+
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → 对它的 fired subs 重复本循环。
|
|
128
128
|
- **否则(leaf sub):**
|
|
129
129
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
130
130
|
b. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,改用原生 goal gate(Claude Code 2.1.139+ / Codex):`/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"`,随后 spawn subagent,由 goal 评估器驱动重 spawn 直到目标清除。若 `/goal` 也不可用,自循环:spawn → 检查输出 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。goal 只在叶子 subtask 层设置 — `/goal` 每 session 单槽,嵌套 goal 会覆盖外层。
|
|
@@ -277,7 +277,11 @@ capabilities:
|
|
|
277
277
|
cmd: web_fetch_exa
|
|
278
278
|
since: v2.0
|
|
279
279
|
category: tool-mcp
|
|
280
|
-
|
|
280
|
+
# 4.32.21 — manifests/tools/exa-mcp.yaml 已删;provider = ECC MCP catalog
|
|
281
|
+
# opt-in (mcp-configs/mcp-servers.json 手动拷入 .mcp.json, hosted
|
|
282
|
+
# https://mcp.exa.ai/mcp, 同名工具 web_search_exa / web_fetch_exa;
|
|
283
|
+
# ≤2.0.0-rc.1 旧版曾默认 bundle, 2026-06 MCP connector audit 后退役为 opt-in)。
|
|
284
|
+
description: "描述式/学术 Web 搜索 (覆盖默认 Tavily 的场景 — 描述式查询 / 学术 / 批量抓多 URL); provider = ECC MCP catalog opt-in (mcp-configs/mcp-servers.json); 未 opt-in 时本 capability 不可用, fallback 走 tavily-mcp / 内置 WebSearch (web-search-routing 已有 fallback 分支)"
|
|
281
285
|
fires_when:
|
|
282
286
|
- subtask.needs_web_search == true AND subtask.search_type in ['descriptive', 'academic']
|
|
283
287
|
|
|
@@ -24,6 +24,9 @@ triggers:
|
|
|
24
24
|
description: |
|
|
25
25
|
Exa MCP 覆盖默认 — 描述式查询 / 学术论文 / 批量抓多 URL /
|
|
26
26
|
用户明说"研究/深度调研" / Token 敏感 (Exa highlights 密度约 2× Tavily)。
|
|
27
|
+
Provider 说明 (4.32.21): exa 由 ECC MCP catalog opt-in 提供
|
|
28
|
+
(mcp-configs/mcp-servers.json 手动拷入 .mcp.json; ≤2.0.0-rc.1 旧版曾默认
|
|
29
|
+
bundle); 未 opt-in → 本分支不 fire, 落 tavily-mcp 默认分支 / 内置 WebSearch。
|
|
27
30
|
fires_when: "subtask.needs_web_search == true and subtask.search_type in ['descriptive', 'academic']"
|
|
28
31
|
invokes:
|
|
29
32
|
- capability: exa-mcp
|
|
@@ -68,11 +68,11 @@ Do NOT pipe to `harnessed run plan` — that is the CI/headless path (in-process
|
|
|
68
68
|
that blocks the session, bypasses Agent Teams, and hangs inside Claude Code).
|
|
69
69
|
|
|
70
70
|
1. If the clarification criteria fire for "$ARGUMENTS" (≥2 approaches / core algorithm / API contract / high error cost), clarify interactively in THIS session first (AskUserQuestion) and lock decisions; otherwise transparent-skip. Produce a locked spec.
|
|
71
|
-
2. Bash: `harnessed gates plan --task "<locked spec>" --skip-sub
|
|
71
|
+
2. Bash: `harnessed gates plan --task "<locked spec>" --skip-sub discuss` → parse the JSON `{fire, skip, parallelism}`. This is the plan SoT (no spawn). Keep the verbatim JSON.
|
|
72
72
|
3. Bash: `harnessed checkpoint start plan --plan '<the verbatim gates JSON from step 2>'` → seeds the per-sub ledger so `harnessed status --recover` can re-orient you after compaction.
|
|
73
73
|
4. If `parallelism.escalate_to_teams === true`: read `~/.claude/rules/agent-teams.md`, then drive the fired subs as an Agent Team (`TeamCreate` → `Agent(name, team_name, …)` per sub with its `harnessed prompt <sub>` prompt → coordinate via `SendMessage` → `SendMessage shutdown_request` + `TeamDelete`). Still checkpoint each sub (`complete` / `fail`) as below.
|
|
74
74
|
5. Otherwise, for each fired sub in `order` (serial subs sequentially, parallel subs concurrently):
|
|
75
|
-
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
75
|
+
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → repeat this loop for ITS fired subs.
|
|
76
76
|
- **Else (leaf sub):**
|
|
77
77
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → parse `{prompt, max_iterations, model}`.
|
|
78
78
|
b. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, use the native goal gate instead (Claude Code 2.1.139+ / Codex): `/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"` then spawn the subagent and let the goal evaluator drive re-spawns until it clears. If `/goal` is unavailable too, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations). Set the goal only at the leaf subtask level — `/goal` is single-slot per session and a nested goal overwrites the outer one.
|
|
@@ -67,11 +67,11 @@ Sister `workflows/capabilities.yaml`:
|
|
|
67
67
|
session、绕过 Agent Teams,在 Claude Code 内部调用时会挂死)。
|
|
68
68
|
|
|
69
69
|
1. 若 "$ARGUMENTS" 触发澄清判据(≥2 方案 / 核心算法 / API contract / 高错误成本),先在**本 session** 交互澄清(AskUserQuestion)并锁决策;否则透明 skip。产出 locked spec。
|
|
70
|
-
2. Bash: `harnessed gates plan --task "<locked spec>" --skip-sub
|
|
70
|
+
2. Bash: `harnessed gates plan --task "<locked spec>" --skip-sub discuss` → 解析 JSON `{fire, skip, parallelism}`。这是 plan SoT(不 spawn)。保留 verbatim JSON。
|
|
71
71
|
3. Bash: `harnessed checkpoint start plan --plan '<step 2 的 verbatim gates JSON>'` → seed per-sub ledger,让 `harnessed status --recover` 能在 compaction 后给你重新定位。
|
|
72
72
|
4. 若 `parallelism.escalate_to_teams === true`:读 `~/.claude/rules/agent-teams.md`,然后把 fired subs 作为 Agent Team 驱动(`TeamCreate` → 每个 sub `Agent(name, team_name, …)` + 其 `harnessed prompt <sub>` prompt → 用 `SendMessage` 协调 → `SendMessage shutdown_request` + `TeamDelete`)。每个 sub 仍按下方 checkpoint(`complete` / `fail`)。
|
|
73
73
|
5. 否则,对 `order` 里每个 fired sub(serial 串行、parallel 并发):
|
|
74
|
-
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
74
|
+
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → 对它的 fired subs 重复本循环。
|
|
75
75
|
- **否则(leaf sub):**
|
|
76
76
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
77
77
|
b. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,改用原生 goal gate(Claude Code 2.1.139+ / Codex):`/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"`,随后 spawn subagent,由 goal 评估器驱动重 spawn 直到目标清除。若 `/goal` 也不可用,自循环:spawn → 检查输出 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。goal 只在叶子 subtask 层设置 — `/goal` 每 session 单槽,嵌套 goal 会覆盖外层。
|
|
@@ -62,11 +62,11 @@ Do NOT pipe to `harnessed run ship` — that is the CI/headless path (in-process
|
|
|
62
62
|
that blocks the session, bypasses Agent Teams, and hangs inside Claude Code).
|
|
63
63
|
|
|
64
64
|
1. If the clarification criteria fire for "$ARGUMENTS" (≥2 approaches / core algorithm / API contract / high error cost), clarify interactively in THIS session first (AskUserQuestion) and lock decisions; otherwise transparent-skip. Produce a locked spec.
|
|
65
|
-
2. Bash: `harnessed gates ship --task "<locked spec>" --skip-sub
|
|
65
|
+
2. Bash: `harnessed gates ship --task "<locked spec>" --skip-sub discuss` → parse the JSON `{fire, skip, parallelism}`. This is the plan SoT (no spawn). Keep the verbatim JSON.
|
|
66
66
|
3. Bash: `harnessed checkpoint start ship --plan '<the verbatim gates JSON from step 2>'` → seeds the per-sub ledger so `harnessed status --recover` can re-orient you after compaction.
|
|
67
67
|
4. If `parallelism.escalate_to_teams === true`: read `~/.claude/rules/agent-teams.md`, then drive the fired subs as an Agent Team (`TeamCreate` → `Agent(name, team_name, …)` per sub with its `harnessed prompt <sub>` prompt → coordinate via `SendMessage` → `SendMessage shutdown_request` + `TeamDelete`). Still checkpoint each sub (`complete` / `fail`) as below.
|
|
68
68
|
5. Otherwise, for each fired sub in `order` (serial subs sequentially, parallel subs concurrently):
|
|
69
|
-
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
69
|
+
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → repeat this loop for ITS fired subs.
|
|
70
70
|
- **Else (leaf sub):**
|
|
71
71
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → parse `{prompt, max_iterations, model}`.
|
|
72
72
|
b. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, use the native goal gate instead (Claude Code 2.1.139+ / Codex): `/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"` then spawn the subagent and let the goal evaluator drive re-spawns until it clears. If `/goal` is unavailable too, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations). Set the goal only at the leaf subtask level — `/goal` is single-slot per session and a nested goal overwrites the outer one.
|
|
@@ -60,11 +60,11 @@ preflight 通过后,主控将 PR + deploy 委派给 gstack `/ship`(组合复
|
|
|
60
60
|
session、绕过 Agent Teams,在 Claude Code 内部调用时会挂死)。
|
|
61
61
|
|
|
62
62
|
1. 若 "$ARGUMENTS" 触发澄清判据(≥2 方案 / 核心算法 / API contract / 高错误成本),先在**本 session** 交互澄清(AskUserQuestion)并锁决策;否则透明 skip。产出 locked spec。
|
|
63
|
-
2. Bash: `harnessed gates ship --task "<locked spec>" --skip-sub
|
|
63
|
+
2. Bash: `harnessed gates ship --task "<locked spec>" --skip-sub discuss` → 解析 JSON `{fire, skip, parallelism}`。这是 plan SoT(不 spawn)。保留 verbatim JSON。
|
|
64
64
|
3. Bash: `harnessed checkpoint start ship --plan '<step 2 的 verbatim gates JSON>'` → seed per-sub ledger,让 `harnessed status --recover` 能在 compaction 后给你重新定位。
|
|
65
65
|
4. 若 `parallelism.escalate_to_teams === true`:读 `~/.claude/rules/agent-teams.md`,然后把 fired subs 作为 Agent Team 驱动(`TeamCreate` → 每个 sub `Agent(name, team_name, …)` + 其 `harnessed prompt <sub>` prompt → 用 `SendMessage` 协调 → `SendMessage shutdown_request` + `TeamDelete`)。每个 sub 仍按下方 checkpoint(`complete` / `fail`)。
|
|
66
66
|
5. 否则,对 `order` 里每个 fired sub(serial 串行、parallel 并发):
|
|
67
|
-
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
67
|
+
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → 对它的 fired subs 重复本循环。
|
|
68
68
|
- **否则(leaf sub):**
|
|
69
69
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
70
70
|
b. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,改用原生 goal gate(Claude Code 2.1.139+ / Codex):`/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"`,随后 spawn subagent,由 goal 评估器驱动重 spawn 直到目标清除。若 `/goal` 也不可用,自循环:spawn → 检查输出 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。goal 只在叶子 subtask 层设置 — `/goal` 每 session 单槽,嵌套 goal 会覆盖外层。
|
|
@@ -72,11 +72,11 @@ Do NOT pipe to `harnessed run task` — that is the CI/headless path (in-process
|
|
|
72
72
|
that blocks the session, bypasses Agent Teams, and hangs inside Claude Code).
|
|
73
73
|
|
|
74
74
|
1. If the clarification criteria fire for "$ARGUMENTS" (≥2 approaches / core algorithm / API contract / high error cost), clarify interactively in THIS session first (AskUserQuestion) and lock decisions; otherwise transparent-skip. Produce a locked spec.
|
|
75
|
-
2. Bash: `harnessed gates task --task "<locked spec>" --skip-sub
|
|
75
|
+
2. Bash: `harnessed gates task --task "<locked spec>" --skip-sub discuss` → parse the JSON `{fire, skip, parallelism}`. This is the plan SoT (no spawn). Keep the verbatim JSON.
|
|
76
76
|
3. Bash: `harnessed checkpoint start task --plan '<the verbatim gates JSON from step 2>'` → seeds the per-sub ledger so `harnessed status --recover` can re-orient you after compaction.
|
|
77
77
|
4. If `parallelism.escalate_to_teams === true`: read `~/.claude/rules/agent-teams.md`, then drive the fired subs as an Agent Team (`TeamCreate` → `Agent(name, team_name, …)` per sub with its `harnessed prompt <sub>` prompt → coordinate via `SendMessage` → `SendMessage shutdown_request` + `TeamDelete`). Still checkpoint each sub (`complete` / `fail`) as below.
|
|
78
78
|
5. Otherwise, for each fired sub in `order` (serial subs sequentially, parallel subs concurrently):
|
|
79
|
-
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
79
|
+
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → repeat this loop for ITS fired subs.
|
|
80
80
|
- **Else (leaf sub):**
|
|
81
81
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → parse `{prompt, max_iterations, model}`.
|
|
82
82
|
b. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, use the native goal gate instead (Claude Code 2.1.139+ / Codex): `/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"` then spawn the subagent and let the goal evaluator drive re-spawns until it clears. If `/goal` is unavailable too, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations). Set the goal only at the leaf subtask level — `/goal` is single-slot per session and a nested goal overwrites the outer one.
|
|
@@ -71,11 +71,11 @@ Sister `workflows/capabilities.yaml`:
|
|
|
71
71
|
session、绕过 Agent Teams,在 Claude Code 内部调用时会挂死)。
|
|
72
72
|
|
|
73
73
|
1. 若 "$ARGUMENTS" 触发澄清判据(≥2 方案 / 核心算法 / API contract / 高错误成本),先在**本 session** 交互澄清(AskUserQuestion)并锁决策;否则透明 skip。产出 locked spec。
|
|
74
|
-
2. Bash: `harnessed gates task --task "<locked spec>" --skip-sub
|
|
74
|
+
2. Bash: `harnessed gates task --task "<locked spec>" --skip-sub discuss` → 解析 JSON `{fire, skip, parallelism}`。这是 plan SoT(不 spawn)。保留 verbatim JSON。
|
|
75
75
|
3. Bash: `harnessed checkpoint start task --plan '<step 2 的 verbatim gates JSON>'` → seed per-sub ledger,让 `harnessed status --recover` 能在 compaction 后给你重新定位。
|
|
76
76
|
4. 若 `parallelism.escalate_to_teams === true`:读 `~/.claude/rules/agent-teams.md`,然后把 fired subs 作为 Agent Team 驱动(`TeamCreate` → 每个 sub `Agent(name, team_name, …)` + 其 `harnessed prompt <sub>` prompt → 用 `SendMessage` 协调 → `SendMessage shutdown_request` + `TeamDelete`)。每个 sub 仍按下方 checkpoint(`complete` / `fail`)。
|
|
77
77
|
5. 否则,对 `order` 里每个 fired sub(serial 串行、parallel 并发):
|
|
78
|
-
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
78
|
+
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → 对它的 fired subs 重复本循环。
|
|
79
79
|
- **否则(leaf sub):**
|
|
80
80
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
81
81
|
b. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,改用原生 goal gate(Claude Code 2.1.139+ / Codex):`/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"`,随后 spawn subagent,由 goal 评估器驱动重 spawn 直到目标清除。若 `/goal` 也不可用,自循环:spawn → 检查输出 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。goal 只在叶子 subtask 层设置 — `/goal` 每 session 单槽,嵌套 goal 会覆盖外层。
|
|
@@ -59,7 +59,7 @@ SDK, 用户 explicit signal 可切换 mattpocock /tdd alias path。
|
|
|
59
59
|
## Conditional diagnose invoke (D-05 invokes_tools)
|
|
60
60
|
|
|
61
61
|
Phase 01-test 条件性 fire `diagnose` (capabilities.yaml L55-64 mattpocock-skills
|
|
62
|
-
/
|
|
62
|
+
/diagnosing-bugs) when `test_fail == true` — sister CLAUDE.md "系统化排错" pattern;
|
|
63
63
|
test fail 时进入 diagnose loop (reproduce → minimise → hypothesise → instrument →
|
|
64
64
|
fix → regression-test), 测试通过则 skip diagnose entirely。
|
|
65
65
|
|
|
@@ -59,7 +59,7 @@ SDK,用户发出明确信号时可切换至 mattpocock /tdd 别名路径。
|
|
|
59
59
|
## 条件式 diagnose 调用(D-05 invokes_tools)
|
|
60
60
|
|
|
61
61
|
阶段 01-test 在 `test_fail == true` 时条件性触发 `diagnose`(capabilities.yaml L55-64 mattpocock-skills
|
|
62
|
-
/
|
|
62
|
+
/diagnosing-bugs)— 对应 sister CLAUDE.md「系统化排错」模式;
|
|
63
63
|
测试失败时进入 diagnose 循环(reproduce → minimise → hypothesise → instrument →
|
|
64
64
|
fix → regression-test),测试通过则完全跳过 diagnose。
|
|
65
65
|
|
|
@@ -42,5 +42,5 @@ phases:
|
|
|
42
42
|
tool: diagnose
|
|
43
43
|
max_iterations: '{{ defaults.ralph_max_iterations.task-test.01-test }}'
|
|
44
44
|
# v3.8.0 P1 — TDD core-logic phase, opts into full 3-RULES inject (escalation
|
|
45
|
-
# may fire when test failures trigger /
|
|
45
|
+
# may fire when test failures trigger /diagnosing-bugs handoff or subagent context overflow).
|
|
46
46
|
injects_rules: [escalation, transparent-skip, agent-teams-prevention]
|
|
@@ -80,11 +80,11 @@ Do NOT pipe to `harnessed run verify` — that is the CI/headless path (in-proce
|
|
|
80
80
|
that blocks the session, bypasses Agent Teams, and hangs inside Claude Code).
|
|
81
81
|
|
|
82
82
|
1. If the clarification criteria fire for "$ARGUMENTS" (≥2 approaches / core algorithm / API contract / high error cost), clarify interactively in THIS session first (AskUserQuestion) and lock decisions; otherwise transparent-skip. Produce a locked spec.
|
|
83
|
-
2. Bash: `harnessed gates verify --task "<locked spec>" --skip-sub
|
|
83
|
+
2. Bash: `harnessed gates verify --task "<locked spec>" --skip-sub discuss` → parse the JSON `{fire, skip, parallelism}`. This is the plan SoT (no spawn). Keep the verbatim JSON.
|
|
84
84
|
3. Bash: `harnessed checkpoint start verify --plan '<the verbatim gates JSON from step 2>'` → seeds the per-sub ledger so `harnessed status --recover` can re-orient you after compaction.
|
|
85
85
|
4. If `parallelism.escalate_to_teams === true`: read `~/.claude/rules/agent-teams.md`, then drive the fired subs as an Agent Team (`TeamCreate` → `Agent(name, team_name, …)` per sub with its `harnessed prompt <sub>` prompt → coordinate via `SendMessage` → `SendMessage shutdown_request` + `TeamDelete`). Still checkpoint each sub (`complete` / `fail`) as below.
|
|
86
86
|
5. Otherwise, for each fired sub in `order` (serial subs sequentially, parallel subs concurrently):
|
|
87
|
-
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
87
|
+
- **If the entry has `is_master: true`** (a stage master — e.g. `/auto` firing `plan`/`task`/`verify`): do NOT prompt+spawn it. RECURSE: run that master’s own `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → repeat this loop for ITS fired subs.
|
|
88
88
|
- **Else (leaf sub):**
|
|
89
89
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → parse `{prompt, max_iterations, model}`.
|
|
90
90
|
b. Spawn a CC-native subagent (Task / Agent tool) with that `prompt` + `model`, wrapped in the ralph-loop plugin: `/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`. If the plugin is absent, use the native goal gate instead (Claude Code 2.1.139+ / Codex): `/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"` then spawn the subagent and let the goal evaluator drive re-spawns until it clears. If `/goal` is unavailable too, self-loop: spawn → check output for `<promise>COMPLETE</promise>` → re-spawn with prior output appended (up to max_iterations). Set the goal only at the leaf subtask level — `/goal` is single-slot per session and a nested goal overwrites the outer one.
|
|
@@ -79,11 +79,11 @@ Sister `workflows/capabilities.yaml`:
|
|
|
79
79
|
session、绕过 Agent Teams,在 Claude Code 内部调用时会挂死)。
|
|
80
80
|
|
|
81
81
|
1. 若 "$ARGUMENTS" 触发澄清判据(≥2 方案 / 核心算法 / API contract / 高错误成本),先在**本 session** 交互澄清(AskUserQuestion)并锁决策;否则透明 skip。产出 locked spec。
|
|
82
|
-
2. Bash: `harnessed gates verify --task "<locked spec>" --skip-sub
|
|
82
|
+
2. Bash: `harnessed gates verify --task "<locked spec>" --skip-sub discuss` → 解析 JSON `{fire, skip, parallelism}`。这是 plan SoT(不 spawn)。保留 verbatim JSON。
|
|
83
83
|
3. Bash: `harnessed checkpoint start verify --plan '<step 2 的 verbatim gates JSON>'` → seed per-sub ledger,让 `harnessed status --recover` 能在 compaction 后给你重新定位。
|
|
84
84
|
4. 若 `parallelism.escalate_to_teams === true`:读 `~/.claude/rules/agent-teams.md`,然后把 fired subs 作为 Agent Team 驱动(`TeamCreate` → 每个 sub `Agent(name, team_name, …)` + 其 `harnessed prompt <sub>` prompt → 用 `SendMessage` 协调 → `SendMessage shutdown_request` + `TeamDelete`)。每个 sub 仍按下方 checkpoint(`complete` / `fail`)。
|
|
85
85
|
5. 否则,对 `order` 里每个 fired sub(serial 串行、parallel 并发):
|
|
86
|
-
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub
|
|
86
|
+
- **若该项 `is_master: true`**(本身是 stage master —— 如 `/auto` fire `plan`/`task`/`verify`):**不要**直接 prompt+spawn。RECURSE:跑该 master 自己的 `harnessed gates <sub> --task "<spec>" --skip-sub discuss` → `harnessed checkpoint start <sub> --plan '<json>'` → 对它的 fired subs 重复本循环。
|
|
87
87
|
- **否则(leaf sub):**
|
|
88
88
|
a. Bash: `harnessed prompt <sub> --task "<spec>" --json` → 解析 `{prompt, max_iterations, model}`。
|
|
89
89
|
b. 用 CC-native subagent(Task / Agent 工具)以该 `prompt` + `model` spawn,用 ralph-loop plugin 包裹:`/ralph-loop "<prompt>" --max-iterations <max_iterations> --completion-promise "COMPLETE"`。若 plugin 未装,改用原生 goal gate(Claude Code 2.1.139+ / Codex):`/goal "this subtask is delivered: the subagent's final output contains verbatim <promise>COMPLETE</promise>; or stop after <max_iterations> turns"`,随后 spawn subagent,由 goal 评估器驱动重 spawn 直到目标清除。若 `/goal` 也不可用,自循环:spawn → 检查输出 `<promise>COMPLETE</promise>` → 把上轮输出 append 后重 spawn(至多 max_iterations)。goal 只在叶子 subtask 层设置 — `/goal` 每 session 单槽,嵌套 goal 会覆盖外层。
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# yaml-language-server: $schema=../../schemas/manifest.v1.schema.json
|
|
2
|
-
apiVersion: harnessed/v1
|
|
3
|
-
kind: Manifest
|
|
4
|
-
metadata:
|
|
5
|
-
name: exa-mcp
|
|
6
|
-
display_name: Exa MCP
|
|
7
|
-
description: Neural-search MCP for descriptive queries / academic papers / batch URL fetch (web_fetch_exa).
|
|
8
|
-
upstream:
|
|
9
|
-
source: exa-mcp-server
|
|
10
|
-
homepage: https://docs.exa.ai/reference/exa-mcp
|
|
11
|
-
repository: https://github.com/exa-labs/exa-mcp-server.git
|
|
12
|
-
license: MIT
|
|
13
|
-
notice: exa-mcp-server by exa-labs (official), used as semantic-search MCP per harnessed routing rules.
|
|
14
|
-
spec:
|
|
15
|
-
type: mcp-npm
|
|
16
|
-
component_type: mcp-tool
|
|
17
|
-
category: search
|
|
18
|
-
install_type: mcp
|
|
19
|
-
install:
|
|
20
|
-
method: mcp-stdio-add
|
|
21
|
-
cmd: "claude mcp add --scope project --transport stdio exa-mcp -- npx --yes exa-mcp-server@^3.2.0"
|
|
22
|
-
npm_version: ^3.2.0
|
|
23
|
-
idempotent_check: "claude mcp list | grep -q exa"
|
|
24
|
-
verify:
|
|
25
|
-
cmd: "claude mcp list | grep -q exa"
|
|
26
|
-
timeout_ms: 10000
|
|
27
|
-
uninstall:
|
|
28
|
-
cmd: "claude mcp remove --scope project exa-mcp"
|
|
29
|
-
upstream_health:
|
|
30
|
-
stability: stable
|
|
31
|
-
last_check: "2026-05-11"
|
|
32
|
-
last_known_good_version: 3.2.1
|
|
33
|
-
fallback_action: use_alternative
|
|
34
|
-
alternative: tavily-mcp
|
|
35
|
-
signed_by: easyinplay
|
|
36
|
-
platforms:
|
|
37
|
-
- linux
|
|
38
|
-
- darwin
|
|
39
|
-
- win32
|