@draht/coding-agent 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/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/agents/advisor.md +44 -0
- package/bin/draht-tools.cjs +1808 -988
- package/dist/agents/advisor.md +44 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-session.d.ts +16 -3
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +76 -18
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/cache-stats.d.ts +49 -0
- package/dist/core/cache-stats.d.ts.map +1 -0
- package/dist/core/cache-stats.js +101 -0
- package/dist/core/cache-stats.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +1 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +51 -73
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +23 -4
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +1 -24
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +9 -9
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/model-registry.d.ts +4 -6
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +34 -8
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +2 -5
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/settings-manager.d.ts +7 -3
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +10 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts +1 -0
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +3 -3
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/gsd/hook-utils.d.ts.map +1 -1
- package/dist/gsd/hook-utils.js +3 -1
- package/dist/gsd/hook-utils.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +4 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +1 -1
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +3 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +17 -6
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +10 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +10 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +247 -47
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.json +3 -4
- package/dist/modes/interactive/theme/theme.d.ts +2 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +8 -4
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +6 -6
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +3 -3
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +4 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/prompts/commands/execute-phase.md +2 -2
- package/dist/prompts/commands/fix.md +1 -1
- package/dist/prompts/commands/map-codebase.md +8 -8
- package/dist/prompts/commands/next-milestone.md +1 -0
- package/dist/prompts/commands/orchestrate-loop.md +99 -0
- package/dist/prompts/commands/orchestrate.md +25 -2
- package/dist/prompts/commands/pause-work.md +2 -1
- package/dist/prompts/commands/plan-phase.md +1 -0
- package/dist/prompts/commands/quick.md +2 -2
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/docs/custom-provider.md +4 -3
- package/docs/extensions.md +15 -10
- package/docs/models.md +49 -8
- package/docs/rpc.md +15 -5
- package/docs/sdk.md +1 -1
- package/docs/settings.md +3 -2
- package/docs/themes.md +5 -3
- package/docs/tui.md +1 -1
- package/docs/usage.md +2 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/preset.ts +2 -2
- package/examples/extensions/reload-runtime.ts +2 -2
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/sdk/README.md +1 -1
- package/package.json +5 -5
- package/prompts/commands/execute-phase.md +2 -2
- package/prompts/commands/fix.md +1 -1
- package/prompts/commands/map-codebase.md +8 -8
- package/prompts/commands/next-milestone.md +1 -0
- package/prompts/commands/orchestrate-loop.md +99 -0
- package/prompts/commands/orchestrate.md +25 -2
- package/prompts/commands/pause-work.md +2 -1
- package/prompts/commands/plan-phase.md +1 -0
- package/prompts/commands/quick.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2026.7.11] - 2026-07-11
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- incorporate upstream coding-agent changes
|
|
8
|
+
- add advisor agent, loop mode, and model-tiering guidance
|
|
9
|
+
- overhaul map-graph clustering, MAP.html viewer, map-serve
|
|
10
|
+
- lessons accumulation and standing-spec digest per session
|
|
11
|
+
- enforce quality gates in the harness, not prose
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- fix assertions left out of sync with current source behavior
|
|
16
|
+
- update stale PI_* and .pi references to DRAHT_* and .draht
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- spawn CLI integration tests through the tsx import hook
|
|
21
|
+
- resolve typebox subpath imports and guard stale extension API calls
|
|
22
|
+
- map-codebase always maps the whole repo
|
|
23
|
+
|
|
3
24
|
## [2026.7.7-1] - 2026-07-07
|
|
4
25
|
|
|
5
26
|
### Added
|
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@ Type `/` in the editor to trigger commands. [Extensions](#extensions) can regist
|
|
|
151
151
|
| `/copy` | Copy last assistant message to clipboard |
|
|
152
152
|
| `/export [file]` | Export session to HTML file |
|
|
153
153
|
| `/share` | Upload as private GitHub gist with shareable HTML link |
|
|
154
|
-
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files
|
|
154
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, themes, and context files |
|
|
155
155
|
| `/hotkeys` | Show all keyboard shortcuts |
|
|
156
156
|
| `/changelog` | Display version history |
|
|
157
157
|
| `/quit` | Quit draht |
|
|
@@ -468,7 +468,7 @@ cat README.md | draht -p "Summarize this text"
|
|
|
468
468
|
| `--provider <name>` | Provider (anthropic, openai, google, etc.) |
|
|
469
469
|
| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
|
|
470
470
|
| `--api-key <key>` | API key (overrides env vars) |
|
|
471
|
-
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
471
|
+
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max` |
|
|
472
472
|
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
|
|
473
473
|
| `--list-models [search]` | List available models |
|
|
474
474
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: advisor
|
|
3
|
+
description: Strategic advisor — 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. Pin this agent to your strongest model via the per-agent model config. Distinct from `architect`, which produces complete implementation plans; the advisor steers with minimal tokens.
|
|
4
|
+
tools: read,bash,grep,find,ls
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the Advisor agent — a stronger model consulted by an executor for strategic guidance. You steer; you never implement.
|
|
8
|
+
|
|
9
|
+
## What You Receive
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
## Process
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
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.
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
## Output Format
|
|
20
|
+
|
|
21
|
+
### Guidance
|
|
22
|
+
The advice, ranked by leverage.
|
|
23
|
+
|
|
24
|
+
### Rationale
|
|
25
|
+
1–3 lines: why this direction over the caller's current one.
|
|
26
|
+
|
|
27
|
+
### First Check
|
|
28
|
+
The single command or observation that would confirm — or kill — the recommended direction fastest.
|
|
29
|
+
|
|
30
|
+
## Final Status
|
|
31
|
+
|
|
32
|
+
End your output with exactly one of these lines:
|
|
33
|
+
|
|
34
|
+
- `STATUS: DONE` — guidance given, grounded in the evidence provided.
|
|
35
|
+
- `STATUS: DONE_WITH_CONCERNS` — guidance given, but a load-bearing assumption could not be verified; it is named inline.
|
|
36
|
+
- `STATUS: NEEDS_CONTEXT` — the situation given is too thin to advise on. List exactly what is missing.
|
|
37
|
+
- `STATUS: BLOCKED` — the request asks for implementation, not advice. Point the caller to `implementer` or `architect`.
|
|
38
|
+
|
|
39
|
+
## Rules
|
|
40
|
+
|
|
41
|
+
- Never edit files or change state — inspection only
|
|
42
|
+
- Do not restate the caller's context back at them — they already have it
|
|
43
|
+
- If the caller's evidence contradicts your instinct, say which constraint breaks the tie instead of ignoring the conflict
|
|
44
|
+
- If the right move is "gather X before deciding", say that — a named unknown beats a confident guess
|