hatch3r 1.7.0 → 1.7.1
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 +2 -2
- package/agents/hatch3r-architect.md +1 -1
- package/agents/hatch3r-fixer.md +1 -1
- package/agents/hatch3r-implementer.md +1 -1
- package/agents/hatch3r-researcher.md +1 -1
- package/agents/modes/requirements-elicitation.md +1 -0
- package/agents/shared/quality-charter.md +1 -0
- package/agents/shared/user-question-protocol.md +95 -0
- package/commands/board/shared-azure-devops.md +2 -0
- package/commands/board/shared-github.md +17 -0
- package/commands/board/shared-gitlab.md +4 -0
- package/commands/hatch3r-board-fill.md +1 -1
- package/commands/hatch3r-board-pickup.md +1 -1
- package/commands/hatch3r-board-shared.md +21 -0
- package/commands/hatch3r-pr-resolve.md +668 -0
- package/commands/hatch3r-quick-change.md +1 -1
- package/commands/hatch3r-report.md +167 -0
- package/commands/hatch3r-revision.md +1 -1
- package/commands/hatch3r-workflow.md +1 -1
- package/dist/cli/index.js +951 -647
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/rules/hatch3r-agent-orchestration.md +23 -0
- package/rules/hatch3r-agent-orchestration.mdc +23 -0
- package/rules/hatch3r-deep-context.md +1 -1
- package/rules/hatch3r-deep-context.mdc +1 -1
- package/rules/hatch3r-iteration-summary.md +2 -0
- package/rules/hatch3r-iteration-summary.mdc +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hatch3r",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Battle-tested agentic coding setup framework. One command to hatch your agent stack -- agents, skills, rules, commands, and MCP for every major AI coding tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,6 +19,8 @@ Hatch3r's orchestration uses a **phase-gated pipeline** (Research, Implement, Re
|
|
|
19
19
|
|
|
20
20
|
This rule applies to EVERY context without exception: board-pickup (epic, sub-issue, standalone, batch), workflow command (full/quick), plain chat, issue references, and natural language requests. The full sub-agent pipeline is mandatory — never implement code inline without sub-agents.
|
|
21
21
|
|
|
22
|
+
**"Inline implementation" defined.** Inline implementation means calling any code-writing tool — `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform equivalent — from the orchestrator turn itself, rather than from inside a spawned `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3) sub-agent. The only carve-out is `hatch3r-quick-change` for Tier 1 single-line trivial edits per its declared scope.
|
|
23
|
+
|
|
22
24
|
## Universal Sub-Agent Pipeline
|
|
23
25
|
|
|
24
26
|
Every task MUST follow this four-phase pipeline: **Phase 1 — Research** (`hatch3r-researcher`), **Phase 2 — Implement** (`hatch3r-implementer`), **Phase 3 — Review Loop** (`hatch3r-reviewer` + `hatch3r-fixer`), **Phase 4 — Final Quality** (parallel specialists). See Mandatory Delegation Directives below.
|
|
@@ -84,6 +86,27 @@ Spawn `hatch3r-implementer` via Task tool for ALL code changes. Never implement
|
|
|
84
86
|
|
|
85
87
|
**Implementer prompt enrichment (Tier 2+):** Include `similar-implementation` findings as "Reference Conventions", resolved `requirements-elicitation` answers as "Resolved Requirements", and blast radius data (Tier 3 only).
|
|
86
88
|
|
|
89
|
+
### Per-Turn Pipeline-State Header
|
|
90
|
+
|
|
91
|
+
Whenever a tracked task is active at Tier 2 or Tier 3 (deep-context score >= 3), the orchestrator MUST emit a single-line pipeline-state header at the very start of every assistant turn that touches the task. Format:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
[hatch3r-pipeline: phase {1|2|3|4} | last: {agent} → {SUCCESS|PARTIAL|FAILED|BLOCKED|n/a} | next: {agent or "user-confirmation" or "complete"}]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Examples:
|
|
98
|
+
|
|
99
|
+
- `[hatch3r-pipeline: phase 1 | last: n/a | next: hatch3r-researcher]`
|
|
100
|
+
- `[hatch3r-pipeline: phase 2 | last: hatch3r-researcher → SUCCESS | next: hatch3r-implementer]`
|
|
101
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-reviewer → PARTIAL | next: hatch3r-fixer]`
|
|
102
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-implementer → SUCCESS | next: user-confirmation]`
|
|
103
|
+
|
|
104
|
+
A missing header on a tracked Tier >= 2 task is a self-detectable drift signal — the user may halt the turn and request re-grounding. The header also functions as a per-reply cache prime: rendering it forces the orchestrator to re-resolve which phase it is in before choosing tools. Tier 1 tasks, read-only answers, and chat-only iterations do NOT require the header.
|
|
105
|
+
|
|
106
|
+
### Mandatory Delegation Directive (No Inline Implementation)
|
|
107
|
+
|
|
108
|
+
Restating with maximum clarity for sub-agent prompt inclusion: the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool from its own turn. The only path for code mutation is the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3). Carve-out: `hatch3r-quick-change` Tier 1 trivial items per its declared scope. No other carve-out exists. Violations are bypass mode (see issue #73) — surface them by halting the turn and re-delegating.
|
|
109
|
+
|
|
87
110
|
### Mid-Implementation Research Gap Checkpoint
|
|
88
111
|
|
|
89
112
|
At the midpoint of Phase 2 (after initial files are modified but before completion), the implementer MUST evaluate whether research gaps exist. This prevents discovering missing context too late in the pipeline.
|
|
@@ -14,6 +14,8 @@ Hatch3r's orchestration uses a **phase-gated pipeline** (Research, Implement, Re
|
|
|
14
14
|
|
|
15
15
|
This rule applies to EVERY context without exception: board-pickup (epic, sub-issue, standalone, batch), workflow command (full/quick), plain chat, issue references, and natural language requests. The full sub-agent pipeline is mandatory — never implement code inline without sub-agents.
|
|
16
16
|
|
|
17
|
+
**"Inline implementation" defined.** Inline implementation means calling any code-writing tool — `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform equivalent — from the orchestrator turn itself, rather than from inside a spawned `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3) sub-agent. The only carve-out is `hatch3r-quick-change` for Tier 1 single-line trivial edits per its declared scope.
|
|
18
|
+
|
|
17
19
|
## Universal Sub-Agent Pipeline
|
|
18
20
|
|
|
19
21
|
Every task MUST follow this four-phase pipeline: **Phase 1 — Research** (`hatch3r-researcher`), **Phase 2 — Implement** (`hatch3r-implementer`), **Phase 3 — Review Loop** (`hatch3r-reviewer` + `hatch3r-fixer`), **Phase 4 — Final Quality** (parallel specialists). See Mandatory Delegation Directives below.
|
|
@@ -79,6 +81,27 @@ Spawn `hatch3r-implementer` via Task tool for ALL code changes. Never implement
|
|
|
79
81
|
|
|
80
82
|
**Implementer prompt enrichment (Tier 2+):** Include `similar-implementation` findings as "Reference Conventions", resolved `requirements-elicitation` answers as "Resolved Requirements", and blast radius data (Tier 3 only).
|
|
81
83
|
|
|
84
|
+
### Per-Turn Pipeline-State Header
|
|
85
|
+
|
|
86
|
+
Whenever a tracked task is active at Tier 2 or Tier 3 (deep-context score >= 3), the orchestrator MUST emit a single-line pipeline-state header at the very start of every assistant turn that touches the task. Format:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
[hatch3r-pipeline: phase {1|2|3|4} | last: {agent} → {SUCCESS|PARTIAL|FAILED|BLOCKED|n/a} | next: {agent or "user-confirmation" or "complete"}]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Examples:
|
|
93
|
+
|
|
94
|
+
- `[hatch3r-pipeline: phase 1 | last: n/a | next: hatch3r-researcher]`
|
|
95
|
+
- `[hatch3r-pipeline: phase 2 | last: hatch3r-researcher → SUCCESS | next: hatch3r-implementer]`
|
|
96
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-reviewer → PARTIAL | next: hatch3r-fixer]`
|
|
97
|
+
- `[hatch3r-pipeline: phase 3 | last: hatch3r-implementer → SUCCESS | next: user-confirmation]`
|
|
98
|
+
|
|
99
|
+
A missing header on a tracked Tier >= 2 task is a self-detectable drift signal — the user may halt the turn and request re-grounding. The header also functions as a per-reply cache prime: rendering it forces the orchestrator to re-resolve which phase it is in before choosing tools. Tier 1 tasks, read-only answers, and chat-only iterations do NOT require the header.
|
|
100
|
+
|
|
101
|
+
### Mandatory Delegation Directive (No Inline Implementation)
|
|
102
|
+
|
|
103
|
+
Restating with maximum clarity for sub-agent prompt inclusion: the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool from its own turn. The only path for code mutation is the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3). Carve-out: `hatch3r-quick-change` Tier 1 trivial items per its declared scope. No other carve-out exists. Violations are bypass mode (see issue #73) — surface them by halting the turn and re-delegating.
|
|
104
|
+
|
|
82
105
|
### Mid-Implementation Research Gap Checkpoint
|
|
83
106
|
|
|
84
107
|
At the midpoint of Phase 2 (after initial files are modified but before completion), the implementer MUST evaluate whether research gaps exist. This prevents discovering missing context too late in the pipeline.
|
|
@@ -71,7 +71,7 @@ Pre-Implementation Summary:
|
|
|
71
71
|
Cross-cutting concerns: {list with status}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
Do NOT proceed to implementation until all unresolved questions are answered by the user.
|
|
74
|
+
**Hard gate, not advisory.** Do NOT proceed to implementation until all unresolved questions are answered by the user AND the user has explicitly confirmed the Pre-Implementation Summary (a reply matching "proceed", "confirmed", "yes — implement", or an equivalent affirmation in context). Until that confirmation arrives, the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool, AND MUST NOT spawn `hatch3r-implementer` or `hatch3r-fixer`. Read-only and reasoning tools (`Read`, `Grep`, `Glob`, `Bash` for read-only commands, `WebFetch`, `WebSearch`, `Task` with researcher-only sub-agents) remain available so the orchestrator can answer follow-up clarifying questions without breaching the gate.
|
|
75
75
|
|
|
76
76
|
## Passing Context to Implementer
|
|
77
77
|
|
|
@@ -66,7 +66,7 @@ Pre-Implementation Summary:
|
|
|
66
66
|
Cross-cutting concerns: {list with status}
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Do NOT proceed to implementation until all unresolved questions are answered by the user.
|
|
69
|
+
**Hard gate, not advisory.** Do NOT proceed to implementation until all unresolved questions are answered by the user AND the user has explicitly confirmed the Pre-Implementation Summary (a reply matching "proceed", "confirmed", "yes — implement", or an equivalent affirmation in context). Until that confirmation arrives, the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool, AND MUST NOT spawn `hatch3r-implementer` or `hatch3r-fixer`. Read-only and reasoning tools (`Read`, `Grep`, `Glob`, `Bash` for read-only commands, `WebFetch`, `WebSearch`, `Task` with researcher-only sub-agents) remain available so the orchestrator can answer follow-up clarifying questions without breaching the gate.
|
|
70
70
|
|
|
71
71
|
## Passing Context to Implementer
|
|
72
72
|
|
|
@@ -16,6 +16,8 @@ Every iteration with the user ends with the canonical block defined below — no
|
|
|
16
16
|
|
|
17
17
|
Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
|
|
18
18
|
|
|
19
|
+
The per-turn pipeline-state header (defined in `hatch3r-agent-orchestration` → Per-Turn Pipeline-State Header) is a separate start-of-turn artifact and does not replace this end-of-turn block.
|
|
20
|
+
|
|
19
21
|
## The Required Block
|
|
20
22
|
|
|
21
23
|
Use this exact shape with these exact field names:
|
|
@@ -11,6 +11,8 @@ Every iteration with the user ends with the canonical block defined below — no
|
|
|
11
11
|
|
|
12
12
|
Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
|
|
13
13
|
|
|
14
|
+
The per-turn pipeline-state header (defined in `hatch3r-agent-orchestration` → Per-Turn Pipeline-State Header) is a separate start-of-turn artifact and does not replace this end-of-turn block.
|
|
15
|
+
|
|
14
16
|
## The Required Block
|
|
15
17
|
|
|
16
18
|
Use this exact shape with these exact field names:
|