create-harness-vibe-coding 0.8.7 → 0.8.8
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-CN.md +157 -105
- package/README.md +160 -244
- package/bin/create-harness-vibe-coding.js +2 -2
- package/docs/images/harness-architecture-light.png +0 -0
- package/docs/images/harness-architecture.drawio +164 -0
- package/package.json +46 -44
- package/src/generator.js +5 -5
- package/src/index.js +14 -9
- package/src/prompts.js +37 -37
- package/templates/common/.claude/agents/architect-manager.md +45 -45
- package/templates/common/.claude/agents/context-master.md +75 -75
- package/templates/common/.claude/agents/debugger.md +41 -41
- package/templates/common/.claude/agents/explore-manager.md +41 -41
- package/templates/common/.claude/agents/implement-manager.md +49 -49
- package/templates/common/.claude/agents/implementer.md +40 -40
- package/templates/common/.claude/agents/memory-master.md +64 -64
- package/templates/common/.claude/agents/planner.md +34 -34
- package/templates/common/.claude/agents/researcher.md +41 -41
- package/templates/common/.claude/agents/review-manager.md +56 -56
- package/templates/common/.claude/agents/verifier.md +29 -29
- package/templates/common/.claude/commands/wf-help.md +1 -1
- package/templates/common/.claude/rules/ecc/common.md +44 -44
- package/templates/common/.claude/skills/wf-auto/SKILL.md +8 -6
- package/templates/common/.claude/skills/wf-readme/SKILL.md +49 -49
- package/templates/common/.claude/skills/wf-remove/SKILL.md +7 -7
- package/templates/common/.harness-version +54 -14
- package/templates/common/.opencode/agents/architect-manager.md +52 -0
- package/templates/common/.opencode/agents/architect.md +35 -0
- package/templates/common/.opencode/agents/context-master.md +81 -0
- package/templates/common/.opencode/agents/debugger.md +43 -0
- package/templates/common/.opencode/agents/docs-researcher.md +42 -0
- package/templates/common/.opencode/agents/explore-manager.md +49 -0
- package/templates/common/.opencode/agents/implement-manager.md +56 -0
- package/templates/common/.opencode/agents/implementer.md +42 -0
- package/templates/common/.opencode/agents/memory-master.md +70 -0
- package/templates/common/.opencode/agents/planner.md +38 -0
- package/templates/common/.opencode/agents/reflector.md +39 -0
- package/templates/common/.opencode/agents/researcher.md +42 -0
- package/templates/common/.opencode/agents/review-manager.md +63 -0
- package/templates/common/.opencode/agents/reviewer.md +37 -0
- package/templates/common/.opencode/agents/tdd-guide.md +83 -0
- package/templates/common/.opencode/agents/test-writer.md +54 -0
- package/templates/common/.opencode/agents/verifier.md +37 -0
- package/templates/common/.opencode/commands/wf-help.md +23 -0
- package/templates/common/CLAUDE.md +85 -88
- package/templates/common/Harness/PROGRESS.md +17 -17
- package/templates/common/Harness/README.md +16 -5
- package/templates/common/Harness/WF-AUTO-ANGLES.md +170 -0
- package/templates/common/Harness/WF-AUTO-SPARK.md +5 -5
- package/templates/common/Harness/WF-AUTO.md +85 -96
- package/templates/common/Harness/architecture.md +124 -124
- package/templates/common/Harness/context-loading.md +111 -111
- package/templates/common/Harness/extension.md +66 -66
- package/templates/common/Harness/lifecycle.md +20 -20
- package/templates/common/Harness/research/PRD.md +56 -56
- package/templates/common/Harness/research/README.md +169 -169
- package/templates/common/Harness/research/research-results.md +66 -66
- package/templates/common/Harness/subagents.md +208 -208
- package/templates/common/Harness/tasks/_template/ARTIFACTS.md +2 -2
- package/templates/common/Harness/tasks/_template/NOTES.md +2 -2
- package/templates/common/MEMORY.md +1 -1
- package/templates/common/README.md +36 -36
- package/templates/common/memory/agent-lessons-patterns.md +21 -21
- package/templates/common/memory/tool-usage-reflections.md +21 -21
- package/templates/common/memory/user-corrections-preferences.md +21 -21
- package/templates/common/opencode.json +19 -0
- package/templates/common/scripts/scan-clean.mjs +415 -415
- package/templates/common/scripts/validate-harness.mjs +274 -245
- package/templates/common/scripts/wf-remove.mjs +56 -39
- package/templates/common/scripts/wf-update-check.mjs +599 -599
- package/templates/optional/catalog.json +41 -33
- package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +193 -193
- package/templates/optional/skills/browser-e2e/Harness/workflows/browser-e2e.md +48 -48
- package/templates/optional/skills/github-pr-review/Harness/workflows/github-pr-review.md +28 -28
- package/templates/optional/skills/python-backend/Harness/workflows/python-backend.md +34 -34
- package/templates/optional/skills/ts-react-frontend/Harness/workflows/ts-react-frontend.md +34 -34
- package/templates/optional/skills/ui-ux-review/Harness/workflows/ui-ux-review.md +26 -26
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
# Subagent Orchestration
|
|
2
|
-
|
|
3
|
-
Purpose: coordinate subagents for speed without losing control of scope, evidence, or integration.
|
|
4
|
-
|
|
5
|
-
Use this file when work needs multiple roles, parallel reading, independent review, broad context, repeated failures, or `/wf`.
|
|
6
|
-
|
|
7
|
-
project files are the only durable communication channel; chat/subagent transcript state is non-authoritative. Important assumptions, decisions, blockers, evidence, and handoffs must be written to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`, the current feature doc, `Harness/MEMORY.md`, or `Harness/memory/*` as appropriate.
|
|
8
|
-
|
|
9
|
-
Subagent work is acceptance-driven. Use [AGENT_ISOLATION.md](AGENT_ISOLATION.md)
|
|
10
|
-
for role/context isolation and [ACCEPTANCE_PROTOCOL.md](ACCEPTANCE_PROTOCOL.md)
|
|
11
|
-
for PRD-GATE, AC-GATE, CONTRACT-GATE, TEST-GATE, VALIDATION-GATE, and
|
|
12
|
-
REVIEW-GATE.
|
|
13
|
-
|
|
14
|
-
## Source Attribution
|
|
15
|
-
|
|
16
|
-
This harness distills ideas from these sources. Keep the protocol local and conservative; do not import external runtimes by default.
|
|
17
|
-
|
|
18
|
-
| Source | Found By | Adopted Idea |
|
|
19
|
-
| --- | --- | --- |
|
|
20
|
-
| `superpowers:dispatching-parallel-agents` | local skill | Dispatch one agent per independent problem domain; give focused scope and exact context. |
|
|
21
|
-
| `superpowers:subagent-driven-development` | local skill | Fresh implementer per task; spec review before code-quality review; handle `DONE`, `DONE_WITH_CONCERNS`, `NEEDS_CONTEXT`, and `BLOCKED`. |
|
|
22
|
-
| [`flc1125/skills@subagent-orchestrator`](https://skills.sh/flc1125/skills/subagent-orchestrator) | `npx skills find "subagent orchestration"` | Explicit subagent invocation, role-specific prompts, tool permission awareness. |
|
|
23
|
-
| [`davila7/claude-code-templates@parallel-agents`](https://skills.sh/davila7/claude-code-templates/parallel-agents) | `npx skills find "parallel agents"` | Discovery -> domain agents -> synthesis; one unified synthesis instead of scattered reports. |
|
|
24
|
-
| [`ruvnet/ruflo@agent-workflow`](https://skills.sh/ruvnet/ruflo/agent-workflow) | `npx skills find "agent workflow"` | Workflow thinking: triggers, agent assignments, parallel processing, and stateful handoffs. |
|
|
25
|
-
| [`pcvelz/superpowers@subagent-driven-development`](https://skills.sh/pcvelz/superpowers/subagent-driven-development) | `npx skills find "subagent driven development"` | Implementer plus review gates for spec compliance and code quality. |
|
|
26
|
-
| [`oimiragieo/agent-studio`](https://skills.sh/oimiragieo/agent-studio/dispatching-parallel-agents) | Skills CLI / public docs | Router-subordinate architecture and durable handoff discipline. |
|
|
27
|
-
| [`subagent-orchestration-skill`](https://skills.rest/rjtaryn/skills/subagent-orchestration-skill) | public docs | Multi-stage executor, spec reviewer, code reviewer, circuit breaker, and escalation pattern. |
|
|
28
|
-
|
|
29
|
-
## Controller Role
|
|
30
|
-
|
|
31
|
-
The main agent is the controller. It owns:
|
|
32
|
-
|
|
33
|
-
- intent confidence and user questions
|
|
34
|
-
- task decomposition
|
|
35
|
-
- read/write set boundaries
|
|
36
|
-
- dispatch table in `Harness/tasks/<task-id>/PLAN.md#Subagent Dispatch`
|
|
37
|
-
- integration of returned summaries
|
|
38
|
-
- final verification and closeout
|
|
39
|
-
|
|
40
|
-
Subagents provide bounded work. They do not own final scope, architecture, release claims, or user-facing decisions.
|
|
41
|
-
|
|
42
|
-
## Built-in Agent Roster
|
|
43
|
-
|
|
44
|
-
Use the installed roster under `.claude/agents/` before inventing ad hoc roles.
|
|
45
|
-
|
|
46
|
-
| Agent | Default Use |
|
|
47
|
-
| --- | --- |
|
|
48
|
-
| `planner` | decompose goals, map unknowns, define success criteria and write sets |
|
|
49
|
-
| `researcher` | local/external ecosystem context, comparable projects, current facts |
|
|
50
|
-
| `docs-researcher` | official docs, SDK/API behavior, browser/tool constraints |
|
|
51
|
-
| `architect` | boundaries, interface decoupling, state ownership, data flow, migration risk |
|
|
52
|
-
| `test-writer` | failing tests, manual check contracts, browser/API evidence plan |
|
|
53
|
-
| `implementer` | bounded code or doc changes after the second plan |
|
|
54
|
-
| `reviewer` | spec compliance, code quality, maintainability, security, missing tests |
|
|
55
|
-
| `debugger` | reproduced failures, root cause isolation, smallest safe fix |
|
|
56
|
-
| `verifier` | command execution, real browser/API checks, final evidence |
|
|
57
|
-
| `reflector` | closeout synthesis, unresolved-risk check, acceptance gate verdict |
|
|
58
|
-
| `memory-master` | write/consolidate memory entries, dedup, cross-project extraction; dispatched on repeated failures, user corrections, and WF closeout |
|
|
59
|
-
| `context-master` | analyze context usage, recommend compression at ~85% window, extract durable session knowledge during closeout |
|
|
60
|
-
|
|
61
|
-
## Acceptance Role Passes
|
|
62
|
-
|
|
63
|
-
These are role passes that may be handled by the built-in roster above or by
|
|
64
|
-
project-specific agents. They define context boundaries even when no dedicated
|
|
65
|
-
agent file exists.
|
|
66
|
-
|
|
67
|
-
| Role Pass | Default Agent | Reads | Writes |
|
|
68
|
-
| --- | --- | --- | --- |
|
|
69
|
-
| PRD Planner | `planner` | user request, memory, research | Mini PRD/task PLAN only |
|
|
70
|
-
| Acceptance Agent | `planner` or `test-writer` | PRD, user scenarios, UI requirements | AC section only |
|
|
71
|
-
| Contract Agent | `architect` or `test-writer` | PRD, AC, API/schema/UI requirements | UI/API/state contract section only |
|
|
72
|
-
| Test Architect | `test-writer` | AC, contracts, test utilities | tests or test plan only |
|
|
73
|
-
| Implementer | `implementer` | PRD, AC, contracts, tests, relevant code | assigned implementation write set only |
|
|
74
|
-
| Independent Validator | `verifier` | PRD, AC, contracts, running app/API, commands | validation report/evidence only |
|
|
75
|
-
| Cross Review | `reviewer` | PRD, AC, contracts, diff, tests, validation evidence | spec/AC and code/architecture/test findings only |
|
|
76
|
-
| Reflector | `reflector` | validation evidence, reviewer findings, risks, decisions | final PASS/RETURN_TO_DEBUG/BLOCKED verdict only |
|
|
77
|
-
| Debugger | `debugger` | failed AC, logs, trace, screenshot, diff | smallest assigned fix set |
|
|
78
|
-
|
|
79
|
-
Hard rule: implementer may not be the independent validator for the same AC ID.
|
|
80
|
-
|
|
81
|
-
## WF Default Fan-Out
|
|
82
|
-
|
|
83
|
-
Explicit `/wf`, `wf mode`, `workflow mode`, or `wk mode` requires complete
|
|
84
|
-
role-chain coverage from `.claude/agents/` before closeout: plan,
|
|
85
|
-
research/docs research as needed, architecture, test, implement, independent
|
|
86
|
-
validation, cross-review, reflector, and accept.
|
|
87
|
-
|
|
88
|
-
Default starter set:
|
|
89
|
-
|
|
90
|
-
- `planner` for decomposition and local map
|
|
91
|
-
- `architect` for boundaries, interfaces, and state impact
|
|
92
|
-
- `researcher` or `docs-researcher` depending whether the unknowns are project/ecosystem facts or official tool/API behavior
|
|
93
|
-
|
|
94
|
-
Then add phase-specific agents:
|
|
95
|
-
|
|
96
|
-
- `test-writer` before implementation
|
|
97
|
-
- `implementer` for the serial write lane
|
|
98
|
-
- `reviewer` for independent spec/AC and code/architecture/test gates
|
|
99
|
-
- `debugger` after a reproduced verification failure
|
|
100
|
-
- `verifier` for command/browser/API evidence and AC matrix
|
|
101
|
-
- `reflector` after cross-review to decide whether final acceptance may proceed
|
|
102
|
-
- `context-master` before closeout for knowledge extraction
|
|
103
|
-
- `memory-master` after repeated failures and during closeout for consolidation
|
|
104
|
-
|
|
105
|
-
Collaboration mode is determined by concrete conditions, not a fixed ratio. See `Harness/WF.md#Complete Role Chain Requirement` for the full decision tree. Summary: explicit WF/WK mode always uses the complete role chain. 3+ files or cross-layer work uses multi-agent orchestration. 1-2 local files, well-understood, not in WF mode can be solo. Repeated failure stops solo work and switches to multi-agent.
|
|
106
|
-
|
|
107
|
-
## Efficiency Ladder
|
|
108
|
-
|
|
109
|
-
Choose the cheapest coordination level that is safe.
|
|
110
|
-
|
|
111
|
-
| Level | Use When | Pattern |
|
|
112
|
-
| --- | --- | --- |
|
|
113
|
-
| Solo pass | one file, low risk, clear intent | no subagent |
|
|
114
|
-
| Single reviewer | small change with meaningful risk | implement, then reviewer |
|
|
115
|
-
| Parallel read-only | broad reading, research, architecture, multiple independent failures | 2-3 read-only agents |
|
|
116
|
-
| Serial build lane | normal feature or fix | acceptance/contract -> test-writer -> implementer -> verifier evidence -> cross-review -> reflector -> acceptance |
|
|
1
|
+
# Subagent Orchestration
|
|
2
|
+
|
|
3
|
+
Purpose: coordinate subagents for speed without losing control of scope, evidence, or integration.
|
|
4
|
+
|
|
5
|
+
Use this file when work needs multiple roles, parallel reading, independent review, broad context, repeated failures, or `/wf`.
|
|
6
|
+
|
|
7
|
+
project files are the only durable communication channel; chat/subagent transcript state is non-authoritative. Important assumptions, decisions, blockers, evidence, and handoffs must be written to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`, the current feature doc, `Harness/MEMORY.md`, or `Harness/memory/*` as appropriate.
|
|
8
|
+
|
|
9
|
+
Subagent work is acceptance-driven. Use [AGENT_ISOLATION.md](AGENT_ISOLATION.md)
|
|
10
|
+
for role/context isolation and [ACCEPTANCE_PROTOCOL.md](ACCEPTANCE_PROTOCOL.md)
|
|
11
|
+
for PRD-GATE, AC-GATE, CONTRACT-GATE, TEST-GATE, VALIDATION-GATE, and
|
|
12
|
+
REVIEW-GATE.
|
|
13
|
+
|
|
14
|
+
## Source Attribution
|
|
15
|
+
|
|
16
|
+
This harness distills ideas from these sources. Keep the protocol local and conservative; do not import external runtimes by default.
|
|
17
|
+
|
|
18
|
+
| Source | Found By | Adopted Idea |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| `superpowers:dispatching-parallel-agents` | local skill | Dispatch one agent per independent problem domain; give focused scope and exact context. |
|
|
21
|
+
| `superpowers:subagent-driven-development` | local skill | Fresh implementer per task; spec review before code-quality review; handle `DONE`, `DONE_WITH_CONCERNS`, `NEEDS_CONTEXT`, and `BLOCKED`. |
|
|
22
|
+
| [`flc1125/skills@subagent-orchestrator`](https://skills.sh/flc1125/skills/subagent-orchestrator) | `npx skills find "subagent orchestration"` | Explicit subagent invocation, role-specific prompts, tool permission awareness. |
|
|
23
|
+
| [`davila7/claude-code-templates@parallel-agents`](https://skills.sh/davila7/claude-code-templates/parallel-agents) | `npx skills find "parallel agents"` | Discovery -> domain agents -> synthesis; one unified synthesis instead of scattered reports. |
|
|
24
|
+
| [`ruvnet/ruflo@agent-workflow`](https://skills.sh/ruvnet/ruflo/agent-workflow) | `npx skills find "agent workflow"` | Workflow thinking: triggers, agent assignments, parallel processing, and stateful handoffs. |
|
|
25
|
+
| [`pcvelz/superpowers@subagent-driven-development`](https://skills.sh/pcvelz/superpowers/subagent-driven-development) | `npx skills find "subagent driven development"` | Implementer plus review gates for spec compliance and code quality. |
|
|
26
|
+
| [`oimiragieo/agent-studio`](https://skills.sh/oimiragieo/agent-studio/dispatching-parallel-agents) | Skills CLI / public docs | Router-subordinate architecture and durable handoff discipline. |
|
|
27
|
+
| [`subagent-orchestration-skill`](https://skills.rest/rjtaryn/skills/subagent-orchestration-skill) | public docs | Multi-stage executor, spec reviewer, code reviewer, circuit breaker, and escalation pattern. |
|
|
28
|
+
|
|
29
|
+
## Controller Role
|
|
30
|
+
|
|
31
|
+
The main agent is the controller. It owns:
|
|
32
|
+
|
|
33
|
+
- intent confidence and user questions
|
|
34
|
+
- task decomposition
|
|
35
|
+
- read/write set boundaries
|
|
36
|
+
- dispatch table in `Harness/tasks/<task-id>/PLAN.md#Subagent Dispatch`
|
|
37
|
+
- integration of returned summaries
|
|
38
|
+
- final verification and closeout
|
|
39
|
+
|
|
40
|
+
Subagents provide bounded work. They do not own final scope, architecture, release claims, or user-facing decisions.
|
|
41
|
+
|
|
42
|
+
## Built-in Agent Roster
|
|
43
|
+
|
|
44
|
+
Use the installed roster under `.claude/agents/` before inventing ad hoc roles.
|
|
45
|
+
|
|
46
|
+
| Agent | Default Use |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `planner` | decompose goals, map unknowns, define success criteria and write sets |
|
|
49
|
+
| `researcher` | local/external ecosystem context, comparable projects, current facts |
|
|
50
|
+
| `docs-researcher` | official docs, SDK/API behavior, browser/tool constraints |
|
|
51
|
+
| `architect` | boundaries, interface decoupling, state ownership, data flow, migration risk |
|
|
52
|
+
| `test-writer` | failing tests, manual check contracts, browser/API evidence plan |
|
|
53
|
+
| `implementer` | bounded code or doc changes after the second plan |
|
|
54
|
+
| `reviewer` | spec compliance, code quality, maintainability, security, missing tests |
|
|
55
|
+
| `debugger` | reproduced failures, root cause isolation, smallest safe fix |
|
|
56
|
+
| `verifier` | command execution, real browser/API checks, final evidence |
|
|
57
|
+
| `reflector` | closeout synthesis, unresolved-risk check, acceptance gate verdict |
|
|
58
|
+
| `memory-master` | write/consolidate memory entries, dedup, cross-project extraction; dispatched on repeated failures, user corrections, and WF closeout |
|
|
59
|
+
| `context-master` | analyze context usage, recommend compression at ~85% window, extract durable session knowledge during closeout |
|
|
60
|
+
|
|
61
|
+
## Acceptance Role Passes
|
|
62
|
+
|
|
63
|
+
These are role passes that may be handled by the built-in roster above or by
|
|
64
|
+
project-specific agents. They define context boundaries even when no dedicated
|
|
65
|
+
agent file exists.
|
|
66
|
+
|
|
67
|
+
| Role Pass | Default Agent | Reads | Writes |
|
|
68
|
+
| --- | --- | --- | --- |
|
|
69
|
+
| PRD Planner | `planner` | user request, memory, research | Mini PRD/task PLAN only |
|
|
70
|
+
| Acceptance Agent | `planner` or `test-writer` | PRD, user scenarios, UI requirements | AC section only |
|
|
71
|
+
| Contract Agent | `architect` or `test-writer` | PRD, AC, API/schema/UI requirements | UI/API/state contract section only |
|
|
72
|
+
| Test Architect | `test-writer` | AC, contracts, test utilities | tests or test plan only |
|
|
73
|
+
| Implementer | `implementer` | PRD, AC, contracts, tests, relevant code | assigned implementation write set only |
|
|
74
|
+
| Independent Validator | `verifier` | PRD, AC, contracts, running app/API, commands | validation report/evidence only |
|
|
75
|
+
| Cross Review | `reviewer` | PRD, AC, contracts, diff, tests, validation evidence | spec/AC and code/architecture/test findings only |
|
|
76
|
+
| Reflector | `reflector` | validation evidence, reviewer findings, risks, decisions | final PASS/RETURN_TO_DEBUG/BLOCKED verdict only |
|
|
77
|
+
| Debugger | `debugger` | failed AC, logs, trace, screenshot, diff | smallest assigned fix set |
|
|
78
|
+
|
|
79
|
+
Hard rule: implementer may not be the independent validator for the same AC ID.
|
|
80
|
+
|
|
81
|
+
## WF Default Fan-Out
|
|
82
|
+
|
|
83
|
+
Explicit `/wf`, `wf mode`, `workflow mode`, or `wk mode` requires complete
|
|
84
|
+
role-chain coverage from `.claude/agents/` before closeout: plan,
|
|
85
|
+
research/docs research as needed, architecture, test, implement, independent
|
|
86
|
+
validation, cross-review, reflector, and accept.
|
|
87
|
+
|
|
88
|
+
Default starter set:
|
|
89
|
+
|
|
90
|
+
- `planner` for decomposition and local map
|
|
91
|
+
- `architect` for boundaries, interfaces, and state impact
|
|
92
|
+
- `researcher` or `docs-researcher` depending whether the unknowns are project/ecosystem facts or official tool/API behavior
|
|
93
|
+
|
|
94
|
+
Then add phase-specific agents:
|
|
95
|
+
|
|
96
|
+
- `test-writer` before implementation
|
|
97
|
+
- `implementer` for the serial write lane
|
|
98
|
+
- `reviewer` for independent spec/AC and code/architecture/test gates
|
|
99
|
+
- `debugger` after a reproduced verification failure
|
|
100
|
+
- `verifier` for command/browser/API evidence and AC matrix
|
|
101
|
+
- `reflector` after cross-review to decide whether final acceptance may proceed
|
|
102
|
+
- `context-master` before closeout for knowledge extraction
|
|
103
|
+
- `memory-master` after repeated failures and during closeout for consolidation
|
|
104
|
+
|
|
105
|
+
Collaboration mode is determined by concrete conditions, not a fixed ratio. See `Harness/WF.md#Complete Role Chain Requirement` for the full decision tree. Summary: explicit WF/WK mode always uses the complete role chain. 3+ files or cross-layer work uses multi-agent orchestration. 1-2 local files, well-understood, not in WF mode can be solo. Repeated failure stops solo work and switches to multi-agent.
|
|
106
|
+
|
|
107
|
+
## Efficiency Ladder
|
|
108
|
+
|
|
109
|
+
Choose the cheapest coordination level that is safe.
|
|
110
|
+
|
|
111
|
+
| Level | Use When | Pattern |
|
|
112
|
+
| --- | --- | --- |
|
|
113
|
+
| Solo pass | one file, low risk, clear intent | no subagent |
|
|
114
|
+
| Single reviewer | small change with meaningful risk | implement, then reviewer |
|
|
115
|
+
| Parallel read-only | broad reading, research, architecture, multiple independent failures | 2-3 read-only agents |
|
|
116
|
+
| Serial build lane | normal feature or fix | acceptance/contract -> test-writer -> implementer -> verifier evidence -> cross-review -> reflector -> acceptance |
|
|
117
117
|
| Isolated lanes | disjoint write sets or competing approaches | separate worktrees, then review and merge |
|
|
118
118
|
| Max parallelism | 5+ disjoint files, fan-out benefit > coordination cost | /wf max: write-set coloring -> wave dispatch -> parallel review |
|
|
119
119
|
|
|
@@ -131,99 +131,99 @@ Default for automatic WF triggers: 3-5 active read-only agents before second
|
|
|
131
131
|
planning. For explicit WF/WK mode, never use the solo pass; schedule the
|
|
132
132
|
complete role chain and use bounded role passes as the recorded fallback when
|
|
133
133
|
subagents are unavailable.
|
|
134
|
-
|
|
135
|
-
## WF Orchestration Shape
|
|
136
|
-
|
|
137
|
-
```text
|
|
138
|
-
controller intake
|
|
139
|
-
-> parallel planner/researcher/docs-researcher/architect subagents
|
|
140
|
-
-> controller synthesis
|
|
141
|
-
-> second plan with dependencies and write sets
|
|
142
|
-
-> acceptance/contract/test-writer
|
|
143
|
-
-> implementer
|
|
144
|
-
-> independent validator
|
|
145
|
-
-> cross-review: spec/AC reviewer + code/architecture/test reviewer
|
|
146
|
-
-> reflector
|
|
147
|
-
-> if failed: debugger/fixer -> verify -> cross-review -> reflector -> loop
|
|
148
|
-
-> close with evidence
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Use this shape for `/wf`, long tasks, multi-file changes, architecture work, migrations, browser/API behavior, or repeated failures.
|
|
152
|
-
|
|
153
|
-
```text
|
|
154
|
-
/wf max orchestration shape:
|
|
155
|
-
controller intake
|
|
156
|
-
-> wave 0: max-parallel exploration (4-14 read-only agents)
|
|
134
|
+
|
|
135
|
+
## WF Orchestration Shape
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
controller intake
|
|
139
|
+
-> parallel planner/researcher/docs-researcher/architect subagents
|
|
140
|
+
-> controller synthesis
|
|
141
|
+
-> second plan with dependencies and write sets
|
|
142
|
+
-> acceptance/contract/test-writer
|
|
143
|
+
-> implementer
|
|
144
|
+
-> independent validator
|
|
145
|
+
-> cross-review: spec/AC reviewer + code/architecture/test reviewer
|
|
146
|
+
-> reflector
|
|
147
|
+
-> if failed: debugger/fixer -> verify -> cross-review -> reflector -> loop
|
|
148
|
+
-> close with evidence
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Use this shape for `/wf`, long tasks, multi-file changes, architecture work, migrations, browser/API behavior, or repeated failures.
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
/wf max orchestration shape:
|
|
155
|
+
controller intake
|
|
156
|
+
-> wave 0: max-parallel exploration (4-14 read-only agents)
|
|
157
157
|
-> E-GATE: Exploration Gate - all questions answered, findings synthesized (per WF-MAX.md)
|
|
158
158
|
-> wave 1: architecture - 3 parallel architects -> boundary decisions + interface contract
|
|
159
159
|
-> D-GATE: Write Decomposition Gate - Dispatch Table + Self-Audit for write-set (MANDATORY, per WF-MAX.md)
|
|
160
|
-
-> wave 2: N parallel implementers (disjoint file claims, ALL spawned in ONE message)
|
|
161
|
-
-> wave 2 review: parallel spec/code/security reviewers
|
|
162
|
-
-> wave 3+: dependent implementers (if any; re-run D-GATE if write-set changed)
|
|
163
|
-
-> integration verifier
|
|
164
|
-
-> reflector after cross-review
|
|
165
|
-
-> closeout with evidence
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
## Dispatch Pack
|
|
169
|
-
|
|
160
|
+
-> wave 2: N parallel implementers (disjoint file claims, ALL spawned in ONE message)
|
|
161
|
+
-> wave 2 review: parallel spec/code/security reviewers
|
|
162
|
+
-> wave 3+: dependent implementers (if any; re-run D-GATE if write-set changed)
|
|
163
|
+
-> integration verifier
|
|
164
|
+
-> reflector after cross-review
|
|
165
|
+
-> closeout with evidence
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Dispatch Pack
|
|
169
|
+
|
|
170
170
|
Use the canonical dispatch input and handoff format in `Harness/dispatch.md`. Every subagent dispatch must be self-contained - inject only the docs selected by `Harness/README.md` and `Harness/context-loading.md`.
|
|
171
|
-
|
|
172
|
-
## Parallelism Rules
|
|
173
|
-
|
|
174
|
-
- Read-only agents may run in parallel.
|
|
175
|
-
- Writing agents run serially unless write sets are disjoint and the controller has chosen an isolated worktree.
|
|
176
|
-
- Reviewers may run in parallel after implementation, but spec compliance is evaluated before code-quality approval.
|
|
177
|
-
- Subagents are readers and reporters. They return findings and PLAN patch suggestions. Only the controller (main agent) commits state changes to task files.
|
|
178
|
-
- Do not let two agents edit `Harness/tasks/<task-id>/PROGRESS.md`, `Harness/tasks/<task-id>/PLAN.md`, `Harness/MEMORY.md`, or `Harness/memory/*` concurrently. The controller writes durable state.
|
|
179
|
-
- If two agents disagree, the controller records the conflict in `Harness/tasks/<task-id>/PLAN.md` and chooses the smallest reversible next step.
|
|
180
|
-
|
|
181
|
-
## Review Gates
|
|
182
|
-
|
|
183
|
-
Implementation is not complete until cross-review and reflection pass:
|
|
184
|
-
|
|
185
|
-
1. **Spec review**: confirms the result matches the user request, PRD, feature doc, acceptance criteria, contracts, and non-goals. Extra features are failures.
|
|
186
|
-
2. **Code-quality review**: checks correctness, maintainability, architecture, tests, security, and integration risk.
|
|
187
|
-
3. **Reflector gate**: checks reviewer findings, verifier evidence, unresolved risks, and contradictions; returns PASS, RETURN_TO_DEBUG, or BLOCKED.
|
|
188
|
-
|
|
189
|
-
Validation is separate from review. Validator must produce an AC-by-AC result
|
|
190
|
-
matrix from running behavior and evidence, not from the implementer's summary.
|
|
191
|
-
|
|
192
|
-
If either reviewer finds issues, the implementer or debugger fixes them and the same gate runs again. Do not move to final acceptance with open critical/high findings or without reflector PASS.
|
|
193
|
-
|
|
194
|
-
## Subagent Status Handling
|
|
195
|
-
|
|
196
|
-
| Status | Controller Action |
|
|
197
|
-
| --- | --- |
|
|
198
|
-
| `DONE` | start review gates |
|
|
199
|
-
| `DONE_WITH_CONCERNS` | read concerns, decide whether to address before review, record in `Harness/tasks/<task-id>/PROGRESS.md` |
|
|
200
|
-
| `NEEDS_CONTEXT` | provide only missing context and re-dispatch |
|
|
201
|
-
| `BLOCKED` | change something: add context, split task, upgrade reasoning, use debugger, or ask user |
|
|
202
|
-
|
|
203
|
-
Never retry the same failed prompt unchanged.
|
|
204
|
-
|
|
205
|
-
## Failure Recovery
|
|
206
|
-
|
|
207
|
-
- First failed verification: record evidence, dispatch debugger with the smallest reproduced failure.
|
|
208
|
-
- Second same-class failure: narrow scope, update `Harness/tasks/<task-id>/PROGRESS.md#Heartbeat`, and add a reviewer before another fix.
|
|
209
|
-
- Third same-class failure: stop blind fixes. Present evidence-backed options to the user.
|
|
210
|
-
|
|
211
|
-
The recovery loop must preserve the same evidence standard as the main workflow: real commands, real browser/API checks when applicable, and recorded logs or artifacts.
|
|
212
|
-
|
|
213
|
-
## Synthesis Output
|
|
214
|
-
|
|
215
|
-
After subagents return, the controller writes one synthesis into `Harness/tasks/<task-id>/PLAN.md`:
|
|
216
|
-
|
|
217
|
-
```text
|
|
218
|
-
Agents used:
|
|
219
|
-
Findings accepted:
|
|
220
|
-
Findings rejected:
|
|
221
|
-
Conflicts:
|
|
222
|
-
Decisions:
|
|
223
|
-
Next write set:
|
|
224
|
-
Verification path:
|
|
225
|
-
Acceptance/contract traceability:
|
|
226
|
-
Residual risk:
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
Only the synthesis and named files enter main context. Do not replay full subagent conversations.
|
|
171
|
+
|
|
172
|
+
## Parallelism Rules
|
|
173
|
+
|
|
174
|
+
- Read-only agents may run in parallel.
|
|
175
|
+
- Writing agents run serially unless write sets are disjoint and the controller has chosen an isolated worktree.
|
|
176
|
+
- Reviewers may run in parallel after implementation, but spec compliance is evaluated before code-quality approval.
|
|
177
|
+
- Subagents are readers and reporters. They return findings and PLAN patch suggestions. Only the controller (main agent) commits state changes to task files.
|
|
178
|
+
- Do not let two agents edit `Harness/tasks/<task-id>/PROGRESS.md`, `Harness/tasks/<task-id>/PLAN.md`, `Harness/MEMORY.md`, or `Harness/memory/*` concurrently. The controller writes durable state.
|
|
179
|
+
- If two agents disagree, the controller records the conflict in `Harness/tasks/<task-id>/PLAN.md` and chooses the smallest reversible next step.
|
|
180
|
+
|
|
181
|
+
## Review Gates
|
|
182
|
+
|
|
183
|
+
Implementation is not complete until cross-review and reflection pass:
|
|
184
|
+
|
|
185
|
+
1. **Spec review**: confirms the result matches the user request, PRD, feature doc, acceptance criteria, contracts, and non-goals. Extra features are failures.
|
|
186
|
+
2. **Code-quality review**: checks correctness, maintainability, architecture, tests, security, and integration risk.
|
|
187
|
+
3. **Reflector gate**: checks reviewer findings, verifier evidence, unresolved risks, and contradictions; returns PASS, RETURN_TO_DEBUG, or BLOCKED.
|
|
188
|
+
|
|
189
|
+
Validation is separate from review. Validator must produce an AC-by-AC result
|
|
190
|
+
matrix from running behavior and evidence, not from the implementer's summary.
|
|
191
|
+
|
|
192
|
+
If either reviewer finds issues, the implementer or debugger fixes them and the same gate runs again. Do not move to final acceptance with open critical/high findings or without reflector PASS.
|
|
193
|
+
|
|
194
|
+
## Subagent Status Handling
|
|
195
|
+
|
|
196
|
+
| Status | Controller Action |
|
|
197
|
+
| --- | --- |
|
|
198
|
+
| `DONE` | start review gates |
|
|
199
|
+
| `DONE_WITH_CONCERNS` | read concerns, decide whether to address before review, record in `Harness/tasks/<task-id>/PROGRESS.md` |
|
|
200
|
+
| `NEEDS_CONTEXT` | provide only missing context and re-dispatch |
|
|
201
|
+
| `BLOCKED` | change something: add context, split task, upgrade reasoning, use debugger, or ask user |
|
|
202
|
+
|
|
203
|
+
Never retry the same failed prompt unchanged.
|
|
204
|
+
|
|
205
|
+
## Failure Recovery
|
|
206
|
+
|
|
207
|
+
- First failed verification: record evidence, dispatch debugger with the smallest reproduced failure.
|
|
208
|
+
- Second same-class failure: narrow scope, update `Harness/tasks/<task-id>/PROGRESS.md#Heartbeat`, and add a reviewer before another fix.
|
|
209
|
+
- Third same-class failure: stop blind fixes. Present evidence-backed options to the user.
|
|
210
|
+
|
|
211
|
+
The recovery loop must preserve the same evidence standard as the main workflow: real commands, real browser/API checks when applicable, and recorded logs or artifacts.
|
|
212
|
+
|
|
213
|
+
## Synthesis Output
|
|
214
|
+
|
|
215
|
+
After subagents return, the controller writes one synthesis into `Harness/tasks/<task-id>/PLAN.md`:
|
|
216
|
+
|
|
217
|
+
```text
|
|
218
|
+
Agents used:
|
|
219
|
+
Findings accepted:
|
|
220
|
+
Findings rejected:
|
|
221
|
+
Conflicts:
|
|
222
|
+
Decisions:
|
|
223
|
+
Next write set:
|
|
224
|
+
Verification path:
|
|
225
|
+
Acceptance/contract traceability:
|
|
226
|
+
Residual risk:
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Only the synthesis and named files enter main context. Do not replay full subagent conversations.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# {{TASK_ID}} - Artifacts
|
|
2
|
-
|
|
3
|
-
Optional: screenshots, logs, API responses, links. Create only when evidence is too large for this task's PLAN.md verification table.
|
|
2
|
+
|
|
3
|
+
Optional: screenshots, logs, API responses, links. Create only when evidence is too large for this task's PLAN.md verification table.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# {{TASK_ID}} - Notes
|
|
2
|
-
|
|
3
|
-
Optional: exploration notes, design alternatives, research leads. Create only when notes are too long for this task's PLAN.md.
|
|
2
|
+
|
|
3
|
+
Optional: exploration notes, design alternatives, research leads. Create only when notes are too long for this task's PLAN.md.
|
|
@@ -35,7 +35,7 @@ Stack-specific agents can be added after the product shape is known.
|
|
|
35
35
|
- [wf-update](../.claude/skills/wf-update/SKILL.md) - GitHub-based incremental harness update, checksum comparison, and safe in-place updates.
|
|
36
36
|
- [wf-learn](../.claude/skills/wf-learn/SKILL.md) - force memory learning cycle: context-master -> memory-master -> project + global memory.
|
|
37
37
|
- [wf-max](../.claude/skills/wf-max/SKILL.md) - WF strict superset: complete role chain plus maximum parallelism, current runtime subagents first, cross-CLI overflow when available.
|
|
38
|
-
- [wf-auto](../.claude/skills/wf-auto/SKILL.md) - perpetual auto-optimization:
|
|
38
|
+
- [wf-auto](../.claude/skills/wf-auto/SKILL.md) - perpetual adaptive auto-optimization: evidence-selected probes, dynamic obligations, intent checkpoints, evidence ledger.
|
|
39
39
|
- [wf-auto-spark](../.claude/skills/wf-auto-spark/SKILL.md) - perpetual inspiration mode: external spark search, long-term roadmap with staged milestones, <=50% deviation guard.
|
|
40
40
|
- [tdd](../.claude/skills/tdd/SKILL.md) - acceptance-driven TDD: AC-linked RED tests, real UI clicks for browser-visible behavior, Playwright/CDP evidence, and configured coverage gate.
|
|
41
41
|
- [wf-remove](../.claude/skills/wf-remove/SKILL.md) - safely remove Harness framework files (SAFE/MODIFIED/USER classes), auto-prune empty directories, backup option.
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# {{projectName}}
|
|
2
|
-
|
|
3
|
-
Project development notes belong here.
|
|
4
|
-
|
|
5
|
-
## Development Commands
|
|
6
|
-
|
|
7
|
-
Record the real project commands after bootstrap:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# Install dependencies
|
|
11
|
-
# e.g. npm install
|
|
12
|
-
|
|
13
|
-
# Run locally
|
|
14
|
-
# e.g. npm run dev
|
|
15
|
-
|
|
16
|
-
# Run tests
|
|
17
|
-
# e.g. npm test
|
|
18
|
-
|
|
19
|
-
# Build
|
|
20
|
-
# e.g. npm run build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Replace the examples with the real commands discovered from this project. If a command is unknown, record the open question in `Harness/tasks/<task-id>/PROGRESS.md`.
|
|
24
|
-
|
|
25
|
-
## Git And Release Notes
|
|
26
|
-
|
|
27
|
-
- Keep branch, commit, pull request, CI, and release conventions in this README.
|
|
28
|
-
- Do not place build scripts, git policy, or project maintenance instructions in `CLAUDE.md`.
|
|
29
|
-
- Keep code architecture notes in `Harness/architecture.md` or feature docs.
|
|
30
|
-
- For README improvements, use `.claude/skills/wf-readme/SKILL.md`; preserve public docs unless a rewrite is approved.
|
|
31
|
-
|
|
1
|
+
# {{projectName}}
|
|
2
|
+
|
|
3
|
+
Project development notes belong here.
|
|
4
|
+
|
|
5
|
+
## Development Commands
|
|
6
|
+
|
|
7
|
+
Record the real project commands after bootstrap:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Install dependencies
|
|
11
|
+
# e.g. npm install
|
|
12
|
+
|
|
13
|
+
# Run locally
|
|
14
|
+
# e.g. npm run dev
|
|
15
|
+
|
|
16
|
+
# Run tests
|
|
17
|
+
# e.g. npm test
|
|
18
|
+
|
|
19
|
+
# Build
|
|
20
|
+
# e.g. npm run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Replace the examples with the real commands discovered from this project. If a command is unknown, record the open question in `Harness/tasks/<task-id>/PROGRESS.md`.
|
|
24
|
+
|
|
25
|
+
## Git And Release Notes
|
|
26
|
+
|
|
27
|
+
- Keep branch, commit, pull request, CI, and release conventions in this README.
|
|
28
|
+
- Do not place build scripts, git policy, or project maintenance instructions in `CLAUDE.md`.
|
|
29
|
+
- Keep code architecture notes in `Harness/architecture.md` or feature docs.
|
|
30
|
+
- For README improvements, use `.claude/skills/wf-readme/SKILL.md`; preserve public docs unless a rewrite is approved.
|
|
31
|
+
|
|
32
32
|
## Harness
|
|
33
33
|
|
|
34
34
|
The agentic engineering harness lives in `Harness/`.
|
|
35
|
-
|
|
36
|
-
- Follow `Harness/SETUP.md` before normal work while it exists.
|
|
37
|
-
- Start at `Harness/README.md`.
|
|
38
|
-
- Load memory and resource registrations from `Harness/MEMORY.md`.
|
|
39
|
-
- Track active work in `Harness/PROGRESS.md` and `Harness/tasks/<task-id>/PROGRESS.md`.
|
|
35
|
+
|
|
36
|
+
- Follow `Harness/SETUP.md` before normal work while it exists.
|
|
37
|
+
- Start at `Harness/README.md`.
|
|
38
|
+
- Load memory and resource registrations from `Harness/MEMORY.md`.
|
|
39
|
+
- Track active work in `Harness/PROGRESS.md` and `Harness/tasks/<task-id>/PROGRESS.md`.
|
|
40
40
|
- Use `Harness/WF.md` for long, difficult, multi-agent work.
|
|
41
41
|
- Claude Code: invoke the `wf` skill with `/wf`.
|
|
42
42
|
- Codex: invoke the `wf` skill with `$wf` or `/skills`.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Agent Lessons And Patterns
|
|
2
|
-
|
|
3
|
-
Purpose: record reusable lessons from review, debugging, validation, and handoff loops.
|
|
4
|
-
|
|
5
|
-
Write here when:
|
|
6
|
-
- A review/debug loop reveals a reusable prevention pattern.
|
|
7
|
-
- A validation failure exposes a missing regression check.
|
|
8
|
-
- A handoff, dispatch, or context-loading pattern should be repeated or avoided.
|
|
9
|
-
|
|
10
|
-
Entry format, newest first:
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
## YYYY-MM-DD - Short Lesson Name
|
|
14
|
-
|
|
15
|
-
- Lesson: the reusable pattern.
|
|
16
|
-
- Source: review finding, debug loop, failed verification, or handoff.
|
|
17
|
-
- Apply when: the task shape or files where this matters.
|
|
18
|
-
- Regression guard: test, validator check, docs update, or manual evidence to keep it from recurring.
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Keep entries lightweight and actionable. Avoid secrets and speculative lessons.
|
|
1
|
+
# Agent Lessons And Patterns
|
|
2
|
+
|
|
3
|
+
Purpose: record reusable lessons from review, debugging, validation, and handoff loops.
|
|
4
|
+
|
|
5
|
+
Write here when:
|
|
6
|
+
- A review/debug loop reveals a reusable prevention pattern.
|
|
7
|
+
- A validation failure exposes a missing regression check.
|
|
8
|
+
- A handoff, dispatch, or context-loading pattern should be repeated or avoided.
|
|
9
|
+
|
|
10
|
+
Entry format, newest first:
|
|
11
|
+
|
|
12
|
+
```markdown
|
|
13
|
+
## YYYY-MM-DD - Short Lesson Name
|
|
14
|
+
|
|
15
|
+
- Lesson: the reusable pattern.
|
|
16
|
+
- Source: review finding, debug loop, failed verification, or handoff.
|
|
17
|
+
- Apply when: the task shape or files where this matters.
|
|
18
|
+
- Regression guard: test, validator check, docs update, or manual evidence to keep it from recurring.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Keep entries lightweight and actionable. Avoid secrets and speculative lessons.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
# Tool Usage Reflections
|
|
2
|
-
|
|
3
|
-
Purpose: record repeated tool failures, better command patterns, and environment-specific fixes.
|
|
4
|
-
|
|
5
|
-
Write here when:
|
|
6
|
-
- The same tool/use pattern fails 3+ times in one task or across repeated tasks.
|
|
7
|
-
- A more reliable command pattern replaces a brittle one.
|
|
8
|
-
- The environment needs a durable fix, flag, path rule, shell syntax, or startup sequence.
|
|
9
|
-
|
|
10
|
-
Entry format, newest first:
|
|
11
|
-
|
|
12
|
-
```markdown
|
|
13
|
-
## YYYY-MM-DD - Short Pattern Name
|
|
14
|
-
|
|
15
|
-
- Trigger: what failed or repeated.
|
|
16
|
-
- Better pattern: the command, tool usage, or sequence to use next time.
|
|
17
|
-
- Evidence: command output summary, error text, or affected environment.
|
|
18
|
-
- Scope: when this applies and when it does not.
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Keep entries concise. Do not record secrets, credentials, private tokens, or one-off noise.
|
|
1
|
+
# Tool Usage Reflections
|
|
2
|
+
|
|
3
|
+
Purpose: record repeated tool failures, better command patterns, and environment-specific fixes.
|
|
4
|
+
|
|
5
|
+
Write here when:
|
|
6
|
+
- The same tool/use pattern fails 3+ times in one task or across repeated tasks.
|
|
7
|
+
- A more reliable command pattern replaces a brittle one.
|
|
8
|
+
- The environment needs a durable fix, flag, path rule, shell syntax, or startup sequence.
|
|
9
|
+
|
|
10
|
+
Entry format, newest first:
|
|
11
|
+
|
|
12
|
+
```markdown
|
|
13
|
+
## YYYY-MM-DD - Short Pattern Name
|
|
14
|
+
|
|
15
|
+
- Trigger: what failed or repeated.
|
|
16
|
+
- Better pattern: the command, tool usage, or sequence to use next time.
|
|
17
|
+
- Evidence: command output summary, error text, or affected environment.
|
|
18
|
+
- Scope: when this applies and when it does not.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Keep entries concise. Do not record secrets, credentials, private tokens, or one-off noise.
|