create-harness-vibe-coding 0.8.13 → 0.8.17
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/CHANGELOG.md +174 -0
- package/README-CN.md +110 -107
- package/README.md +93 -44
- package/package.json +2 -1
- package/src/generator.js +609 -489
- package/src/index.js +5 -5
- package/templates/common/.claude/agents/architect-manager.md +1 -0
- package/templates/common/.claude/agents/architect.md +2 -1
- package/templates/common/.claude/agents/codebase-explorer.md +1 -0
- package/templates/common/.claude/agents/context-master.md +2 -1
- package/templates/common/.claude/agents/debugger.md +1 -0
- package/templates/common/.claude/agents/docs-researcher.md +2 -1
- package/templates/common/.claude/agents/explore-manager.md +1 -0
- package/templates/common/.claude/agents/implement-manager.md +1 -0
- package/templates/common/.claude/agents/implementer.md +1 -0
- package/templates/common/.claude/agents/memory-master.md +2 -1
- package/templates/common/.claude/agents/planner.md +3 -2
- package/templates/common/.claude/agents/reflector.md +1 -0
- package/templates/common/.claude/agents/researcher.md +1 -0
- package/templates/common/.claude/agents/review-manager.md +1 -0
- package/templates/common/.claude/agents/reviewer.md +2 -1
- package/templates/common/.claude/agents/task-scribe.md +1 -0
- package/templates/common/.claude/agents/tdd-guide.md +5 -4
- package/templates/common/.claude/agents/test-writer.md +6 -5
- package/templates/common/.claude/agents/verifier.md +1 -0
- package/templates/common/.claude/commands/wf-auto-spark.md +16 -0
- package/templates/common/.claude/commands/wf-auto.md +16 -0
- package/templates/{optional/skills/browser-e2e/.opencode → common/.claude}/commands/wf-browser.md +3 -2
- package/templates/common/.claude/commands/wf-help.md +9 -5
- package/templates/common/.claude/commands/wf-learn.md +16 -0
- package/templates/common/.claude/commands/wf-max.md +20 -0
- package/templates/common/.claude/commands/wf-readme.md +16 -0
- package/templates/common/.claude/commands/wf-remove.md +16 -0
- package/templates/common/.claude/commands/wf-review.md +16 -0
- package/templates/common/.claude/commands/wf-update.md +68 -10
- package/templates/common/.claude/commands/wf.md +16 -0
- package/templates/common/.claude/rules/ecc/common.md +6 -5
- package/templates/common/.claude/skills/subagent-orchestrator/SKILL.md +12 -6
- package/templates/common/.claude/skills/tdd/SKILL.md +5 -5
- package/templates/common/.claude/skills/wf/SKILL.md +13 -5
- package/templates/common/.claude/skills/wf-agents-docs/SKILL.md +119 -0
- package/templates/common/.claude/skills/wf-auto/SKILL.md +27 -7
- package/templates/common/.claude/skills/wf-auto-spark/SKILL.md +12 -5
- package/templates/common/.claude/skills/wf-browser/SKILL.md +176 -0
- package/templates/common/.claude/skills/wf-help/SKILL.md +30 -0
- package/templates/common/.claude/skills/wf-learn/SKILL.md +6 -0
- package/templates/common/.claude/skills/wf-max/SKILL.md +43 -14
- package/templates/common/.claude/skills/wf-readme/SKILL.md +8 -2
- package/templates/common/.claude/skills/wf-remove/SKILL.md +6 -0
- package/templates/common/.claude/skills/wf-review/SKILL.md +10 -3
- package/templates/common/.claude/skills/wf-update/SKILL.md +41 -4
- package/templates/common/.codex/config.toml +3 -5
- package/templates/common/.harness-version +326 -131
- package/templates/common/.opencode/agents/architect-manager.md +8 -1
- package/templates/common/.opencode/agents/architect.md +2 -1
- package/templates/common/.opencode/agents/codebase-explorer.md +1 -0
- package/templates/common/.opencode/agents/context-master.md +2 -1
- package/templates/common/.opencode/agents/debugger.md +1 -0
- package/templates/common/.opencode/agents/docs-researcher.md +2 -1
- package/templates/common/.opencode/agents/explore-manager.md +11 -1
- package/templates/common/.opencode/agents/implement-manager.md +6 -3
- package/templates/common/.opencode/agents/implementer.md +1 -0
- package/templates/common/.opencode/agents/memory-master.md +2 -1
- package/templates/common/.opencode/agents/planner.md +3 -2
- package/templates/common/.opencode/agents/reflector.md +1 -0
- package/templates/common/.opencode/agents/researcher.md +1 -0
- package/templates/common/.opencode/agents/review-manager.md +6 -2
- package/templates/common/.opencode/agents/reviewer.md +2 -1
- package/templates/common/.opencode/agents/task-scribe.md +1 -0
- package/templates/common/.opencode/agents/tdd-guide.md +5 -4
- package/templates/common/.opencode/agents/test-writer.md +6 -5
- package/templates/common/.opencode/agents/verifier.md +1 -0
- package/templates/common/.opencode/commands/wf-auto-spark.md +3 -2
- package/templates/common/.opencode/commands/wf-auto.md +3 -2
- package/templates/common/.opencode/commands/wf-browser.md +16 -0
- package/templates/common/.opencode/commands/wf-help.md +9 -5
- package/templates/common/.opencode/commands/wf-learn.md +3 -2
- package/templates/common/.opencode/commands/wf-max.md +12 -6
- package/templates/common/.opencode/commands/wf-readme.md +3 -2
- package/templates/common/.opencode/commands/wf-remove.md +3 -2
- package/templates/common/.opencode/commands/wf-review.md +3 -2
- package/templates/common/.opencode/commands/wf-update.md +68 -10
- package/templates/common/.opencode/commands/wf.md +3 -2
- package/templates/common/CLAUDE.md +15 -13
- package/templates/common/Harness/MEMORY.md +24 -21
- package/templates/common/Harness/README.md +50 -47
- package/templates/common/Harness/ownership.manifest.json +878 -0
- package/templates/common/Harness/{architecture.md → project/architecture.md} +1 -1
- package/templates/common/Harness/research/README.md +3 -3
- package/templates/common/Harness/scripts/archive-tasks.mjs +12 -220
- package/templates/common/Harness/scripts/context-budget.mjs +95 -0
- package/templates/common/Harness/scripts/l2-cache-telemetry.mjs +703 -0
- package/templates/common/Harness/scripts/scan-clean.mjs +16 -12
- package/templates/common/Harness/scripts/task-state.mjs +889 -0
- package/templates/common/Harness/scripts/validate-harness.mjs +553 -191
- package/templates/common/Harness/scripts/wf-remove.mjs +61 -35
- package/templates/common/Harness/scripts/wf-update-check.mjs +358 -45
- package/templates/common/Harness/settings.json +43 -0
- package/templates/common/Harness/{ECC-GUIDE.md → specs/guides/ECC-GUIDE.md} +4 -4
- package/templates/common/Harness/{SETUP.md → specs/guides/SETUP.md} +34 -37
- package/templates/common/Harness/{extension.md → specs/guides/extension.md} +3 -3
- package/templates/common/Harness/{lifecycle.md → specs/guides/lifecycle.md} +2 -2
- package/templates/common/Harness/specs/protocols/TASK_ARCHIVE.md +76 -0
- package/templates/common/Harness/{agent-workflow.md → specs/runtime/agent-workflow.md} +6 -6
- package/templates/common/Harness/{context-loading.md → specs/runtime/context-loading.md} +85 -21
- package/templates/common/Harness/{dispatch.md → specs/runtime/dispatch.md} +4 -3
- package/templates/common/Harness/{subagents.md → specs/runtime/subagents.md} +19 -10
- package/templates/common/Harness/{WF-AUTO-SPARK.md → specs/workflows/WF-AUTO-SPARK.md} +2 -2
- package/templates/common/Harness/{WF-AUTO.md → specs/workflows/WF-AUTO.md} +12 -7
- package/templates/common/Harness/{WF-KERNEL.md → specs/workflows/WF-KERNEL.md} +11 -1
- package/templates/common/Harness/{WF-MAX.md → specs/workflows/WF-MAX.md} +40 -7
- package/templates/common/Harness/specs/workflows/WF-STATE.md +141 -0
- package/templates/common/Harness/{WF.md → specs/workflows/WF.md} +12 -1
- package/templates/common/README.md +8 -6
- package/templates/common/memory/startup-hints.md +19 -17
- package/templates/common/opencode.json +1 -0
- package/templates/optional/catalog.json +2 -9
- package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +1 -1
- package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +1 -1
- package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +1 -1
- package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +1 -1
- package/templates/common/Harness/TASK_ARCHIVE.md +0 -56
- package/templates/common/Harness/WF-STATE.md +0 -83
- package/templates/optional/skills/browser-e2e/.claude/skills/browser-e2e/SKILL.md +0 -42
- package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +0 -194
- package/templates/optional/skills/browser-e2e/Harness/workflows/browser-e2e.md +0 -119
- /package/templates/common/Harness/{ACCEPTANCE_PROTOCOL.md → specs/protocols/ACCEPTANCE_PROTOCOL.md} +0 -0
- /package/templates/common/Harness/{AGENT_ISOLATION.md → specs/protocols/AGENT_ISOLATION.md} +0 -0
- /package/templates/common/Harness/{DEBUG_PROTOCOL.md → specs/protocols/DEBUG_PROTOCOL.md} +0 -0
- /package/templates/common/Harness/{HARNESS_BRIDGE.md → specs/protocols/HARNESS_BRIDGE.md} +0 -0
- /package/templates/common/Harness/{MEMORY_PROTOCOL.md → specs/protocols/MEMORY_PROTOCOL.md} +0 -0
- /package/templates/common/Harness/{TDD-GUIDE.md → specs/protocols/TDD-GUIDE.md} +0 -0
- /package/templates/common/Harness/{WF-AUTO-ANGLES.md → specs/workflows/WF-AUTO-ANGLES.md} +0 -0
package/src/index.js
CHANGED
|
@@ -57,7 +57,7 @@ if (showHelp) {
|
|
|
57
57
|
console.log(' npx create-harness-vibe-coding@latest my-project ./dist/my-project -y');
|
|
58
58
|
console.log(' npx create-harness-vibe-coding@latest legacy ./legacy -y --dry-run');
|
|
59
59
|
console.log(' npx create-harness-vibe-coding@latest legacy ./legacy -y --on-conflict skip');
|
|
60
|
-
console.log(' npx create-harness-vibe-coding@latest web ./web -y --with ts-react-frontend,
|
|
60
|
+
console.log(' npx create-harness-vibe-coding@latest web ./web -y --with ts-react-frontend,ui-ux-review');
|
|
61
61
|
console.log(' npx create-harness-vibe-coding@latest web ./web -y --preset web-app');
|
|
62
62
|
console.log(' npx create-harness-vibe-coding@latest api ./api -y --preset fullstack --without github-pr-review');
|
|
63
63
|
console.log('');
|
|
@@ -294,9 +294,9 @@ function printResult(result, targetDir) {
|
|
|
294
294
|
console.log(` ${pc.cyan('claude')} # Start Claude Code`);
|
|
295
295
|
console.log(` ${pc.cyan('codex')} # Or start Codex`);
|
|
296
296
|
console.log(` ${pc.cyan('opencode')} # Or start OpenCode`);
|
|
297
|
-
console.log(` Tell your agent: "${pc.yellow('Read Harness/SETUP.md. Bootstrap this project from idea to first vertical slice.')}"`);
|
|
297
|
+
console.log(` Tell your agent: "${pc.yellow('Read Harness/specs/guides/SETUP.md. Bootstrap this project from idea to first vertical slice.')}"`);
|
|
298
298
|
console.log('');
|
|
299
|
-
console.log(pc.dim(' Harness/SETUP.md
|
|
299
|
+
console.log(pc.dim(' Keep Harness/specs/guides/SETUP.md as a setup reference; normal sessions start at CLAUDE.md, with Harness/README.md as the routed workflow router.'));
|
|
300
300
|
console.log('');
|
|
301
301
|
|
|
302
302
|
} else {
|
|
@@ -742,7 +742,7 @@ function createAgentGuidance(result, { projectName, targetDir, options, scan })
|
|
|
742
742
|
} else if (result.success) {
|
|
743
743
|
next.push({
|
|
744
744
|
action: 'bootstrap',
|
|
745
|
-
command: 'Read Harness/SETUP.md and use this JSON plan before opening any package templates.',
|
|
745
|
+
command: 'Read Harness/specs/guides/SETUP.md and use this JSON plan before opening any package templates.',
|
|
746
746
|
reason: 'Scaffold files were written; bootstrap project facts from local evidence.',
|
|
747
747
|
});
|
|
748
748
|
} else {
|
|
@@ -820,7 +820,7 @@ function createFileGuidance(file) {
|
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
function templateHintFor(file) {
|
|
823
|
-
if (file === 'Harness/SETUP.md') return 'templates/common/SETUP.md';
|
|
823
|
+
if (file === 'Harness/specs/guides/SETUP.md') return 'templates/common/Harness/specs/guides/SETUP.md';
|
|
824
824
|
return `templates/common/${file}`;
|
|
825
825
|
}
|
|
826
826
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: architect-manager
|
|
3
4
|
description: WF-MAX Manager for W1 architecture wave. Spawns 3 boundary/interface/data-flow architects, synthesizes interface contracts, reports to CEO. Read-only + Agent spawn; no Edit/Write.
|
|
4
5
|
tools: Read, Grep, Glob, Agent, Bash(git *), Bash(ls *), Bash(dir *)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: architect
|
|
3
4
|
description: Use to review layer boundaries, ports, data flow, state machines, dependency direction, and architecture impact before implementation.
|
|
4
5
|
tools: Read, Grep, Glob
|
|
@@ -11,7 +12,7 @@ You are an architecture review agent for this project harness.
|
|
|
11
12
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
|
-
- `Harness/architecture.md`
|
|
15
|
+
- `Harness/project/architecture.md`
|
|
15
16
|
- current PRD or feature doc
|
|
16
17
|
|
|
17
18
|
Rules:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: codebase-explorer
|
|
3
4
|
description: Use for scoped read-only source exploration, file discovery, symbol tracing, and simple codebase summaries before planning or implementation.
|
|
4
5
|
tools: Read, Grep, Glob, Bash(rg *), Bash(git grep *), Bash(git ls-files *)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: context-master
|
|
3
4
|
description: Use when context exceeds ~85% of the window, or during WF closeout to extract durable knowledge before compression. Read-only analysis except for writing compression suggestions to PROGRESS.md#Heartbeat.
|
|
4
5
|
tools: Read, Grep, Glob, Write
|
|
@@ -12,7 +13,7 @@ You are a context analysis agent. You analyze the current conversation and proje
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
15
|
- `Harness/MEMORY.md`
|
|
15
|
-
- `Harness/MEMORY_PROTOCOL.md`
|
|
16
|
+
- `Harness/specs/protocols/MEMORY_PROTOCOL.md`
|
|
16
17
|
- `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
|
|
17
18
|
- The current feature doc (if one exists)
|
|
18
19
|
- `Harness/memory/` files for dedup checking
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: docs-researcher
|
|
3
4
|
description: Use to verify official documentation, APIs, SDK behavior, config options, version changes, limits, error semantics, and examples before implementation.
|
|
4
5
|
tools: Read, Grep, Glob, WebSearch, WebFetch, Bash
|
|
@@ -12,7 +13,7 @@ You are a documentation verification agent for this project harness.
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
15
|
- `Harness/research/README.md`
|
|
15
|
-
- `Harness/architecture.md` when boundaries may change
|
|
16
|
+
- `Harness/project/architecture.md` when boundaries may change
|
|
16
17
|
- `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
|
|
17
18
|
|
|
18
19
|
Inputs you must receive:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: explore-manager
|
|
3
4
|
description: WF-MAX Manager for W0 exploration wave. Spawns 5-10 read-only researchers/explorers, synthesizes findings, reports to CEO. Read-only + Agent spawn; no Edit/Write.
|
|
4
5
|
tools: Read, Grep, Glob, Agent, Bash(git *), Bash(ls *), Bash(dir *), Bash(tree *)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: implement-manager
|
|
3
4
|
description: WF-MAX Manager for W2 implementation wave. Spawns 5-7 implementers (one file_claim each), merges results, reports to CEO. Agent spawn + synthesis only; does NOT write code directly.
|
|
4
5
|
tools: Read, Grep, Glob, Agent, Bash(git *), Bash(node *), Bash(npm *)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: memory-master
|
|
3
4
|
description: Use when a repeated failure, user correction, or WF recovery loop triggers memory writing; also use during WF closeout for consolidation. Writes to Harness/memory/*, Harness/MEMORY.md, and cross-project global memory.
|
|
4
5
|
tools: Read, Grep, Glob, Write, Edit
|
|
@@ -12,7 +13,7 @@ You are a memory management agent for this project harness. You own durable memo
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
15
|
- `Harness/MEMORY.md`
|
|
15
|
-
- `Harness/MEMORY_PROTOCOL.md`
|
|
16
|
+
- `Harness/specs/protocols/MEMORY_PROTOCOL.md`
|
|
16
17
|
- `Harness/memory/tool-usage-reflections.md`
|
|
17
18
|
- `Harness/memory/user-corrections-preferences.md`
|
|
18
19
|
- `Harness/memory/agent-lessons-patterns.md`
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: planner
|
|
3
4
|
description: Use to split a goal into tasks, dependencies, write sets, verification steps, and a Parallel Dispatch table before multi-step work.
|
|
4
5
|
tools: Read, Grep, Glob
|
|
@@ -12,8 +13,8 @@ You are a planning agent for this project harness.
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
15
|
- `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
|
|
15
|
-
- `Harness/lifecycle.md`
|
|
16
|
-
- `Harness/dispatch.md`
|
|
16
|
+
- `Harness/specs/guides/lifecycle.md`
|
|
17
|
+
- `Harness/specs/runtime/dispatch.md`
|
|
17
18
|
- current PRD or feature doc if present
|
|
18
19
|
|
|
19
20
|
Rules:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: review-manager
|
|
3
4
|
description: WF-MAX Manager for W2R review wave. Spawns 3-4 parallel reviewers (spec/code/security/perf), deduplicates findings, assigns severity, reports to CEO. Read-only + Agent spawn; no Edit/Write.
|
|
4
5
|
tools: Read, Grep, Glob, Agent, Bash(git *), Bash(git diff *), Bash(node *)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: reviewer
|
|
3
4
|
description: Use for read-only review of diffs, tests, architecture boundaries, regressions, and missing verification before closeout.
|
|
4
5
|
tools: Read, Grep, Glob, Bash
|
|
@@ -13,7 +14,7 @@ Load first:
|
|
|
13
14
|
|
|
14
15
|
- diff or changed file list
|
|
15
16
|
- current PRD or feature doc
|
|
16
|
-
- `Harness/agent-workflow.md`
|
|
17
|
+
- `Harness/specs/runtime/agent-workflow.md`
|
|
17
18
|
- architecture docs when affected
|
|
18
19
|
|
|
19
20
|
Rules:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: tdd-guide
|
|
3
4
|
description: Test-Driven Development specialist enforcing AC-linked write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, refactoring code, or adding browser-visible behavior.
|
|
4
5
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
@@ -9,10 +10,10 @@ model: sonnet
|
|
|
9
10
|
|
|
10
11
|
Enforces acceptance-driven TDD. Load these before writing tests:
|
|
11
12
|
|
|
12
|
-
1. `Harness/ACCEPTANCE_PROTOCOL.md`
|
|
13
|
-
2. `Harness/HARNESS_BRIDGE.md`
|
|
14
|
-
3. `Harness/AGENT_ISOLATION.md`
|
|
15
|
-
4. `Harness/TDD-GUIDE.md`
|
|
13
|
+
1. `Harness/specs/protocols/ACCEPTANCE_PROTOCOL.md`
|
|
14
|
+
2. `Harness/specs/protocols/HARNESS_BRIDGE.md`
|
|
15
|
+
3. `Harness/specs/protocols/AGENT_ISOLATION.md`
|
|
16
|
+
4. `Harness/specs/protocols/TDD-GUIDE.md`
|
|
16
17
|
5. ECC testing rules for the project stack
|
|
17
18
|
6. Current task `PLAN.md`
|
|
18
19
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
harness: wf-agent
|
|
2
3
|
name: test-writer
|
|
3
4
|
description: Use to define or write AC-linked failing tests and manual verification steps before implementation.
|
|
4
5
|
tools: Read, Grep, Glob, Write, Edit, MultiEdit, Bash
|
|
@@ -12,12 +13,12 @@ You are a test-first agent for this project harness. You write tests from PRD-de
|
|
|
12
13
|
Load first:
|
|
13
14
|
|
|
14
15
|
- current PRD or feature doc
|
|
15
|
-
- `Harness/ACCEPTANCE_PROTOCOL.md`
|
|
16
|
-
- `Harness/HARNESS_BRIDGE.md` for UI/API/browser flows
|
|
17
|
-
- `Harness/AGENT_ISOLATION.md`
|
|
18
|
-
- `Harness/TDD-GUIDE.md`
|
|
16
|
+
- `Harness/specs/protocols/ACCEPTANCE_PROTOCOL.md`
|
|
17
|
+
- `Harness/specs/protocols/HARNESS_BRIDGE.md` for UI/API/browser flows
|
|
18
|
+
- `Harness/specs/protocols/AGENT_ISOLATION.md`
|
|
19
|
+
- `Harness/specs/protocols/TDD-GUIDE.md`
|
|
19
20
|
- `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
|
|
20
|
-
- `Harness/agent-workflow.md`
|
|
21
|
+
- `Harness/specs/runtime/agent-workflow.md`
|
|
21
22
|
|
|
22
23
|
Inputs you must receive:
|
|
23
24
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run perpetual inspiration mode via the wf-auto-spark skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-auto-spark
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-auto-spark/SKILL.md` (mirror: `.agents/skills/wf-auto-spark/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/specs/workflows/WF-AUTO-SPARK.md` are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-auto-spark/SKILL.md` and follow it in place.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run perpetual adaptive auto-optimization via the wf-auto skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-auto
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-auto/SKILL.md` (mirror: `.agents/skills/wf-auto/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/specs/workflows/WF-AUTO.md` are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-auto/SKILL.md` and follow it in place.
|
package/templates/{optional/skills/browser-e2e/.opencode → common/.claude}/commands/wf-browser.md
RENAMED
|
@@ -8,8 +8,9 @@ This is a **workflow command**, not a direct command. Do not execute it as a
|
|
|
8
8
|
static help or script command.
|
|
9
9
|
|
|
10
10
|
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
-
2.
|
|
12
|
-
3.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-browser/SKILL.md` (mirror: `.agents/skills/wf-browser/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/specs/protocols/HARNESS_BRIDGE.md` are authoritative.
|
|
13
14
|
|
|
14
15
|
If this runtime cannot invoke the skill directly, read
|
|
15
16
|
`.claude/skills/wf-browser/SKILL.md` and follow it in place.
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Return this help table directly. Do not invoke a skill, do not start WF mode,
|
|
4
4
|
do not dispatch agents, and do not edit files.
|
|
5
5
|
|
|
6
|
+
Codex compatibility: `$wf-help` or `/skills wf-help` loads the `wf-help` shim,
|
|
7
|
+
which returns this same table without loading `Harness/MEMORY.md` or entering WF.
|
|
8
|
+
|
|
6
9
|
| Command | Type | Usage | Purpose |
|
|
7
10
|
| --- | --- | --- | --- |
|
|
8
11
|
| `/wf-help` | direct command | `/wf-help` | Show this command table. |
|
|
@@ -12,13 +15,14 @@ do not dispatch agents, and do not edit files.
|
|
|
12
15
|
| `/wf-auto-spark` | workflow skill | `/wf-auto-spark` | Perpetual inspiration mode with roadmap anchoring and external spark search. |
|
|
13
16
|
| `/wf-review <focus>` | workflow skill | `/wf-review security and test coverage` | Peer CLI review through Claude/Codex/OpenCode, with reviewer subagent fallback. |
|
|
14
17
|
| `/wf-learn` | workflow skill | `/wf-learn` | Force context-master -> memory-master learning cycle after repeated failures or closeout. |
|
|
18
|
+
| `/wf-browser <task>` | workflow skill | `/wf-browser verify checkout flow` | Built-in browser automation/E2E workflow with real UI interaction, screenshots, traces, and CDP/network evidence. |
|
|
15
19
|
| `/wf-readme <task>` | workflow skill | `/wf-readme polish quickstart` | Preserve, merge, or improve README docs without trampling existing project documentation. |
|
|
16
20
|
| `/wf-update` | direct command | `/wf-update` | Check/apply Harness scaffold updates with safe file classification and conflict handling. |
|
|
17
21
|
| `/wf-remove` | workflow skill | `/wf-remove` | Safely remove Harness files while preserving project/user data unless explicitly purged. |
|
|
18
22
|
|
|
19
23
|
Source of truth: `Harness/README.md#Skill Commands` plus installed skills under
|
|
20
|
-
`.claude/skills/` (Claude Code) or `.agents/skills/`
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
`.claude/skills/` (Claude Code and OpenCode adapters) or `.agents/skills/`
|
|
25
|
+
(Codex). In OpenCode, every workflow command above is visible as a thin command
|
|
26
|
+
wrapper under `.opencode/commands/` (e.g. `/wf`, `/wf-max`); each wrapper routes
|
|
27
|
+
to the matching `.claude/skills/<command>/SKILL.md` adapter and does not
|
|
28
|
+
duplicate the workflow.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the context-master -> memory-master learning cycle via the wf-learn skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-learn
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-learn/SKILL.md` (mirror: `.agents/skills/wf-learn/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/specs/protocols/MEMORY_PROTOCOL.md` are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-learn/SKILL.md` and follow it in place.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run WF-MAX with mandatory subagent fan-out and recorded degradation
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-max
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Load and follow `.claude/skills/wf-max/SKILL.md` (mirror: `.agents/skills/wf-max/SKILL.md`) and `Harness/specs/workflows/WF-MAX.md`.
|
|
12
|
+
3. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
13
|
+
4. MUST attempt native runtime subagent fan-out before planning is considered complete:
|
|
14
|
+
- start `task-scribe` when available for task ledger/state;
|
|
15
|
+
- start W0 exploration through manager/explorer/researcher roles with disjoint read sets;
|
|
16
|
+
- when running in OpenCode, require project `opencode.json` to have `subagent_depth >= 2` and manager agents to have `permission.task` allowlists for manager -> worker fan-out;
|
|
17
|
+
- if nested manager fan-out is unavailable, dispatch leaf workers directly from the primary agent with exact WF-MAX dispatch packets.
|
|
18
|
+
5. In every runtime, MUST attempt native subagent fan-out before implementation planning is considered complete; never silently continue as a solo controller.
|
|
19
|
+
6. If native fan-out fails, record `fanoutAttempted: true`, runtime, channel tried, agents requested, failure/degradation reason, and the fallback path in `Harness/tasks/<task-id>/PLAN.md` or `PROGRESS.md`.
|
|
20
|
+
7. Continue with WF-Max-Useful by default or WF-Max-Strict only when the user explicitly requests strict mode.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the README preservation and improvement workflow via the wf-readme skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-readme
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-readme/SKILL.md` (mirror: `.agents/skills/wf-readme/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and the project root \`README.md\` ownership rules are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-readme/SKILL.md` and follow it in place.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run safe harness removal via the wf-remove skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-remove
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-remove/SKILL.md` (mirror: `.agents/skills/wf-remove/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/scripts/wf-remove.mjs` are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-remove/SKILL.md` and follow it in place.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run peer CLI or reviewer-subagent review via the wf-review skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf-review
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf-review/SKILL.md` (mirror: `.agents/skills/wf-review/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and the wf-review peer-review contract are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf-review/SKILL.md` and follow it in place.
|
|
@@ -2,29 +2,87 @@
|
|
|
2
2
|
|
|
3
3
|
Run the Harness update checker script. Do not invoke a skill or start WF mode.
|
|
4
4
|
|
|
5
|
+
## Classification
|
|
6
|
+
|
|
7
|
+
MANIFEST-FIRST. The installer and updater read `Harness/ownership.manifest.json`:
|
|
8
|
+
|
|
9
|
+
- `preserve[]` - existing user data is never overwritten (tasks, memory, research, root README, package, architecture). Missing scaffold starter files may be created when no local user data exists. `Harness/tasks/**` is always preserved.
|
|
10
|
+
- `merge[]` - CLAUDE.md, AGENTS.md, MEMORY.md, Harness/MEMORY.md, Harness/README.md -> merge or accept-local; prior accepted decisions carry forward.
|
|
11
|
+
- `frameworkOwned[]` - safe overwrite-upgrade fast path (concurrent fetch + hash + all-or-nothing write after checksum validation).
|
|
12
|
+
- `optionalOwned[]` - upgraded only when that option is installed.
|
|
13
|
+
|
|
14
|
+
Content markers (`harness: wf-agent`, `project harness`, `Harness/...`) are the fallback when no manifest exists (old installs) and the instance-ownership signal that protects a user's same-name file at a Harness path. A same-name user file with no marker and no manifest declaration becomes conflict/skip + warning, never overwritten.
|
|
15
|
+
|
|
16
|
+
## Cache Discipline
|
|
17
|
+
|
|
18
|
+
Follow `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`: keep updater
|
|
19
|
+
scripts and ownership docs stable, consume compact `--json` agent plans first,
|
|
20
|
+
and avoid pasting verbose diffs or full remote files unless a conflict requires
|
|
21
|
+
targeted inspection.
|
|
22
|
+
|
|
5
23
|
## Flow
|
|
6
24
|
|
|
7
|
-
1. Run `node Harness/scripts/wf-update-check.mjs --json` and use the
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
25
|
+
1. Run `node Harness/scripts/wf-update-check.mjs --json` first and use the
|
|
26
|
+
`agent` block as the action plan. Preserve `agent.releaseHighlights` for the
|
|
27
|
+
user-facing update summary. Current updaters try npm
|
|
28
|
+
`create-harness-vibe-coding@latest` first, then the canonical GitHub source
|
|
29
|
+
`LiWeny16/create-harness-vibe-coding`, then the legacy compatibility mirror
|
|
30
|
+
`zingspark/create-harness-vibe-coding`.
|
|
31
|
+
2. Preserve all existing PRESERVE files. Never overwrite user task, memory,
|
|
32
|
+
research, root README.md, package, or architecture files. Missing scaffold
|
|
33
|
+
starter files may be created, and checksum-matching legacy architecture can
|
|
34
|
+
move to `Harness/project/architecture.md`. Harness/README.md is merge-tier,
|
|
35
|
+
not PRESERVE.
|
|
36
|
+
3. If `agent.safeApplyCommand` is present, run it to apply SAFE, NEW, and
|
|
37
|
+
adopted metadata-only files before spending AI time on conflicts. Default
|
|
38
|
+
command: `node Harness/scripts/wf-update-check.mjs --apply-safe`.
|
|
39
|
+
Framework-owned templates, commands, skills, agents, and scripts are
|
|
40
|
+
script-owned and should be overwritten by the updater after checksum
|
|
41
|
+
validation.
|
|
42
|
+
4. Previously accepted decisions for any merge-tier file (CLAUDE.md, AGENTS.md,
|
|
43
|
+
MEMORY.md, Harness/MEMORY.md, Harness/README.md) are carried forward
|
|
44
|
+
automatically when both the local hash and remote template hash are
|
|
45
|
+
unchanged.
|
|
46
|
+
5. If a new agent/command/skill path collides with an existing file, do not
|
|
47
|
+
decide by filename alone. Treat it as Harness-owned only when the file
|
|
48
|
+
content has Harness/WF markers such as `harness: wf-agent`,
|
|
49
|
+
`project harness`, or `Harness/...`; otherwise leave it as a real conflict.
|
|
50
|
+
6. For every remaining `agent.aiMergeRequired` entry, compare the local file
|
|
51
|
+
with `templateHint` or `remoteUrl`, then choose merge, keep-local, or
|
|
52
|
+
overwrite-from-template. Record the decision through the script with
|
|
53
|
+
`--accept-local <file>`, `--accept-merged <file>`, or
|
|
54
|
+
`--accept-template <file>`; do not hand-edit `Harness/.harness-version`.
|
|
55
|
+
Ask the user only when the intent is ambiguous.
|
|
56
|
+
7. Run `node Harness/scripts/wf-update-check.mjs --finalize` after all
|
|
57
|
+
conflicts have script-recorded decisions. Use strict `--apply` only when the
|
|
58
|
+
JSON plan has zero conflicts.
|
|
59
|
+
8. After update, run `node Harness/scripts/validate-harness.mjs` and then
|
|
60
|
+
`node Harness/scripts/scan-clean.mjs`.
|
|
13
61
|
|
|
14
|
-
Codex users without a direct command surface: use `$wf-update` (skill path) or
|
|
62
|
+
Codex users without a direct command surface: use `$wf-update` (skill path) or
|
|
63
|
+
`node Harness/scripts/wf-update-check.mjs`.
|
|
15
64
|
|
|
16
65
|
## Recovery
|
|
17
66
|
|
|
18
|
-
If
|
|
67
|
+
If `Harness/scripts/wf-update-check.mjs` is missing (old install without updater), or `Harness/.harness-version` is missing or corrupted, do NOT reinstall from scratch. Recover by regenerating missing infrastructure:
|
|
19
68
|
|
|
20
69
|
```
|
|
21
70
|
npx create-harness-vibe-coding@latest <project-name> . -y --on-conflict skip
|
|
22
71
|
```
|
|
23
72
|
|
|
24
|
-
|
|
73
|
+
The `--on-conflict skip` policy preserves all existing user files (CLAUDE.md, README.md, tasks, memory, research, architecture) and only creates missing Harness infrastructure files. After recovery, re-run the update check.
|
|
25
74
|
|
|
26
|
-
If an old updater reports only `0.8.10`, run the latest installer command above
|
|
75
|
+
If an old updater reports only `0.8.10`, run the latest installer command above
|
|
76
|
+
or re-run the checker with:
|
|
27
77
|
|
|
28
78
|
```
|
|
29
79
|
node Harness/scripts/wf-update-check.mjs --json --source-base https://raw.githubusercontent.com/LiWeny16/create-harness-vibe-coding/main/templates/common/
|
|
30
80
|
```
|
|
81
|
+
|
|
82
|
+
## Return
|
|
83
|
+
|
|
84
|
+
Report version, SAFE/NEW updates, conflicts and decisions, preserved files,
|
|
85
|
+
partialUpdate status if any, validation output, scan-clean result, and remaining
|
|
86
|
+
risks. Also report the core release highlights from `agent.releaseHighlights`
|
|
87
|
+
or `releaseNotes.highlights` so the user understands what changed in this
|
|
88
|
+
Harness version, not only which files changed.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run the tiered WF workflow (WF-Light/Standard/Full) via the wf skill
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /wf
|
|
6
|
+
|
|
7
|
+
This is a **workflow command**, not a direct command. Do not execute it as a
|
|
8
|
+
static help or script command.
|
|
9
|
+
|
|
10
|
+
1. Load `CLAUDE.md`, `Harness/MEMORY.md` (index only per Memory Preflight), then `Harness/README.md`.
|
|
11
|
+
2. Preserve cache-first order per `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`.
|
|
12
|
+
3. Execute per the skill adapter `.claude/skills/wf/SKILL.md` (mirror: `.agents/skills/wf/SKILL.md`).
|
|
13
|
+
4. Do not duplicate the workflow here. The skill adapter and `Harness/specs/workflows/WF.md` are authoritative.
|
|
14
|
+
|
|
15
|
+
If this runtime cannot invoke the skill directly, read
|
|
16
|
+
`.claude/skills/wf/SKILL.md` and follow it in place.
|
|
@@ -8,7 +8,7 @@ alwaysApply: true
|
|
|
8
8
|
## Context
|
|
9
9
|
|
|
10
10
|
- Start with `CLAUDE.md`. When `Harness/` exists, also read `Harness/memory/startup-hints.md` (L2 lightweight digest, not full router).
|
|
11
|
-
- When the user explicitly invokes a `/wf-*`
|
|
11
|
+
- When the user explicitly invokes a workflow command (`/wf-*`, `$wf-*`, or `/skills wf-*`), excluding `/wf-help`, `$wf-help`, `/skills wf-help`, `/wf-update`, `$wf-update`, and `/skills wf-update`, load `Harness/MEMORY.md` and `Harness/README.md`.
|
|
12
12
|
- For simple single-step tasks without `/wf-*`, operate in direct mode: skip the Harness router and execute directly.
|
|
13
13
|
- Do not bulk-read `Harness/`. Load by router trigger.
|
|
14
14
|
- Keep `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` current when work has multiple steps, files, or agents.
|
|
@@ -24,6 +24,7 @@ alwaysApply: true
|
|
|
24
24
|
|
|
25
25
|
## Low-Noise Progress
|
|
26
26
|
|
|
27
|
+
- Match the user's language for user-facing prose. Use the latest user message's dominant language unless the user asks otherwise; preserve code, commands, file paths, logs, and quoted source text exactly.
|
|
27
28
|
- Keep intermediate user updates to 1-2 short sentences.
|
|
28
29
|
- Do not recap plans, paste logs, or narrate obvious file reads while working.
|
|
29
30
|
- Put the detailed summary in the final response: files changed, verification, risks, and commit hash when relevant.
|
|
@@ -31,10 +32,10 @@ alwaysApply: true
|
|
|
31
32
|
|
|
32
33
|
## Subagents
|
|
33
34
|
|
|
34
|
-
- Use `Harness/subagents.md` before orchestrating multiple agents.
|
|
35
|
-
- Use `Harness/context-loading.md` before spawning.
|
|
36
|
-
- Use `Harness/dispatch.md` before parallel or multi-agent work.
|
|
37
|
-
- Use `Harness/extension.md` before adding stack-specific agents, skills, or rules.
|
|
35
|
+
- Use `Harness/specs/runtime/subagents.md` before orchestrating multiple agents.
|
|
36
|
+
- Use `Harness/specs/runtime/context-loading.md` before spawning.
|
|
37
|
+
- Use `Harness/specs/runtime/dispatch.md` before parallel or multi-agent work.
|
|
38
|
+
- Use `Harness/specs/guides/extension.md` before adding stack-specific agents, skills, or rules.
|
|
38
39
|
- Every subagent needs role, task, read boundary, write boundary, and return format.
|
|
39
40
|
- Writing agents must run serially unless write sets are disjoint.
|
|
40
41
|
- If the runtime cannot spawn subagents, emulate the same role pack in a separate bounded pass.
|
|
@@ -16,13 +16,19 @@ subagent surfaces; follow the same Harness role contract either way.
|
|
|
16
16
|
|
|
17
17
|
## Load
|
|
18
18
|
|
|
19
|
-
- `Harness/subagents.md`
|
|
20
|
-
- `Harness/dispatch.md`
|
|
21
|
-
- `Harness/context-loading.md`
|
|
22
|
-
- `Harness/agent-workflow.md`
|
|
19
|
+
- `Harness/specs/runtime/subagents.md`
|
|
20
|
+
- `Harness/specs/runtime/dispatch.md`
|
|
21
|
+
- `Harness/specs/runtime/context-loading.md`
|
|
22
|
+
- `Harness/specs/runtime/agent-workflow.md`
|
|
23
23
|
- `Harness/PROGRESS.md`
|
|
24
24
|
- Active `Harness/tasks/<task-id>/PROGRESS.md` and `PLAN.md`, when present
|
|
25
|
-
- `Harness/WF.md` when in explicit `/wf`, `$wf`, or `/skills wf`
|
|
25
|
+
- `Harness/specs/workflows/WF.md` when in explicit `/wf`, `$wf`, or `/skills wf`
|
|
26
|
+
|
|
27
|
+
## Cache Discipline
|
|
28
|
+
|
|
29
|
+
Follow `Harness/specs/runtime/context-loading.md#Cache-First Context Contract`: inject only
|
|
30
|
+
routed docs and selected files, keep dispatch packet fields deterministic, defer
|
|
31
|
+
unused skill/tool schemas, and require bounded summaries instead of transcripts.
|
|
26
32
|
|
|
27
33
|
## Runtime Mapping
|
|
28
34
|
|
|
@@ -42,7 +48,7 @@ subagent surfaces; follow the same Harness role contract either way.
|
|
|
42
48
|
integrates returns, and owns final verification.
|
|
43
49
|
- Subagents or bounded passes are readers and reporters unless a write set is
|
|
44
50
|
explicitly assigned and disjoint.
|
|
45
|
-
- Explicit WF/WF-MAX requires tier-specific role coverage per `Harness/WF.md`.
|
|
51
|
+
- Explicit WF/WF-MAX requires tier-specific role coverage per `Harness/specs/workflows/WF.md`.
|
|
46
52
|
- Every dispatch needs role, goal, mode, read set, write set, forbidden scope,
|
|
47
53
|
injected docs, dependencies, evidence, stop condition, and return format.
|
|
48
54
|
- Prefer parallel read-only exploration first. Serialize writers unless write
|