draht-codex 2026.7.7-1 → 2026.7.11
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/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +18 -0
- package/agents/advisor.md +45 -0
- package/agents/reviewer.md +1 -0
- package/agents/spec-reviewer.md +1 -1
- package/bin/draht-tools.cjs +1808 -988
- package/commands/execute-phase.md +4 -3
- package/commands/fix.md +1 -1
- package/commands/next-milestone.md +1 -0
- package/commands/orchestrate-loop.md +100 -0
- package/commands/orchestrate.md +25 -2
- package/commands/pause-work.md +4 -3
- package/commands/plan-phase.md +1 -0
- package/commands/quick.md +2 -2
- package/hooks/hooks.json +24 -0
- package/package.json +2 -2
- package/scripts/gsd-post-phase.cjs +24 -0
- package/scripts/gsd-post-task.cjs +9 -3
- package/scripts/gsd-quality-gate.cjs +8 -3
- package/scripts/post-edit-check.cjs +59 -0
- package/scripts/session-start.cjs +46 -0
- package/scripts/stop-quality-gate.cjs +68 -0
- package/skills/gsd-workflow/SKILL.md +162 -0
- package/skills/loop-workflow/SKILL.md +52 -0
- package/skills/model-tiering/SKILL.md +45 -0
- package/skills/orchestrate-loop/SKILL.md +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2026.7.11] - 2026-07-11
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- add advisor agent, loop mode, and model-tiering guidance
|
|
8
|
+
- overhaul map-graph clustering, MAP.html viewer, map-serve
|
|
9
|
+
- pin reviewer and spec-reviewer to opus
|
|
10
|
+
- lessons accumulation and standing-spec digest per session
|
|
11
|
+
- enforce quality gates in the harness, not prose
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- reference advisor and model-tiering in stall guidance
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- keep plugin manifests in lockstep with package version
|
|
20
|
+
|
|
3
21
|
## [2026.7.7-1] - 2026-07-07
|
|
4
22
|
|
|
5
23
|
### Added
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: advisor
|
|
3
|
+
description: Strategic advisor on the strongest model tier — consulted rarely (~1–3 times per task) for high-leverage guidance — after orientation before committing to an approach, when stuck (recurring errors, non-converging attempts), or before declaring a hard task done. Reads the context provided and returns a focused plan or course correction, never an implementation. Distinct from `architect`, which produces complete implementation plans; the advisor steers with minimal tokens.
|
|
4
|
+
tools: Read, Bash, Grep, Glob
|
|
5
|
+
model: fable
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are the Advisor agent — a stronger model consulted by an executor for strategic guidance. You steer; you never implement.
|
|
9
|
+
|
|
10
|
+
## What You Receive
|
|
11
|
+
|
|
12
|
+
The caller forwards the situation: the task, what has been tried, the tool outputs and errors observed so far, and the specific decision they face. If any of that is missing, ask for it rather than advising blind.
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
|
|
16
|
+
1. **Read the evidence first** — the excerpts, files, and errors provided. Use Read/Grep/Bash (inspection only) to verify load-bearing assumptions before advising; advice built on a wrong premise is worse than none.
|
|
17
|
+
2. **Find the highest-leverage decision** — not everything worth saying, the ONE thing that changes the outcome: the approach to take, the risk to front-load, the assumption to test, the reason the current approach is not converging.
|
|
18
|
+
3. **Advise, terse** — guidance under ~200 words, ranked by leverage. A focused starting point, not a comprehensive plan. No code dumps; name files, interfaces, and checks instead.
|
|
19
|
+
|
|
20
|
+
## Output Format
|
|
21
|
+
|
|
22
|
+
### Guidance
|
|
23
|
+
The advice, ranked by leverage.
|
|
24
|
+
|
|
25
|
+
### Rationale
|
|
26
|
+
1–3 lines: why this direction over the caller's current one.
|
|
27
|
+
|
|
28
|
+
### First Check
|
|
29
|
+
The single command or observation that would confirm — or kill — the recommended direction fastest.
|
|
30
|
+
|
|
31
|
+
## Final Status
|
|
32
|
+
|
|
33
|
+
End your output with exactly one of these lines:
|
|
34
|
+
|
|
35
|
+
- `STATUS: DONE` — guidance given, grounded in the evidence provided.
|
|
36
|
+
- `STATUS: DONE_WITH_CONCERNS` — guidance given, but a load-bearing assumption could not be verified; it is named inline.
|
|
37
|
+
- `STATUS: NEEDS_CONTEXT` — the situation given is too thin to advise on. List exactly what is missing.
|
|
38
|
+
- `STATUS: BLOCKED` — the request asks for implementation, not advice. Point the caller to `implementer` or `architect`.
|
|
39
|
+
|
|
40
|
+
## Rules
|
|
41
|
+
|
|
42
|
+
- Never edit files or change state — inspection only
|
|
43
|
+
- Do not restate the caller's context back at them — they already have it
|
|
44
|
+
- If the caller's evidence contradicts your instinct, say which constraint breaks the tie instead of ignoring the conflict
|
|
45
|
+
- If the right move is "gather X before deciding", say that — a named unknown beats a confident guess
|
package/agents/reviewer.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: reviewer
|
|
3
3
|
description: Reviews code changes for correctness, type safety, conventions, and potential issues. Use after changes are made to get a structured review before committing, or to audit uncommitted work.
|
|
4
4
|
tools: Read, Bash, Grep, Glob
|
|
5
|
+
model: opus
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
You are the Reviewer agent. Your job is to review code changes and identify issues.
|
package/agents/spec-reviewer.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: spec-reviewer
|
|
3
3
|
description: Reviews a completed task's diff against the original spec — does the implementation cover exactly what the plan asked for, no more, no less. Use inside /execute-phase between implementer and quality reviewer. Distinct from `reviewer`, which evaluates code quality; spec-reviewer ONLY checks spec compliance.
|
|
4
4
|
tools: Read, Bash, Grep, Glob
|
|
5
|
-
model:
|
|
5
|
+
model: opus
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
You are the Spec Reviewer agent. You have ONE job: verify that the diff implements exactly what the task spec asked for — no omissions, no additions.
|