@draht/coding-agent 2026.3.2-9 → 2026.3.3
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 +18 -0
- package/agents/architect.md +45 -0
- package/agents/debugger.md +57 -0
- package/agents/git-committer.md +46 -0
- package/agents/implementer.md +25 -0
- package/agents/reviewer.md +52 -0
- package/agents/security-auditor.md +61 -0
- package/agents/verifier.md +44 -0
- package/bin/draht-tools.cjs +20 -20
- package/dist/agents/architect.md +45 -0
- package/dist/agents/debugger.md +57 -0
- package/dist/agents/git-committer.md +46 -0
- package/dist/agents/implementer.md +25 -0
- package/dist/agents/reviewer.md +52 -0
- package/dist/agents/security-auditor.md +61 -0
- package/dist/agents/verifier.md +44 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +10 -1
- package/dist/core/package-manager.js.map +1 -1
- package/dist/extensions/gsd-commands.ts +69 -4
- package/dist/extensions/subagent.ts +212 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/prompts/commands/discuss-phase.md +3 -3
- package/dist/prompts/commands/execute-phase.md +9 -9
- package/dist/prompts/commands/map-codebase.md +2 -2
- package/dist/prompts/commands/new-project.md +9 -9
- package/dist/prompts/commands/pause-work.md +2 -2
- package/dist/prompts/commands/plan-phase.md +5 -5
- package/dist/prompts/commands/progress.md +1 -1
- package/dist/prompts/commands/quick.md +4 -4
- package/dist/prompts/commands/resume-work.md +1 -1
- package/dist/prompts/commands/verify-work.md +4 -4
- package/extensions/gsd-commands.ts +69 -4
- package/extensions/subagent.ts +212 -9
- package/package.json +7 -6
- package/prompts/commands/discuss-phase.md +3 -3
- package/prompts/commands/execute-phase.md +9 -9
- package/prompts/commands/map-codebase.md +2 -2
- package/prompts/commands/new-project.md +9 -9
- package/prompts/commands/pause-work.md +2 -2
- package/prompts/commands/plan-phase.md +5 -5
- package/prompts/commands/progress.md +1 -1
- package/prompts/commands/quick.md +4 -4
- package/prompts/commands/resume-work.md +1 -1
- package/prompts/commands/verify-work.md +4 -4
|
@@ -8,11 +8,11 @@ Initialize a new GSD project: questioning → research → requirements → road
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Steps
|
|
11
|
-
1. Run `draht init` to check preconditions
|
|
12
|
-
2. If existing code detected, run `draht map-codebase` first
|
|
11
|
+
1. Run `draht-tools init` to check preconditions
|
|
12
|
+
2. If existing code detected, run `draht-tools map-codebase` first
|
|
13
13
|
3. Deep questioning phase (3-7 rounds, 1-2 questions at a time)
|
|
14
|
-
4. Run `draht create-project` with gathered info
|
|
15
|
-
5. Run `draht create-domain-model` to define bounded contexts, entities, and ubiquitous language
|
|
14
|
+
4. Run `draht-tools create-project` with gathered info
|
|
15
|
+
5. Run `draht-tools create-domain-model` to define bounded contexts, entities, and ubiquitous language
|
|
16
16
|
6. Create `.planning/DOMAIN.md` with:
|
|
17
17
|
- `## Bounded Contexts` — each context with name, responsibility, and brief description
|
|
18
18
|
- `## Ubiquitous Language` — glossary of domain terms agreed with the user (term → definition)
|
|
@@ -25,11 +25,11 @@ Initialize a new GSD project: questioning → research → requirements → road
|
|
|
25
25
|
- `## Coverage Goals` — target coverage percentage and which paths are critical
|
|
26
26
|
- `## Testing Levels` — what is tested at unit level vs integration vs e2e, with examples
|
|
27
27
|
- `## Excluded` — what is explicitly not tested and why (config files, generated code, etc.)
|
|
28
|
-
8. Optional research phase via `draht research`
|
|
29
|
-
9. Run `draht create-requirements` with v1/v2/out-of-scope (map requirements to bounded contexts)
|
|
30
|
-
10. Run `draht create-roadmap` with phases
|
|
31
|
-
11. Run `draht init-state`
|
|
32
|
-
12. Git commit via `draht commit-docs "initialize GSD project"`
|
|
28
|
+
8. Optional research phase via `draht-tools research`
|
|
29
|
+
9. Run `draht-tools create-requirements` with v1/v2/out-of-scope (map requirements to bounded contexts)
|
|
30
|
+
10. Run `draht-tools create-roadmap` with phases
|
|
31
|
+
11. Run `draht-tools init-state`
|
|
32
|
+
12. Git commit via `draht-tools commit-docs "initialize GSD project"`
|
|
33
33
|
|
|
34
34
|
## Rules
|
|
35
35
|
- Ask 1-2 questions at a time, never dump 10 at once
|
|
@@ -8,5 +8,5 @@ Create a handoff document for session continuity.
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Steps
|
|
11
|
-
1. Run `draht pause` — creates CONTINUE-HERE.md
|
|
12
|
-
2. Commit: `draht commit-docs "pause work"`
|
|
11
|
+
1. Run `draht-tools pause` — creates CONTINUE-HERE.md
|
|
12
|
+
2. Commit: `draht-tools commit-docs "pause work"`
|
|
@@ -8,17 +8,17 @@ Create atomic execution plans for a roadmap phase.
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Steps
|
|
11
|
-
1. Run `draht load-phase-context N` to gather all context
|
|
12
|
-
2. Optional: `draht research-phase N` for domain research
|
|
11
|
+
1. Run `draht-tools load-phase-context N` to gather all context
|
|
12
|
+
2. Optional: `draht-tools research-phase N` for domain research
|
|
13
13
|
3. Goal-backward planning:
|
|
14
14
|
a. State the goal (outcome, not activity)
|
|
15
15
|
b. Derive observable truths (3-7 from user perspective)
|
|
16
16
|
c. From each observable truth, derive the test scenarios that would prove it (specific inputs → expected outputs or state changes)
|
|
17
17
|
d. Map to required artifacts (files, endpoints, schemas)
|
|
18
18
|
e. Break into atomic tasks (2-5 per plan)
|
|
19
|
-
4. Write plans: `draht create-plan N P`
|
|
20
|
-
5. Validate: `draht validate-plans N`
|
|
21
|
-
6. Commit: `draht commit-docs "create phase N plans"`
|
|
19
|
+
4. Write plans: `draht-tools create-plan N P`
|
|
20
|
+
5. Validate: `draht-tools validate-plans N`
|
|
21
|
+
6. Commit: `draht-tools commit-docs "create phase N plans"`
|
|
22
22
|
|
|
23
23
|
## Plan Format
|
|
24
24
|
Plans use XML task format:
|
|
@@ -8,12 +8,12 @@ Execute a small ad-hoc task with GSD tracking.
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Steps
|
|
11
|
-
1. Run `draht next-quick-number` to get task number
|
|
12
|
-
2. Create quick plan: `draht create-quick-plan NNN "description"`
|
|
11
|
+
1. Run `draht-tools next-quick-number` to get task number
|
|
12
|
+
2. Create quick plan: `draht-tools create-quick-plan NNN "description"`
|
|
13
13
|
3. Execute tasks following the TDD cycle:
|
|
14
14
|
- **🔴 RED** — Write a failing test that describes the desired behaviour
|
|
15
15
|
- **🟢 GREEN** — Write the minimum implementation to make it pass
|
|
16
16
|
- **🔵 REFACTOR** — Clean up while keeping the test green
|
|
17
17
|
- *Exception: skip the TDD cycle only for pure config or documentation-only tasks that have no testable behaviour*
|
|
18
|
-
4. Write summary: `draht write-quick-summary NNN`
|
|
19
|
-
5. Update state: `draht update-state`
|
|
18
|
+
4. Write summary: `draht-tools write-quick-summary NNN`
|
|
19
|
+
5. Update state: `draht-tools update-state`
|
|
@@ -8,6 +8,6 @@ Resume from last session state.
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Steps
|
|
11
|
-
1. Run `draht resume` — loads CONTINUE-HERE.md or STATE.md
|
|
11
|
+
1. Run `draht-tools resume` — loads CONTINUE-HERE.md or STATE.md
|
|
12
12
|
2. Display context and ask to continue
|
|
13
13
|
3. Delete CONTINUE-HERE.md after confirmation
|
|
@@ -15,13 +15,13 @@ Walk through acceptance testing of completed phase work.
|
|
|
15
15
|
- Load `.planning/DOMAIN.md` and extract all defined terms
|
|
16
16
|
- Scan source files for PascalCase identifiers not present in the glossary
|
|
17
17
|
- Flag any bounded context boundary violations (cross-context direct imports)
|
|
18
|
-
3. Run quality gate: `draht quality-gate --strict`
|
|
19
|
-
4. Run `draht extract-deliverables N` to get testable items
|
|
18
|
+
3. Run quality gate: `draht-tools quality-gate --strict`
|
|
19
|
+
4. Run `draht-tools extract-deliverables N` to get testable items
|
|
20
20
|
5. Walk user through each deliverable one at a time
|
|
21
21
|
6. Record results (pass/fail/partially/skip)
|
|
22
|
-
7. For failures: diagnose and create fix plans via `draht create-fix-plan N P`
|
|
22
|
+
7. For failures: diagnose and create fix plans via `draht-tools create-fix-plan N P`
|
|
23
23
|
- Fix plans MUST include a reproducing test that demonstrates the failure before any implementation
|
|
24
|
-
8. Write UAT report: `draht write-uat N`
|
|
24
|
+
8. Write UAT report: `draht-tools write-uat N`
|
|
25
25
|
- Report must include: test health summary (pass/fail/coverage), domain model status (any glossary violations), deliverable results
|
|
26
26
|
9. If all passed: mark phase complete
|
|
27
27
|
10. If failures: route to `execute-phase N --gaps-only`
|