@draht/coding-agent 2026.10.20-1 → 2026.10.23-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/CHANGELOG.md +138 -0
- package/agents/advisor.md +2 -2
- package/agents/architect.md +11 -33
- package/agents/debugger.md +13 -54
- package/agents/git-committer.md +18 -42
- package/agents/implementer.md +14 -36
- package/agents/investigator.md +12 -63
- package/agents/reviewer.md +16 -44
- package/agents/security-auditor.md +22 -56
- package/agents/spec-reviewer.md +13 -53
- package/agents/verifier.md +14 -33
- package/bin/drahtbank.mjs +4 -0
- package/dist/agents/advisor.md +2 -2
- package/dist/agents/architect.md +11 -33
- package/dist/agents/debugger.md +13 -54
- package/dist/agents/git-committer.md +18 -42
- package/dist/agents/implementer.md +14 -36
- package/dist/agents/investigator.md +12 -63
- package/dist/agents/reviewer.md +16 -44
- package/dist/agents/security-auditor.md +22 -56
- package/dist/agents/spec-reviewer.md +13 -53
- package/dist/agents/verifier.md +14 -33
- package/dist/bundle/chunks/anthropic-messages-G57VPNTF.js +6 -0
- package/dist/bundle/chunks/anthropic.js +1 -1
- package/dist/bundle/chunks/azure-openai-responses-AYUCZ5WN.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +23 -20
- package/dist/bundle/chunks/chunk-3GDEPGTR.js +16 -0
- package/dist/bundle/chunks/chunk-5JW3NSTV.js +2 -0
- package/dist/bundle/chunks/{chunk-FHX2S5IG.js → chunk-6WESOD4H.js} +1 -1
- package/dist/bundle/chunks/chunk-76YNMQ57.js +2 -0
- package/dist/bundle/chunks/chunk-AC3MSTC6.js +2 -0
- package/dist/bundle/chunks/chunk-ACLWH5WQ.js +2 -0
- package/dist/bundle/chunks/chunk-BL72B6LV.js +82 -0
- package/dist/bundle/chunks/{chunk-5QJFWTKA.js → chunk-CLKG6K6Z.js} +5 -2
- package/dist/bundle/chunks/chunk-DN7SM3LX.js +479 -0
- package/dist/bundle/chunks/{chunk-UTRX2VHB.js → chunk-DOUMZTXH.js} +3 -3
- package/dist/bundle/chunks/chunk-DQ4G4IS4.js +20 -0
- package/dist/bundle/chunks/chunk-E4VZJRJ2.js +9 -0
- package/dist/bundle/chunks/chunk-FOYIPAAD.js +6 -0
- package/dist/bundle/chunks/chunk-FXCTQRNN.js +2 -0
- package/dist/bundle/chunks/chunk-GQXRTK54.js +20 -0
- package/dist/bundle/chunks/chunk-IGO52ZOY.js +132 -0
- package/dist/bundle/chunks/{chunk-VXUJMEMO.js → chunk-IT4RIOZD.js} +1 -1
- package/dist/bundle/chunks/chunk-JJKPUMH2.js +1424 -0
- package/dist/bundle/chunks/chunk-JNWRE5F4.js +2 -0
- package/dist/bundle/chunks/chunk-KSGHCBHT.js +2 -0
- package/dist/bundle/chunks/chunk-MBFTIGLS.js +2 -0
- package/dist/bundle/chunks/chunk-N26RGV3K.js +11 -0
- package/dist/bundle/chunks/{chunk-KPO5375S.js → chunk-RCRGGYLW.js} +1 -1
- package/dist/bundle/chunks/chunk-UCJ7FLSO.js +166 -0
- package/dist/bundle/chunks/chunk-USCN7R2E.js +2 -0
- package/dist/bundle/chunks/chunk-WFHH5SX6.js +4 -0
- package/dist/bundle/chunks/chunk-WYWBXNDO.js +6 -0
- package/dist/bundle/chunks/chunk-ZRPAOMVB.js +2 -0
- package/dist/bundle/chunks/{cli-VCHSHNKT.js → cli-HTUB6WOG.js} +6 -6
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-RRSO6OXX.js +2 -0
- package/dist/bundle/chunks/codemode-worker.js +188 -21
- package/dist/bundle/chunks/execute-UUPNZJJG.js +31 -0
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/google-generative-ai-VJSS5EBX.js +2 -0
- package/dist/bundle/chunks/google-vertex-K23DBWTT.js +2 -0
- package/dist/bundle/chunks/image-resize-worker.js +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-EJ5XMSQL.js → llama-cpp-classify-3VDXTYVJ.js} +3 -3
- package/dist/bundle/chunks/mistral-conversations-SKVQJGFZ.js +5 -0
- package/dist/bundle/chunks/node-DXZFQBEO.js +16 -0
- package/dist/bundle/chunks/{node-6IIDYB3K.js → node-LBZLUIBE.js} +1 -1
- package/dist/bundle/chunks/openai-chatgpt.js +1 -1
- package/dist/bundle/chunks/openai-codex-responses-LV4RIZL3.js +10 -0
- package/dist/bundle/chunks/openai-codex.js +1 -1
- package/dist/bundle/chunks/openai-completions-PUIR2V25.js +7 -0
- package/dist/bundle/chunks/openai-decisions-2DJLSYQF.js +5 -0
- package/dist/bundle/chunks/openai-responses-6ESQOXAF.js +4 -0
- package/dist/bundle/chunks/opencode-go.js +1 -1
- package/dist/bundle/chunks/openrouter-images-TVXBMY3V.js +2 -0
- package/dist/bundle/chunks/pi-messages-XS7FDWQI.js +8 -0
- package/dist/bundle/chunks/runtime-IB3XQ7E3.js +2 -0
- package/dist/bundle/chunks/runtime-LB35PK4J.js +3 -0
- package/dist/bundle/chunks/settings-manager-YNY5F4RU.js +2 -0
- package/dist/bundle/chunks/typesafe-system-one-67GAWZXE.js +2 -0
- package/dist/bundle/chunks/virtual-modules-U4CBGVMI.js +2 -0
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/args.d.ts +2 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +30 -8
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/credential-print.d.ts.map +1 -1
- package/dist/cli/credential-print.js +4 -4
- package/dist/cli/credential-print.js.map +1 -1
- package/dist/config.d.ts +18 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +44 -6
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +65 -8
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +240 -102
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +20 -13
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js +42 -52
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/bug-report.d.ts +9 -1
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/builtins/completion-checks.d.ts +3 -0
- package/dist/core/builtins/completion-checks.d.ts.map +1 -0
- package/dist/core/builtins/completion-checks.js +142 -0
- package/dist/core/builtins/completion-checks.js.map +1 -0
- package/dist/core/builtins/duet.d.ts.map +1 -1
- package/dist/core/builtins/duet.js +7 -5
- package/dist/core/builtins/duet.js.map +1 -1
- package/dist/core/builtins/git-safety.d.ts +3 -0
- package/dist/core/builtins/git-safety.d.ts.map +1 -0
- package/dist/core/builtins/git-safety.js +34 -0
- package/dist/core/builtins/git-safety.js.map +1 -0
- package/dist/core/builtins/index.d.ts.map +1 -1
- package/dist/core/builtins/index.js +4 -0
- package/dist/core/builtins/index.js.map +1 -1
- package/dist/core/client-identity.d.ts +8 -0
- package/dist/core/client-identity.d.ts.map +1 -0
- package/dist/core/client-identity.js +15 -0
- package/dist/core/client-identity.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -2
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +2 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +20 -15
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +6 -0
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +7 -8
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +2 -0
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.html +1 -0
- package/dist/core/export-html/template.js +23 -17
- package/dist/core/export-html/tool-renderer.d.ts +3 -3
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js +5 -3
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +30 -29
- 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 +7 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +6 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +16 -4
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +61 -7
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/virtual-modules.js +2 -0
- package/dist/core/extensions/virtual-modules.js.map +1 -1
- package/dist/core/key-id-schema.d.ts +6 -0
- package/dist/core/key-id-schema.d.ts.map +1 -0
- package/dist/core/key-id-schema.js +16 -0
- package/dist/core/key-id-schema.js.map +1 -0
- package/dist/core/keybindings-schema.d.ts +4 -0
- package/dist/core/keybindings-schema.d.ts.map +1 -0
- package/dist/core/keybindings-schema.js +16 -0
- package/dist/core/keybindings-schema.js.map +1 -0
- package/dist/core/keybindings.d.ts +242 -75
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +30 -23
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/mcp-servers.d.ts +22 -0
- package/dist/core/mcp-servers.d.ts.map +1 -1
- package/dist/core/mcp-servers.js +72 -11
- package/dist/core/mcp-servers.js.map +1 -1
- package/dist/core/model-config.d.ts +1623 -74
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +70 -184
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-registry.d.ts +3 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +4 -0
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts +56 -43
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +253 -358
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +19 -10
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/nested-tool-calls.d.ts +1 -0
- package/dist/core/nested-tool-calls.d.ts.map +1 -1
- package/dist/core/nested-tool-calls.js +1 -0
- package/dist/core/nested-tool-calls.js.map +1 -1
- package/dist/core/package-manager.js +3 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/polyphase/keyword.js +1 -1
- package/dist/core/polyphase/keyword.js.map +1 -1
- package/dist/core/polyphase/model-selection.d.ts.map +1 -1
- package/dist/core/polyphase/model-selection.js +15 -7
- package/dist/core/polyphase/model-selection.js.map +1 -1
- package/dist/core/polyphase/workflow/prelude.d.ts +2 -0
- package/dist/core/polyphase/workflow/prelude.d.ts.map +1 -1
- package/dist/core/polyphase/workflow/prelude.js +12 -16
- package/dist/core/polyphase/workflow/prelude.js.map +1 -1
- package/dist/core/polyphase/workflow/runtime.d.ts.map +1 -1
- package/dist/core/polyphase/workflow/runtime.js +2 -1
- package/dist/core/polyphase/workflow/runtime.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +2 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js +7 -2
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-composer.d.ts +2 -1
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +13 -0
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/radius.d.ts +2 -0
- package/dist/core/radius.d.ts.map +1 -1
- package/dist/core/radius.js +2 -0
- package/dist/core/radius.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts +12 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +84 -24
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts +3 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +7 -4
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts +13 -4
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +27 -15
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +65 -0
- package/dist/core/settings-defaults.d.ts.map +1 -0
- package/dist/core/settings-defaults.js +66 -0
- package/dist/core/settings-defaults.js.map +1 -0
- package/dist/core/settings-manager.d.ts +17 -178
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +86 -57
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +269 -0
- package/dist/core/settings-schema.d.ts.map +1 -0
- package/dist/core/settings-schema.js +318 -0
- package/dist/core/settings-schema.js.map +1 -0
- package/dist/core/skills.d.ts +4 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js +6 -1
- package/dist/core/skills.js.map +1 -1
- package/dist/core/system-prompt.d.ts +6 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +10 -5
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +3 -5
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/grep.d.ts +8 -0
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +19 -7
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/index.d.ts +2 -0
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +2 -0
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +4 -10
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/path-utils.d.ts +1 -1
- package/dist/core/tools/path-utils.d.ts.map +1 -1
- package/dist/core/tools/path-utils.js +6 -6
- package/dist/core/tools/path-utils.js.map +1 -1
- package/dist/core/tools/read.d.ts +13 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +32 -2
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +20 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +67 -0
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +7 -35
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +5 -4
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/renderers/index.d.ts +2 -2
- package/dist/core/tools/renderers/index.d.ts.map +1 -1
- package/dist/core/tools/renderers/index.js.map +1 -1
- package/dist/core/tools/renderers/read.d.ts.map +1 -1
- package/dist/core/tools/renderers/read.js +7 -11
- package/dist/core/tools/renderers/read.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +391 -80
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/index.d.ts.map +1 -1
- package/dist/extensions/codemode/index.js +3 -1
- package/dist/extensions/codemode/index.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts +2 -2
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +9 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +22 -21
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +96 -123
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +34 -11
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/extensions/mcp/cli.d.ts.map +1 -1
- package/dist/extensions/mcp/cli.js +27 -33
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/config.d.ts +15 -3
- package/dist/extensions/mcp/config.d.ts.map +1 -1
- package/dist/extensions/mcp/config.js +49 -12
- package/dist/extensions/mcp/config.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts +4 -1
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +279 -129
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/oauth.d.ts +21 -11
- package/dist/extensions/mcp/oauth.d.ts.map +1 -1
- package/dist/extensions/mcp/oauth.js +166 -45
- package/dist/extensions/mcp/oauth.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +3 -10
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +4 -5
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +7 -7
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +31 -45
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +7 -5
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +87 -29
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/extensions/mcp/ui.d.ts +3 -3
- package/dist/extensions/mcp/ui.d.ts.map +1 -1
- package/dist/extensions/mcp/ui.js +18 -6
- package/dist/extensions/mcp/ui.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +0 -2
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +2 -4
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/hooks/checks/checks-runtime.cjs +215 -0
- package/dist/hooks/checks/git-safety.cjs +198 -0
- package/dist/hooks/checks/git-safety.d.cts +1 -0
- package/dist/hooks/gsd/draht-post-task.js +78 -39
- package/dist/hooks/gsd/draht-quality-gate.js +210 -122
- package/dist/hooks/gsd/package.json +3 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +11 -3
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/auth-url.d.ts +14 -0
- package/dist/modes/interactive/components/auth-url.d.ts.map +1 -0
- package/dist/modes/interactive/components/auth-url.js +37 -0
- package/dist/modes/interactive/components/auth-url.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +5 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +17 -14
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts +2 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +5 -2
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +2 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +5 -2
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/custom-entry.d.ts +3 -1
- package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-entry.js +8 -2
- package/dist/modes/interactive/components/custom-entry.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +3 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +38 -10
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +8 -2
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +24 -21
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.d.ts +15 -0
- package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/radius-login-selector.js +85 -0
- package/dist/modes/interactive/components/radius-login-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +3 -3
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +9 -8
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +2 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +5 -2
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +2 -2
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +12 -13
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +32 -45
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +2 -9
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +5 -4
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +43 -48
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +362 -278
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +34 -0
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -0
- package/dist/modes/interactive/program-status-reporter.js +110 -0
- package/dist/modes/interactive/program-status-reporter.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +1 -1
- package/dist/modes/interactive/theme/light.json +1 -1
- package/dist/modes/interactive/theme/system-theme.d.ts +2 -1
- package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/system-theme.js +16 -5
- package/dist/modes/interactive/theme/system-theme.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +13 -16
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +22 -29
- 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 +4 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +26 -1
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/prompts/commands/atomic-commit.md +8 -6
- package/dist/prompts/commands/brainstorm.md +5 -149
- package/dist/prompts/commands/create-verification-skill.md +8 -48
- package/dist/prompts/commands/discuss-phase.md +6 -10
- package/dist/prompts/commands/execute-phase.md +18 -45
- package/dist/prompts/commands/fix.md +16 -128
- package/dist/prompts/commands/grill.md +6 -53
- package/dist/prompts/commands/init-project.md +13 -18
- package/dist/prompts/commands/map-codebase.md +3 -3
- package/dist/prompts/commands/new-project.md +12 -17
- package/dist/prompts/commands/next-milestone.md +4 -8
- package/dist/prompts/commands/orchestrate-loop.md +12 -12
- package/dist/prompts/commands/orchestrate.md +12 -11
- package/dist/prompts/commands/pause-work.md +1 -1
- package/dist/prompts/commands/plan-phase.md +15 -37
- package/dist/prompts/commands/quick.md +11 -64
- package/dist/prompts/commands/resolve-conflicts.md +2 -15
- package/dist/prompts/commands/triage.md +3 -14
- package/dist/prompts/commands/verify-work.md +15 -63
- package/dist/prompts/commands/why.md +18 -118
- package/dist/skills/atomic-reasoning/SKILL.md +6 -105
- package/dist/skills/blast-radius/SKILL.md +1 -1
- package/dist/skills/epistemics/SKILL.md +12 -87
- package/dist/skills/explainers/SKILL.md +1 -1
- package/dist/skills/typescript-discipline/SKILL.md +12 -42
- package/dist/skills/typescript-discipline/references/patterns.md +25 -266
- package/dist/skills/unslop/SKILL.md +14 -105
- package/dist/utils/ansi.d.ts +8 -0
- package/dist/utils/ansi.d.ts.map +1 -1
- package/dist/utils/ansi.js +30 -11
- package/dist/utils/ansi.js.map +1 -1
- package/dist/utils/clipboard-command.d.ts.map +1 -1
- package/dist/utils/clipboard-command.js +3 -0
- package/dist/utils/clipboard-command.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +18 -12
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/draht-user-agent.d.ts +1 -0
- package/dist/utils/draht-user-agent.d.ts.map +1 -1
- package/dist/utils/draht-user-agent.js +3 -2
- package/dist/utils/draht-user-agent.js.map +1 -1
- package/dist/utils/image-convert.d.ts +12 -0
- package/dist/utils/image-convert.d.ts.map +1 -1
- package/dist/utils/image-convert.js +45 -6
- package/dist/utils/image-convert.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts +12 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js +5 -0
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/image-resize-worker.js +3 -2
- package/dist/utils/image-resize-worker.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +9 -10
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/output-files.d.ts +15 -0
- package/dist/utils/output-files.d.ts.map +1 -0
- package/dist/utils/output-files.js +30 -0
- package/dist/utils/output-files.js.map +1 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +43 -13
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +6 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +4 -3
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/cli-integration.md +1 -1
- package/docs/cli.md +30 -26
- package/docs/codemode.md +230 -0
- package/docs/compaction.md +5 -5
- package/docs/containerization.md +1 -1
- package/docs/custom-provider.md +53 -1
- package/docs/docs.json +17 -1
- package/docs/drahtbank.md +163 -0
- package/docs/environment-variables.md +5 -2
- package/docs/extensions.md +143 -13
- package/docs/index.md +1 -1
- package/docs/json.md +3 -3
- package/docs/keybindings.md +9 -5
- package/docs/llama-cpp.md +9 -2
- package/docs/mcp.md +59 -3
- package/docs/message-types.md +22 -4
- package/docs/models-configuration.md +187 -0
- package/docs/models.md +67 -4
- package/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/docs/providers.md +70 -5
- package/docs/sdk.md +1 -1
- package/docs/settings.md +10 -8
- package/docs/terminal-setup.md +14 -0
- package/docs/themes.md +4 -2
- package/docs/tui.md +71 -1
- package/docs/usage.md +1 -1
- package/docs/windows.md +16 -2
- package/eval/drahtbank/adapters.d.mts +35 -0
- package/eval/drahtbank/adapters.mjs +192 -0
- package/eval/drahtbank/bank.d.mts +141 -0
- package/eval/drahtbank/bank.mjs +515 -0
- package/eval/drahtbank/cases-v2.d.mts +28 -0
- package/eval/drahtbank/cases-v2.mjs +164 -0
- package/eval/drahtbank/cases.d.mts +17 -0
- package/eval/drahtbank/cases.mjs +198 -0
- package/eval/drahtbank/cli.mjs +120 -0
- package/eval/drahtbank/grading-v2.d.mts +26 -0
- package/eval/drahtbank/grading-v2.mjs +227 -0
- package/eval/drahtbank/isolated-tools.ts +223 -0
- package/eval/drahtbank/isolation-worker.mjs +53 -0
- package/eval/drahtbank/isolation.d.mts +52 -0
- package/eval/drahtbank/isolation.mjs +345 -0
- package/eval/drahtbank/runtime-checks.d.mts +15 -0
- package/eval/drahtbank/runtime-checks.mjs +187 -0
- package/examples/extensions/dynamic-resources/dynamic.json +1 -1
- package/examples/extensions/minimal-mode.ts +4 -5
- package/examples/extensions/overlay-test.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +6 -2
- package/examples/extensions/subagent/index.ts +4 -6
- package/hooks/checks/checks-runtime.cjs +215 -0
- package/hooks/checks/git-safety.cjs +198 -0
- package/hooks/checks/git-safety.d.cts +1 -0
- package/hooks/gsd/draht-post-task.js +78 -39
- package/hooks/gsd/draht-quality-gate.js +210 -122
- package/hooks/gsd/package.json +3 -0
- package/package.json +21 -16
- package/prompts/commands/atomic-commit.md +8 -6
- package/prompts/commands/brainstorm.md +5 -149
- package/prompts/commands/create-verification-skill.md +8 -48
- package/prompts/commands/discuss-phase.md +6 -10
- package/prompts/commands/execute-phase.md +18 -45
- package/prompts/commands/fix.md +16 -128
- package/prompts/commands/grill.md +6 -53
- package/prompts/commands/init-project.md +13 -18
- package/prompts/commands/map-codebase.md +3 -3
- package/prompts/commands/new-project.md +12 -17
- package/prompts/commands/next-milestone.md +4 -8
- package/prompts/commands/orchestrate-loop.md +12 -12
- package/prompts/commands/orchestrate.md +12 -11
- package/prompts/commands/pause-work.md +1 -1
- package/prompts/commands/plan-phase.md +15 -37
- package/prompts/commands/quick.md +11 -64
- package/prompts/commands/resolve-conflicts.md +2 -15
- package/prompts/commands/triage.md +3 -14
- package/prompts/commands/verify-work.md +15 -63
- package/prompts/commands/why.md +18 -118
- package/schemas/keybindings.schema.json +433 -0
- package/schemas/models.schema.json +1190 -0
- package/schemas/settings.schema.json +849 -0
- package/schemas/theme.schema.json +365 -0
- package/skills/atomic-reasoning/SKILL.md +6 -105
- package/skills/blast-radius/SKILL.md +1 -1
- package/skills/epistemics/SKILL.md +12 -87
- package/skills/explainers/SKILL.md +1 -1
- package/skills/typescript-discipline/SKILL.md +12 -42
- package/skills/typescript-discipline/references/patterns.md +25 -266
- package/skills/unslop/SKILL.md +14 -105
- package/dist/bundle/chunks/anthropic-messages-E2P6C3P7.js +0 -6
- package/dist/bundle/chunks/azure-openai-responses-JZMSTDIM.js +0 -2
- package/dist/bundle/chunks/chunk-2E5VODES.js +0 -2
- package/dist/bundle/chunks/chunk-3DQNSI5W.js +0 -137
- package/dist/bundle/chunks/chunk-4COXSQRQ.js +0 -18
- package/dist/bundle/chunks/chunk-D3HO453P.js +0 -42
- package/dist/bundle/chunks/chunk-GVXA72ZA.js +0 -2
- package/dist/bundle/chunks/chunk-I2SOJ4JN.js +0 -65
- package/dist/bundle/chunks/chunk-I5OKY6RH.js +0 -11
- package/dist/bundle/chunks/chunk-ILSPVHVH.js +0 -1623
- package/dist/bundle/chunks/chunk-KY2BG6BC.js +0 -11
- package/dist/bundle/chunks/chunk-PGJAHC3R.js +0 -107
- package/dist/bundle/chunks/chunk-QVFELZW2.js +0 -312
- package/dist/bundle/chunks/chunk-QVTLBSTH.js +0 -4
- package/dist/bundle/chunks/chunk-SDRCE6OP.js +0 -2
- package/dist/bundle/chunks/chunk-U6LDZZGM.js +0 -146
- package/dist/bundle/chunks/chunk-X3YFUSCK.js +0 -82
- package/dist/bundle/chunks/chunk-XBUEMKIY.js +0 -2
- package/dist/bundle/chunks/chunk-XHCO4PPH.js +0 -8
- package/dist/bundle/chunks/chunk-YH7HNI7D.js +0 -2
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-MJKOAE5S.js +0 -2
- package/dist/bundle/chunks/execute-AGEWJLIO.js +0 -18
- package/dist/bundle/chunks/google-generative-ai-HPNDIAZD.js +0 -2
- package/dist/bundle/chunks/google-vertex-KPAWJ4SP.js +0 -2
- package/dist/bundle/chunks/mistral-conversations-FMSPWQ7A.js +0 -5
- package/dist/bundle/chunks/node-4JNG6XQO.js +0 -16
- package/dist/bundle/chunks/openai-codex-responses-TU7NGPXE.js +0 -10
- package/dist/bundle/chunks/openai-completions-GANCQQO5.js +0 -7
- package/dist/bundle/chunks/openai-responses-ASDPAX3E.js +0 -3
- package/dist/bundle/chunks/openrouter-images-NROSQXMZ.js +0 -2
- package/dist/bundle/chunks/pi-messages-2QEJYOAO.js +0 -8
- package/dist/bundle/chunks/runtime-2B56SZM6.js +0 -2
- package/dist/bundle/chunks/runtime-TJ3EAMJK.js +0 -3
- package/dist/bundle/chunks/settings-manager-HC5RR36T.js +0 -2
- package/dist/bundle/chunks/typesafe-system-one-YBEEY5XU.js +0 -2
- package/dist/bundle/chunks/virtual-modules-XKLDADFR.js +0 -2
- package/dist/core/provider-attribution.d.ts +0 -4
- package/dist/core/provider-attribution.d.ts.map +0 -1
- package/dist/core/provider-attribution.js +0 -72
- package/dist/core/provider-attribution.js.map +0 -1
- package/dist/experimental/micro/api.d.ts +0 -81
- package/dist/experimental/micro/api.d.ts.map +0 -1
- package/dist/experimental/micro/api.js +0 -2
- package/dist/experimental/micro/api.js.map +0 -1
- package/dist/experimental/micro/main.d.ts +0 -3
- package/dist/experimental/micro/main.d.ts.map +0 -1
- package/dist/experimental/micro/main.js +0 -21
- package/dist/experimental/micro/main.js.map +0 -1
- package/dist/experimental/micro/models.d.ts +0 -11
- package/dist/experimental/micro/models.d.ts.map +0 -1
- package/dist/experimental/micro/models.js +0 -95
- package/dist/experimental/micro/models.js.map +0 -1
- package/dist/experimental/micro/runtime.d.ts +0 -12
- package/dist/experimental/micro/runtime.d.ts.map +0 -1
- package/dist/experimental/micro/runtime.js +0 -465
- package/dist/experimental/micro/runtime.js.map +0 -1
- package/dist/experimental/micro/sessions.d.ts +0 -10
- package/dist/experimental/micro/sessions.d.ts.map +0 -1
- package/dist/experimental/micro/sessions.js +0 -41
- package/dist/experimental/micro/sessions.js.map +0 -1
- package/dist/experimental/micro/tools.d.ts +0 -10
- package/dist/experimental/micro/tools.d.ts.map +0 -1
- package/dist/experimental/micro/tools.js +0 -96
- package/dist/experimental/micro/tools.js.map +0 -1
- package/dist/experimental/micro/tui.d.ts +0 -3
- package/dist/experimental/micro/tui.d.ts.map +0 -1
- package/dist/experimental/micro/tui.js +0 -510
- package/dist/experimental/micro/tui.js.map +0 -1
- package/dist/experimental/mini/main.d.ts +0 -7
- package/dist/experimental/mini/main.d.ts.map +0 -1
- package/dist/experimental/mini/main.js +0 -21
- package/dist/experimental/mini/main.js.map +0 -1
- package/dist/experimental/mini/server/entry.d.ts +0 -3
- package/dist/experimental/mini/server/entry.d.ts.map +0 -1
- package/dist/experimental/mini/server/entry.js +0 -11
- package/dist/experimental/mini/server/entry.js.map +0 -1
- package/dist/experimental/mini/server/run.d.ts +0 -13
- package/dist/experimental/mini/server/run.d.ts.map +0 -1
- package/dist/experimental/mini/server/run.js +0 -150
- package/dist/experimental/mini/server/run.js.map +0 -1
- package/dist/experimental/mini/shared/protocol.d.ts +0 -127
- package/dist/experimental/mini/shared/protocol.d.ts.map +0 -1
- package/dist/experimental/mini/shared/protocol.js +0 -13
- package/dist/experimental/mini/shared/protocol.js.map +0 -1
- package/dist/experimental/mini/shared/rpc.d.ts +0 -49
- package/dist/experimental/mini/shared/rpc.d.ts.map +0 -1
- package/dist/experimental/mini/shared/rpc.js +0 -171
- package/dist/experimental/mini/shared/rpc.js.map +0 -1
- package/dist/experimental/mini/shared/transport.d.ts +0 -35
- package/dist/experimental/mini/shared/transport.d.ts.map +0 -1
- package/dist/experimental/mini/shared/transport.js +0 -94
- package/dist/experimental/mini/shared/transport.js.map +0 -1
- package/dist/experimental/mini/tui/run.d.ts +0 -9
- package/dist/experimental/mini/tui/run.d.ts.map +0 -1
- package/dist/experimental/mini/tui/run.js +0 -62
- package/dist/experimental/mini/tui/run.js.map +0 -1
- package/dist/experimental/mini/tui/session.d.ts +0 -26
- package/dist/experimental/mini/tui/session.d.ts.map +0 -1
- package/dist/experimental/mini/tui/session.js +0 -94
- package/dist/experimental/mini/tui/session.js.map +0 -1
- package/dist/experimental/mini/tui/view.d.ts +0 -10
- package/dist/experimental/mini/tui/view.d.ts.map +0 -1
- package/dist/experimental/mini/tui/view.js +0 -461
- package/dist/experimental/mini/tui/view.js.map +0 -1
- package/dist/experimental/mini/worker/entry.d.ts +0 -3
- package/dist/experimental/mini/worker/entry.d.ts.map +0 -1
- package/dist/experimental/mini/worker/entry.js +0 -10
- package/dist/experimental/mini/worker/entry.js.map +0 -1
- package/dist/experimental/mini/worker/lane-service.d.ts +0 -44
- package/dist/experimental/mini/worker/lane-service.d.ts.map +0 -1
- package/dist/experimental/mini/worker/lane-service.js +0 -97
- package/dist/experimental/mini/worker/lane-service.js.map +0 -1
- package/dist/experimental/mini/worker/models-service.d.ts +0 -19
- package/dist/experimental/mini/worker/models-service.d.ts.map +0 -1
- package/dist/experimental/mini/worker/models-service.js +0 -136
- package/dist/experimental/mini/worker/models-service.js.map +0 -1
- package/dist/experimental/mini/worker/run.d.ts +0 -14
- package/dist/experimental/mini/worker/run.d.ts.map +0 -1
- package/dist/experimental/mini/worker/run.js +0 -88
- package/dist/experimental/mini/worker/run.js.map +0 -1
- package/dist/modes/interactive/theme/theme-json.d.ts +0 -85
- package/dist/modes/interactive/theme/theme-json.d.ts.map +0 -1
- package/dist/modes/interactive/theme/theme-json.js +0 -132
- package/dist/modes/interactive/theme/theme-json.js.map +0 -1
- package/dist/modes/interactive/theme/theme-schema.json +0 -361
- /package/dist/bundle/chunks/{chunk-FBU742QF.js → chunk-MOOADNVS.js} +0 -0
|
@@ -4,59 +4,25 @@ description: Audits code changes for security vulnerabilities, injection risks,
|
|
|
4
4
|
tools: read,bash,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- Secrets in source code or logs
|
|
30
|
-
- Sensitive data in error messages
|
|
31
|
-
- Missing input validation
|
|
32
|
-
|
|
33
|
-
### Dependencies
|
|
34
|
-
- Known vulnerable dependencies (check package.json versions)
|
|
35
|
-
- Unnecessary dependencies that increase attack surface
|
|
36
|
-
|
|
37
|
-
### File System
|
|
38
|
-
- Unsafe file operations (path traversal, symlink following)
|
|
39
|
-
- World-readable temp files
|
|
40
|
-
- Missing file permission checks
|
|
41
|
-
|
|
42
|
-
## Output Format
|
|
43
|
-
|
|
44
|
-
### Findings
|
|
45
|
-
For each vulnerability:
|
|
46
|
-
- **Severity**: Critical / High / Medium / Low
|
|
47
|
-
- **Category**: Which category above
|
|
48
|
-
- **Location**: File path and line number
|
|
49
|
-
- **Description**: What the vulnerability is
|
|
50
|
-
- **Recommendation**: How to fix it
|
|
51
|
-
|
|
52
|
-
### Summary
|
|
53
|
-
- Total findings by severity
|
|
54
|
-
- Overall risk assessment
|
|
55
|
-
|
|
56
|
-
## Rules
|
|
57
|
-
|
|
58
|
-
- Focus on actual vulnerabilities, not theoretical ones
|
|
59
|
-
- Be specific about the attack vector
|
|
60
|
-
- Prioritize by exploitability and impact
|
|
61
|
-
- If no security issues found, state that explicitly
|
|
62
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
7
|
+
Audit the changed code and its reachable security boundaries. Read relevant surrounding code, project security conventions, and existing protections before reporting a missing control. Do not edit files or change external state.
|
|
8
|
+
|
|
9
|
+
Trace attacker-controlled input through trust boundaries to consequential operations: authentication/authorization, shell or query execution, paths and symlinks, rendering/deserialization, network access, secrets, and agent tools. Tests, fixtures, examples, and development tooling matter when they expose secrets or execute with meaningful privileges. Pattern matches are leads, not findings by themselves.
|
|
10
|
+
|
|
11
|
+
For changed dependencies, use an appropriate available vulnerability scanner or advisory source and inspect the installed version, transitive path, affected functionality, and deployment exposure. Report whether the change introduced or inherited the issue, its advisory ID and fixed version. Check documented suppressions rather than silently trusting them. If a scanner or relevant environment is unavailable, report the coverage gap.
|
|
12
|
+
|
|
13
|
+
Report concrete risks backed by code or advisory evidence. Distinguish confirmed reachability from suspected risks; identify the missing precondition and a check that would resolve it. Do not drop a code-backed concern merely because an exploit was not reproduced, and do not invent an attack vector or present potential impact as confirmed exploitation.
|
|
14
|
+
|
|
15
|
+
For each finding include severity, file:line or dependency version, the input-to-sink path, impact, evidence strength, and a specific repair. Reserve confirmed Critical/High verdicts for supported exploitability; suspected serious impact belongs in an explicit investigation concern. Severity follows realistic impact and preconditions, not a hard-coded ceiling based on whether a changed file imports the dependency directly.
|
|
16
|
+
|
|
17
|
+
Keep code-quality findings with the reviewer. Conclude with the scoped result and material limitations; no findings in a limited audit does not prove the whole system safe.
|
|
18
|
+
|
|
19
|
+
## Final status
|
|
20
|
+
|
|
21
|
+
End with exactly one line:
|
|
22
|
+
|
|
23
|
+
- `STATUS: DONE` — no findings or only Low defense-in-depth gaps within the audited scope.
|
|
24
|
+
- `STATUS: DONE_WITH_CONCERNS` — Medium findings or actionable suspected risks need attention; state potential impact and missing evidence.
|
|
25
|
+
- `STATUS: NEEDS_CONTEXT` — required environment, threat model, or access is missing.
|
|
26
|
+
- `STATUS: BLOCKED` — confirmed Critical/High findings must be addressed; give the vector and repair.
|
|
27
|
+
|
|
28
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
package/agents/spec-reviewer.md
CHANGED
|
@@ -1,66 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-reviewer
|
|
3
|
-
description: Reviews a completed task's diff against the
|
|
3
|
+
description: Reviews a completed task's diff against the supplied spec or user requirements — no omissions or unrequested additions. 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,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Check the actual change against the supplied requirements and acceptance criteria. A prose spec is valid; do not create or demand XML plans. When a GSD task is supplied, include its test, action, verification, done, file, and checkpoint requirements.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Read the diff and relevant existing behavior. Map each requirement to implementation and evidence. An already-satisfied requirement may be fulfilled by unchanged code or an existing test; verify that coverage rather than demanding a new diff hunk. Requested new behavior or tests still need concrete implementation and assertions.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Report omissions and unrequested additions with exact requirement and file/line references. Respect explicit scope/file limits. A required human-verification or decision checkpoint must surface. Separate spec ambiguity from implementation noncompliance.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
- Implements every `<test>` case the task lists
|
|
15
|
-
- Implements every behaviour the `<action>` describes
|
|
16
|
-
- Satisfies every assertion in `<done>`
|
|
17
|
-
- Touches the files listed in `<files>` and no unrelated files
|
|
18
|
-
- Does NOT add features the task did not request
|
|
19
|
-
- Does NOT skip checkpoints (`checkpoint:human-verify`, `checkpoint:decision` must surface, not auto-proceed)
|
|
13
|
+
Keep style and architectural preferences with the quality reviewer. When the selected workflow orders quality review after spec review, a non-compliant verdict blocks that next stage until corrected.
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
Report **COMPLIANT** or **NON-COMPLIANT**, followed by the requirement-to-code mapping, omissions, over-builds, and required fixes. Omit empty sections. Read actual evidence rather than relying on the implementer's summary.
|
|
22
16
|
|
|
23
|
-
##
|
|
17
|
+
## Final status
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
2. **Read the diff** — `git diff <range>` or as provided in your task instructions
|
|
27
|
-
3. **Map diff → spec** — for each spec item, find the diff hunk that fulfils it
|
|
28
|
-
4. **Flag gaps** — any spec item with no corresponding diff = omission
|
|
29
|
-
5. **Flag extras** — any diff hunk that doesn't trace to a spec item = over-build (unless it's a trivial fix-up the spec implied)
|
|
30
|
-
6. **Verify tests exist for every behaviour** — the `<test>` section must show up as concrete test files in the diff, not just be inferred from the implementation
|
|
19
|
+
End with exactly one line:
|
|
31
20
|
|
|
32
|
-
|
|
21
|
+
- `STATUS: DONE` — supplied requirements are satisfied within scope.
|
|
22
|
+
- `STATUS: DONE_WITH_CONCERNS` — compliant, with stated spec ambiguities or other nonblocking concerns.
|
|
23
|
+
- `STATUS: NEEDS_CONTEXT` — required spec, diff, or context is missing.
|
|
24
|
+
- `STATUS: BLOCKED` — non-compliant; list corrections and require spec re-review before the workflow advances.
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
One of: `✅ COMPLIANT` / `❌ NON-COMPLIANT`
|
|
36
|
-
|
|
37
|
-
### Spec ↔ Diff Mapping
|
|
38
|
-
For each spec item, the diff lines that fulfil it (or `MISSING`).
|
|
39
|
-
|
|
40
|
-
### Omissions
|
|
41
|
-
Spec items with no implementation. List each with severity.
|
|
42
|
-
|
|
43
|
-
### Over-builds
|
|
44
|
-
Diff content not requested by the spec. List each.
|
|
45
|
-
|
|
46
|
-
### Required Fixes
|
|
47
|
-
Bulleted, in order: what the implementer must change to become compliant.
|
|
48
|
-
|
|
49
|
-
## Final Status
|
|
50
|
-
|
|
51
|
-
End your output with exactly one of these lines:
|
|
52
|
-
|
|
53
|
-
- `STATUS: DONE` — the diff is fully spec-compliant. Quality review may proceed.
|
|
54
|
-
- `STATUS: DONE_WITH_CONCERNS` — the diff is spec-compliant but you noticed gaps the caller should know about (e.g., the spec itself is thin, or the impl exposed an ambiguity). Quality review may proceed.
|
|
55
|
-
- `STATUS: NEEDS_CONTEXT` — you could not evaluate because the task spec or the diff was not provided. List what is missing.
|
|
56
|
-
- `STATUS: BLOCKED` — the diff is non-compliant. List the required fixes. Quality review MUST NOT proceed until a re-run returns `DONE`.
|
|
57
|
-
|
|
58
|
-
## Rules
|
|
59
|
-
|
|
60
|
-
- Be specific — reference exact spec items and diff line ranges
|
|
61
|
-
- Do not nitpick code style — that is the next reviewer's job
|
|
62
|
-
- Do not propose refactorings — only flag omissions and over-builds
|
|
63
|
-
- If a `checkpoint:human-verify` task was auto-completed without surfacing for human review, that is an omission
|
|
64
|
-
- "Close enough" is not compliant — return BLOCKED and list the specific gaps
|
|
65
|
-
- Read the actual diff, never the implementer's summary of it. "The implementer says it handles the empty case" is not evidence the diff does — find the hunk or call it an omission. A `<test>` case counts as satisfied only when a real test file in the diff asserts it, not when the implementation merely looks like it would pass.
|
|
66
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
26
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
package/agents/verifier.md
CHANGED
|
@@ -4,43 +4,24 @@ description: Runs lint, typecheck, and test suites to verify code quality — an
|
|
|
4
4
|
tools: read,bash,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Verify the requested scope and report evidence. Do not edit the implementation or repair failures.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
1. Identify required checks from project instructions, package scripts, and CI. Respect command restrictions and the caller's scope.
|
|
10
|
+
2. Inspect existing evidence: command, working directory, output/exit status, checked source/configuration state, and environment. Reuse a result only when those inputs are unchanged and it covers the claim. A bare success status or commit hash over a dirty worktree is insufficient.
|
|
11
|
+
3. Run missing, stale, or insufficient checks. Broaden to affected boundaries or a plausible failure case when risk warrants it; do not rerun every available command or invent a new case for every pass.
|
|
12
|
+
4. For user-visible behavior, use the relevant project `verify-<app>` skill when available: follow its Doctor and Cleanup instructions, drive the affected feature, and retain its evidence artifacts. Without one, a direct behavior check can still provide evidence; state what was actually observed.
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
2. **Run checks** — execute lint, typecheck, and test commands
|
|
13
|
-
3. **Drive the app when a project verification skill exists** — if the repo has a `verify-<app>` skill under `.draht/skills/`, follow it: launch, run its Doctor check, drive ONE mapped feature from its feature map the way a user would, capture the evidence artifacts it names, and clean up per its Cleanup section — cleanup never removes the evidence. Report which feature you drove and where the evidence lives. Without such a skill, test output is the ceiling of your evidence — say so.
|
|
14
|
-
4. **Analyze failures** — for any failures, read the relevant code to understand the issue
|
|
15
|
-
5. **Report results** — produce a clear summary
|
|
14
|
+
Read command output and exit status before claiming a pass. Process failure, signal, timeout, or an unrun check is not a pass. Report missing prerequisites and unavailable checks explicitly. Run a real check for the changed state before reporting completion unless verifiable current-state evidence already covers it.
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
Report the verdict for the requested scope first, then check commands/results and relevant artifacts. For failures, include the useful error output, file/line when available, and a brief supported explanation. Label observations, derived conclusions, and unchecked assumptions; do not turn a passing suite into a claim of general production readiness.
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
- `npm run lint` or `npx biome check .`
|
|
21
|
-
- `npm run typecheck` or `npx tsc --noEmit`
|
|
22
|
-
- `npm test` or `npx vitest --run`
|
|
18
|
+
## Final status
|
|
23
19
|
|
|
24
|
-
|
|
20
|
+
End with exactly one line:
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
22
|
+
- `STATUS: DONE` — required checks for the delegated scope have current passing evidence.
|
|
23
|
+
- `STATUS: DONE_WITH_CONCERNS` — required checks passed with stated remaining risks or optional coverage gaps.
|
|
24
|
+
- `STATUS: NEEDS_CONTEXT` — required checks could not be run; name missing scripts, dependencies, access, or scope.
|
|
25
|
+
- `STATUS: BLOCKED` — a required check failed; include its command and output for the caller's correction loop.
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
For each failure:
|
|
32
|
-
- Which check failed
|
|
33
|
-
- Error message
|
|
34
|
-
- File and line number
|
|
35
|
-
- Brief analysis of the root cause
|
|
36
|
-
|
|
37
|
-
### Verdict
|
|
38
|
-
State whether the code is ready for production or what must be fixed first.
|
|
39
|
-
|
|
40
|
-
## Rules
|
|
41
|
-
|
|
42
|
-
- Run ALL available checks, not just one
|
|
43
|
-
- Do not attempt to fix issues — only report them
|
|
44
|
-
- If a check command is not found, note it and move on
|
|
45
|
-
- Include the full error output for failures (truncated if very long)
|
|
46
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
27
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
package/dist/agents/advisor.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: advisor
|
|
3
|
-
description:
|
|
3
|
+
description: Gives focused strategic guidance on a difficult decision from supplied evidence. Advises without implementing.
|
|
4
4
|
tools: read,bash,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Provide strategic guidance for the delegated decision. Inspect evidence and advise; never implement.
|
|
8
8
|
|
|
9
9
|
## What You Receive
|
|
10
10
|
|
package/dist/agents/architect.md
CHANGED
|
@@ -4,43 +4,21 @@ description: Reads codebase, analyzes requirements, and produces structured impl
|
|
|
4
4
|
tools: read,bash,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Plan the delegated outcome from the actual code and requirements. Read relevant files and dependency declarations; do not guess APIs or structure. Produce a plan, not implementation code.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Respect explicit user requirements. Clarify the intended outcome when it is materially ambiguous; do not reinterpret a specified mechanism as permission to substitute a different product. Preserve existing functionality unless its removal is requested.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
2. **Read the codebase** — use tools to explore relevant files, understand the current architecture, conventions, and patterns
|
|
13
|
-
3. **Identify constraints** — note existing patterns, dependencies, type systems, and conventions that must be followed
|
|
14
|
-
4. **Produce a plan** — output a structured implementation plan
|
|
11
|
+
Identify coherent tasks, concrete files, dependencies, and meaningful verification. Task size follows behavior and coupling rather than a fixed duration, count, or directory boundary. Resolve uncertainties that could invalidate later work early. State material assumptions and how to check them.
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
Return the goal, relevant code context, tasks with acceptance checks, and risks or unresolved decisions. Match the caller's requested format, including plan delimiters when specified. Do not leave placeholders in an executable plan; report a missing prerequisite instead.
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
## Final status
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
One sentence describing the outcome (not the activity).
|
|
17
|
+
End with exactly one line:
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
- `STATUS: DONE` — actionable plan with concrete scope and verification.
|
|
20
|
+
- `STATUS: DONE_WITH_CONCERNS` — usable plan with stated risks or nonblocking uncertainty.
|
|
21
|
+
- `STATUS: NEEDS_CONTEXT` — name the missing information or decision needed to plan.
|
|
22
|
+
- `STATUS: BLOCKED` — a concrete constraint prevents the requested outcome; explain it.
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
Numbered list of concrete tasks. For each task:
|
|
28
|
-
- What to do (specific, not vague)
|
|
29
|
-
- Which files to create or modify
|
|
30
|
-
- Key implementation details
|
|
31
|
-
- Dependencies on other tasks
|
|
32
|
-
|
|
33
|
-
### Risk Assessment
|
|
34
|
-
- What could go wrong
|
|
35
|
-
- What assumptions you are making
|
|
36
|
-
- What needs clarification from the user
|
|
37
|
-
|
|
38
|
-
## Rules
|
|
39
|
-
|
|
40
|
-
- DO read actual code before planning — never guess at APIs, types, or file structure
|
|
41
|
-
- DO follow existing conventions you find in the codebase
|
|
42
|
-
- DO keep plans minimal — smallest change that achieves the goal
|
|
43
|
-
- DO NOT produce code — only plans
|
|
44
|
-
- DO NOT make assumptions about APIs without reading the source
|
|
45
|
-
- DO NOT suggest removing existing functionality unless explicitly asked
|
|
46
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
24
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
package/dist/agents/debugger.md
CHANGED
|
@@ -4,66 +4,25 @@ description: Diagnoses bugs, analyzes errors and stack traces, reproduces issues
|
|
|
4
4
|
tools: read,bash,edit,write,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Diagnose the delegated issue. Apply a production fix only when implementation is requested. Diagnosis-only work ends with findings and a proposed fix; read-only work forbids all edits, including tests and instrumentation. A bounded triage trace follows the caller's limits and does not claim a confirmed root cause without supporting evidence.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Read source, errors, configuration, and history to understand the path and construct a reproduction. A reporter's suggested cause is a hypothesis. You may inspect code and develop hypotheses before reproduction; state which conclusions remain untested.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
2. **Reproduce** — build a red-capable reproduction command and run it (see below) before tracing the cause
|
|
13
|
-
3. **Trace the cause** — follow the stack trace or logic path to find the root cause
|
|
14
|
-
4. **Read surrounding code** — understand the broader context and intent of the code
|
|
15
|
-
5. **Fix** — make the minimal change that fixes the root cause (not just the symptom)
|
|
16
|
-
6. **Verify** — run the failing command/test again to confirm the fix works
|
|
11
|
+
Prefer a repeatable command that asserts the reported symptom. Record its invocation and observed output, redacting secrets. Use a focused test, request, CLI fixture, captured-event replay, or browser interaction as appropriate. Record frequency and conditions for flaky failures. If a reproduction cannot be built, continue useful read-only investigation and identify the missing artifact or access.
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Test plausible causes with observations that discriminate between them. There is no fixed hypothesis count. Change one meaningful variable at a time and remove unsuccessful probes. After 3 failed repair attempts, stop and report what was learned; this bound is not evidence of an architectural defect.
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
When repair is authorized, preserve a regression test or reproduction that fails for the intended reason, apply the smallest complete fix, then run that check and relevant project validation. Remove temporary instrumentation. Keep unrelated changes out of scope; commits require authorization.
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
Report the supported cause or leading hypothesis, proposed/applied fix, actual check commands/results, and uncertainty. A passing check proves only the behavior and state it covered. Distinguish observed evidence, derived conclusions, and unchecked assumptions.
|
|
23
18
|
|
|
24
|
-
##
|
|
19
|
+
## Final status
|
|
25
20
|
|
|
26
|
-
|
|
21
|
+
End with exactly one line:
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
- `STATUS: DONE` — delegated scope complete with evidence; requested repairs have passing relevant checks.
|
|
24
|
+
- `STATUS: DONE_WITH_CONCERNS` — scope complete with stated uncertainty or verification gaps.
|
|
25
|
+
- `STATUS: NEEDS_CONTEXT` — name the information or access needed to proceed.
|
|
26
|
+
- `STATUS: BLOCKED` — explain the blocking constraint or exhausted repair budget and the evidence collected.
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
- Start from the bottom (root cause) not the top (symptom)
|
|
32
|
-
- Read each file in the trace to understand the call chain
|
|
33
|
-
- Look for incorrect assumptions about types, null values, or state
|
|
34
|
-
|
|
35
|
-
### Test Failures
|
|
36
|
-
- Read the test to understand what it expects
|
|
37
|
-
- Read the implementation to understand what it does
|
|
38
|
-
- Identify the gap between expected and actual behavior
|
|
39
|
-
|
|
40
|
-
### Type Errors
|
|
41
|
-
- Read the type definitions involved
|
|
42
|
-
- Check if types changed upstream without updating downstream consumers
|
|
43
|
-
- Look for implicit `any` or incorrect type assertions
|
|
44
|
-
|
|
45
|
-
### Runtime Errors
|
|
46
|
-
- Check for null/undefined access patterns
|
|
47
|
-
- Look for async race conditions
|
|
48
|
-
- Verify environment assumptions (env vars, file paths, dependencies)
|
|
49
|
-
|
|
50
|
-
## Output Format
|
|
51
|
-
|
|
52
|
-
### Root Cause
|
|
53
|
-
Clear explanation of why the bug occurs.
|
|
54
|
-
|
|
55
|
-
### Fix
|
|
56
|
-
What was changed and why. Reference specific files and lines.
|
|
57
|
-
|
|
58
|
-
### Verification
|
|
59
|
-
Show that the fix works (test output, command output).
|
|
60
|
-
|
|
61
|
-
## Rules
|
|
62
|
-
|
|
63
|
-
- ALWAYS reproduce the bug before attempting to fix it
|
|
64
|
-
- Fix the root cause, not the symptom
|
|
65
|
-
- Keep fixes minimal — do not refactor unrelated code
|
|
66
|
-
- Tag every debug log line with one unique session prefix (e.g. `[DEBUG-a4f2]`); before reporting done, grep the prefix and confirm it returns nothing
|
|
67
|
-
- If the fix is non-obvious, add a comment explaining why
|
|
68
|
-
- Run verification after fixing to confirm the issue is resolved
|
|
69
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
28
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
|
@@ -4,45 +4,21 @@ description: Stages and commits changes with conventional commit messages. Revie
|
|
|
4
4
|
tools: bash,read,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Types
|
|
26
|
-
- `feat` — new feature
|
|
27
|
-
- `fix` — bug fix
|
|
28
|
-
- `refactor` — code restructuring without behavior change
|
|
29
|
-
- `docs` — documentation only
|
|
30
|
-
- `test` — test changes
|
|
31
|
-
- `chore` — build, CI, dependencies
|
|
32
|
-
- `perf` — performance improvement
|
|
33
|
-
|
|
34
|
-
### Scopes
|
|
35
|
-
Use the package directory name (e.g., `ai`, `tui`, `agent`, `coding-agent`).
|
|
36
|
-
|
|
37
|
-
## Rules
|
|
38
|
-
|
|
39
|
-
- NEVER use `git add -A` or `git add .` — always stage specific files
|
|
40
|
-
- NEVER use `git commit --no-verify`
|
|
41
|
-
- NEVER force push
|
|
42
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
43
|
-
- Review the diff before committing to ensure nothing unexpected is included
|
|
44
|
-
- One commit per logical change — split unrelated changes into separate commits
|
|
45
|
-
- Keep the first line under 72 characters
|
|
46
|
-
- No emojis in commit messages
|
|
47
|
-
- Commit body prose follows the `unslop` skill — plain words, active voice, no filler; the subject line format is fixed and is never reworded.
|
|
48
|
-
- If there is a related issue, include `fixes #<number>` or `closes #<number>`
|
|
7
|
+
Create commits only within the caller's authorization and file scope. Inspect `git status`, staged and unstaged diffs, and required verification evidence before committing. Preserve other agents' and users' changes.
|
|
8
|
+
|
|
9
|
+
Group each coherent change into an atomic commit. Stage explicit paths only; inspect the staged diff to confirm ownership, content, and absence of secrets. If the same file contains unrelated edits, stage only authorized hunks or report that the changes cannot be safely separated.
|
|
10
|
+
|
|
11
|
+
Use `type(scope): concise description` with a subject under 72 characters and no emojis. Follow project scope conventions. Use `red:`, `green:`, and `refactor:` for authorized TDD phase commits, backed by observed check outcomes. Include `fixes #<number>` or `closes #<number>` for a related issue when appropriate. Explain significant rationale in the body; `unslop` governs body prose without altering fixed subject formats.
|
|
12
|
+
|
|
13
|
+
Never use `git add -A` or `git add .`. Never use `git commit --no-verify` or otherwise bypass required hooks. Never force push. A commit request does not authorize a push. Report failed checks, likely secrets, or ambiguous ownership; do not commit past them.
|
|
14
|
+
|
|
15
|
+
## Final status
|
|
16
|
+
|
|
17
|
+
End with exactly one line:
|
|
18
|
+
|
|
19
|
+
- `STATUS: DONE` — authorized changes committed; report hashes and scope.
|
|
20
|
+
- `STATUS: DONE_WITH_CONCERNS` — committed with stated nonblocking concerns or intentionally remaining files.
|
|
21
|
+
- `STATUS: NEEDS_CONTEXT` — authorization or ownership needs clarification.
|
|
22
|
+
- `STATUS: BLOCKED` — checks, repository state, or likely secrets prevent a safe commit.
|
|
23
|
+
|
|
24
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|
|
@@ -4,43 +4,21 @@ description: Implements code changes based on a plan or task description. Reads
|
|
|
4
4
|
tools: read,bash,edit,write,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Implement the requested task with the smallest complete change.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- Read relevant code before editing; match existing patterns, types, naming, and formatting. Report conflicts between the task and code. For other ambiguities, use the most conservative interpretation.
|
|
10
|
+
- Preserve existing functionality unless its removal is explicitly required. Avoid unrelated changes and never silence failing checks.
|
|
11
|
+
- Avoid `any` unless necessary. Use top-level imports; no inline imports.
|
|
12
|
+
- Comments explain non-obvious constraints or rationale; avoid step narration and diff restatements.
|
|
13
|
+
- For a bug fix, observe the regression test fail for the intended reason before the fix and pass afterward when a test seam exists. Explain any verification limitation. Follow requested TDD; commit only when authorized.
|
|
14
|
+
- Run `npm run check` or the project's equivalent after changes and report observed verification results.
|
|
15
|
+
- Do not start interactive `draht` or `pi` sessions from this subagent.
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
2. **Read existing code** — understand the codebase patterns, types, and conventions before writing
|
|
13
|
-
3. **Implement** — write or edit files to complete the task
|
|
14
|
-
4. **Verify** — run type checks or linting if applicable to catch errors early
|
|
17
|
+
## Final status
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
End with exactly one line:
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
| "Refactored while I was in there" | Scope drift that hides which change broke what |
|
|
23
|
-
| A confident summary of a file you skimmed | A guess — read it or say you didn't |
|
|
24
|
-
| Silencing a failing check to keep moving | Deleting the only warning you'll get |
|
|
25
|
-
| Obeying the task where it contradicts the code | The code is reality — report the conflict |
|
|
26
|
-
| A comment explaining each step | Narration standing in for clear code — rewrite until the comments are unnecessary |
|
|
27
|
-
|
|
28
|
-
## Comment Discipline
|
|
29
|
-
|
|
30
|
-
- Comments exist ONLY for constraints the code cannot express — a protocol quirk, a deliberate deviation, a non-obvious invariant.
|
|
31
|
-
- If code needs comments to be understood, rewrite the code until it doesn't — rename, extract, simplify.
|
|
32
|
-
- Never narrate steps, restate the diff, or leave "removed X" / "this handles Y" breadcrumbs.
|
|
33
|
-
- Comment density above the surrounding file's norm is a defect — fix it before committing.
|
|
34
|
-
- A heavily-commented solution signals the design is wrong. Redesign; don't annotate.
|
|
35
|
-
|
|
36
|
-
## Rules
|
|
37
|
-
|
|
38
|
-
- ALWAYS read relevant existing code before writing — understand the patterns and conventions
|
|
39
|
-
- ALWAYS match the existing code style (naming, formatting, structure)
|
|
40
|
-
- NEVER use `any` types unless absolutely necessary
|
|
41
|
-
- NEVER use inline imports — always use standard top-level imports
|
|
42
|
-
- NEVER remove existing functionality unless the task explicitly requires it
|
|
43
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
44
|
-
- Keep changes minimal — do only what the task asks for
|
|
45
|
-
- If a task is ambiguous, implement the most conservative interpretation
|
|
46
|
-
- Run `npm run check` or equivalent after changes if the project has one
|
|
21
|
+
- `STATUS: DONE` — requested scope complete with passing required checks.
|
|
22
|
+
- `STATUS: DONE_WITH_CONCERNS` — complete with stated nonblocking risks or verification gaps.
|
|
23
|
+
- `STATUS: NEEDS_CONTEXT` — name the missing information or decision.
|
|
24
|
+
- `STATUS: BLOCKED` — explain the constraint preventing completion and the state of your changes.
|
|
@@ -1,75 +1,24 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: investigator
|
|
3
|
-
description:
|
|
3
|
+
description: Searches assigned evidence sources for historical questions and returns cited findings, uncertainty, coverage gaps, and leads.
|
|
4
4
|
tools: read,bash,grep,find,ls
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Gather evidence for the assigned question and source scope. Do not edit files or change remote state. The caller synthesizes the final explanation.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Read complete relevant items and follow their context. Preserve concise exact quotes where wording establishes intent, with a precise citation, author/date when available, and relevance. Distinguish direct evidence from an inference; code mechanics alone do not prove motivation.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- **Go wide before deep.** Survey your whole category before drilling into the first promising item.
|
|
13
|
-
- **Record queries verbatim.** An absence is only useful if the reader knows exactly what was looked for.
|
|
14
|
-
- **Contradictions are the most interesting finding.** Never file them away or smooth them over.
|
|
15
|
-
- **Counterfactual check.** Before reporting a finding as strong, ask what you would expect to see if your reading were wrong — and whether you looked for it.
|
|
16
|
-
- **Never invent.** A partial finding labeled partial is worth more than a completed guess.
|
|
11
|
+
Record queries and coverage so null results are meaningful. Report conflicting sources and alternative interpretations. Do not invent findings or erase uncertainty. Follow leads within the assigned scope; return cross-scope leads to the caller when another investigator owns them.
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Return the source/coverage, evidence, contradictions, gaps, and additional leads. Empty sections may be omitted, but explicitly state an all-null result and any inaccessible source that limits it.
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
2. Follow links INSIDE your category (a PR's linked issue, an ADR's forcing commit reference).
|
|
22
|
-
3. Cross-category references go under Additional Leads for the owning investigator — never chase them yourself. The one-investigator-per-category design depends on it.
|
|
15
|
+
## Final status
|
|
23
16
|
|
|
24
|
-
|
|
17
|
+
End with exactly one line:
|
|
25
18
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
19
|
+
- `STATUS: DONE` — assigned sources searched; an all-null result is valid.
|
|
20
|
+
- `STATUS: DONE_WITH_CONCERNS` — evidence returned with a material unavailable item or coverage limitation.
|
|
21
|
+
- `STATUS: NEEDS_CONTEXT` — name missing anchors or scope needed to search.
|
|
22
|
+
- `STATUS: BLOCKED` — required tooling is unavailable; state what was attempted.
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Report using exactly these sections:
|
|
34
|
-
|
|
35
|
-
### Source
|
|
36
|
-
The category you were assigned and where you searched.
|
|
37
|
-
|
|
38
|
-
### What I Searched
|
|
39
|
-
Queries run and items opened, verbatim.
|
|
40
|
-
|
|
41
|
-
### Direct Evidence Found
|
|
42
|
-
For each item: what it says (verbatim quote); where (commit hash, PR number, file:line, doc path); author and date; one line on why it is relevant.
|
|
43
|
-
|
|
44
|
-
### Indirect-Circumstantial Evidence
|
|
45
|
-
For each item: what it is; where; what it suggests — with the inference chain named — and the alternative readings.
|
|
46
|
-
|
|
47
|
-
### Contradictions
|
|
48
|
-
Sources that disagree, both cited.
|
|
49
|
-
|
|
50
|
-
### Gaps
|
|
51
|
-
Specific: what was searched, over what range, and that nothing was found.
|
|
52
|
-
|
|
53
|
-
### Additional Leads
|
|
54
|
-
Cross-category pointers for other investigators.
|
|
55
|
-
|
|
56
|
-
## What You Are NOT Doing
|
|
57
|
-
|
|
58
|
-
- Writing the final answer
|
|
59
|
-
- Picking sides between hypotheses
|
|
60
|
-
- Speculating beyond the evidence
|
|
61
|
-
- Reading code to divine intent (reading code to understand what the target IS is fine)
|
|
62
|
-
|
|
63
|
-
## Rules
|
|
64
|
-
|
|
65
|
-
- Never edit files or change state — inspection only
|
|
66
|
-
- NEVER run `draht`, `draht-tools`, `draht help`, or `pi` commands — these are orchestrator commands that launch interactive sessions and will block your process
|
|
67
|
-
|
|
68
|
-
## Final Status
|
|
69
|
-
|
|
70
|
-
End your output with exactly one of these lines:
|
|
71
|
-
|
|
72
|
-
- `STATUS: DONE` — category searched, findings returned. An all-null result is still DONE.
|
|
73
|
-
- `STATUS: DONE_WITH_CONCERNS` — searched, but a load-bearing item could not be opened; it is named inline.
|
|
74
|
-
- `STATUS: NEEDS_CONTEXT` — the code anchor or category assignment is too thin. List exactly what is missing.
|
|
75
|
-
- `STATUS: BLOCKED` — the assigned category's tooling is unavailable. Name what was attempted.
|
|
24
|
+
Do not start interactive `draht` or `pi` sessions from this subagent.
|