@dreb/coding-agent 1.16.0
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 +3316 -0
- package/README.md +657 -0
- package/agents/code-reviewer.md +55 -0
- package/agents/completeness-checker.md +71 -0
- package/agents/error-auditor.md +65 -0
- package/agents/explore.md +13 -0
- package/agents/feature-dev.md +23 -0
- package/agents/independent-assessor.md +61 -0
- package/agents/sandbox.md +14 -0
- package/agents/simplifier.md +69 -0
- package/agents/test-reviewer.md +63 -0
- package/dist/bun/cli.d.ts +3 -0
- package/dist/bun/cli.d.ts.map +1 -0
- package/dist/bun/cli.js +7 -0
- package/dist/bun/cli.js.map +1 -0
- package/dist/bun/register-bedrock.d.ts +2 -0
- package/dist/bun/register-bedrock.d.ts.map +1 -0
- package/dist/bun/register-bedrock.js +4 -0
- package/dist/bun/register-bedrock.js.map +1 -0
- package/dist/cli/args.d.ts +50 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +310 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/config-selector.d.ts +14 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +83 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +92 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/session-picker.d.ts +9 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +35 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +76 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +234 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session.d.ts +658 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +2898 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-storage.d.ts +130 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +421 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +46 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +113 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/buddy/buddy-controller.d.ts +139 -0
- package/dist/core/buddy/buddy-controller.d.ts.map +1 -0
- package/dist/core/buddy/buddy-controller.js +428 -0
- package/dist/core/buddy/buddy-controller.js.map +1 -0
- package/dist/core/buddy/buddy-manager.d.ts +68 -0
- package/dist/core/buddy/buddy-manager.d.ts.map +1 -0
- package/dist/core/buddy/buddy-manager.js +399 -0
- package/dist/core/buddy/buddy-manager.js.map +1 -0
- package/dist/core/buddy/buddy-prng.d.ts +28 -0
- package/dist/core/buddy/buddy-prng.d.ts.map +1 -0
- package/dist/core/buddy/buddy-prng.js +65 -0
- package/dist/core/buddy/buddy-prng.js.map +1 -0
- package/dist/core/buddy/buddy-species.d.ts +37 -0
- package/dist/core/buddy/buddy-species.d.ts.map +1 -0
- package/dist/core/buddy/buddy-species.js +287 -0
- package/dist/core/buddy/buddy-species.js.map +1 -0
- package/dist/core/buddy/buddy-types.d.ts +58 -0
- package/dist/core/buddy/buddy-types.d.ts.map +1 -0
- package/dist/core/buddy/buddy-types.js +46 -0
- package/dist/core/buddy/buddy-types.js.map +1 -0
- package/dist/core/buddy/index.d.ts +7 -0
- package/dist/core/buddy/index.d.ts.map +1 -0
- package/dist/core/buddy/index.js +6 -0
- package/dist/core/buddy/index.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +86 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +243 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +121 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +612 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +38 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +153 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +3 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +224 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1001 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1690 -0
- package/dist/core/export-html/tool-renderer.d.ts +38 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +95 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +6 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +25 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +436 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +147 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +696 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1072 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +35 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +22 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +44 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +252 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/forbidden-commands.d.ts +31 -0
- package/dist/core/forbidden-commands.d.ts.map +1 -0
- package/dist/core/forbidden-commands.js +184 -0
- package/dist/core/forbidden-commands.js.map +1 -0
- package/dist/core/git-root.d.ts +6 -0
- package/dist/core/git-root.d.ts.map +1 -0
- package/dist/core/git-root.js +32 -0
- package/dist/core/git-root.js.map +1 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +10 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +280 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +245 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/memory-prompt.d.ts +10 -0
- package/dist/core/memory-prompt.d.ts.map +1 -0
- package/dist/core/memory-prompt.js +95 -0
- package/dist/core/memory-prompt.js.map +1 -0
- package/dist/core/messages.d.ts +77 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +123 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-registry.d.ts +114 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +563 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +116 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +465 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/output-guard.d.ts +6 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +59 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +172 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +1767 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +51 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +251 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +17 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +94 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +205 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +866 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/sdk.d.ts +92 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +258 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/search/chunker.d.ts +21 -0
- package/dist/core/search/chunker.d.ts.map +1 -0
- package/dist/core/search/chunker.js +51 -0
- package/dist/core/search/chunker.js.map +1 -0
- package/dist/core/search/db.d.ts +89 -0
- package/dist/core/search/db.d.ts.map +1 -0
- package/dist/core/search/db.js +406 -0
- package/dist/core/search/db.js.map +1 -0
- package/dist/core/search/embedder.d.ts +51 -0
- package/dist/core/search/embedder.d.ts.map +1 -0
- package/dist/core/search/embedder.js +143 -0
- package/dist/core/search/embedder.js.map +1 -0
- package/dist/core/search/index-manager.d.ts +55 -0
- package/dist/core/search/index-manager.d.ts.map +1 -0
- package/dist/core/search/index-manager.js +311 -0
- package/dist/core/search/index-manager.js.map +1 -0
- package/dist/core/search/metrics/bm25.d.ts +10 -0
- package/dist/core/search/metrics/bm25.d.ts.map +1 -0
- package/dist/core/search/metrics/bm25.js +32 -0
- package/dist/core/search/metrics/bm25.js.map +1 -0
- package/dist/core/search/metrics/git-recency.d.ts +14 -0
- package/dist/core/search/metrics/git-recency.d.ts.map +1 -0
- package/dist/core/search/metrics/git-recency.js +123 -0
- package/dist/core/search/metrics/git-recency.js.map +1 -0
- package/dist/core/search/metrics/import-graph.d.ts +15 -0
- package/dist/core/search/metrics/import-graph.d.ts.map +1 -0
- package/dist/core/search/metrics/import-graph.js +115 -0
- package/dist/core/search/metrics/import-graph.js.map +1 -0
- package/dist/core/search/metrics/path-match.d.ts +13 -0
- package/dist/core/search/metrics/path-match.d.ts.map +1 -0
- package/dist/core/search/metrics/path-match.js +54 -0
- package/dist/core/search/metrics/path-match.js.map +1 -0
- package/dist/core/search/metrics/symbol-match.d.ts +12 -0
- package/dist/core/search/metrics/symbol-match.d.ts.map +1 -0
- package/dist/core/search/metrics/symbol-match.js +62 -0
- package/dist/core/search/metrics/symbol-match.js.map +1 -0
- package/dist/core/search/metrics/tokenize.d.ts +12 -0
- package/dist/core/search/metrics/tokenize.d.ts.map +1 -0
- package/dist/core/search/metrics/tokenize.js +29 -0
- package/dist/core/search/metrics/tokenize.js.map +1 -0
- package/dist/core/search/poem.d.ts +38 -0
- package/dist/core/search/poem.d.ts.map +1 -0
- package/dist/core/search/poem.js +214 -0
- package/dist/core/search/poem.js.map +1 -0
- package/dist/core/search/query-classifier.d.ts +17 -0
- package/dist/core/search/query-classifier.d.ts.map +1 -0
- package/dist/core/search/query-classifier.js +54 -0
- package/dist/core/search/query-classifier.js.map +1 -0
- package/dist/core/search/scanner.d.ts +30 -0
- package/dist/core/search/scanner.d.ts.map +1 -0
- package/dist/core/search/scanner.js +335 -0
- package/dist/core/search/scanner.js.map +1 -0
- package/dist/core/search/search.d.ts +42 -0
- package/dist/core/search/search.d.ts.map +1 -0
- package/dist/core/search/search.js +337 -0
- package/dist/core/search/search.js.map +1 -0
- package/dist/core/search/text-chunker.d.ts +15 -0
- package/dist/core/search/text-chunker.d.ts.map +1 -0
- package/dist/core/search/text-chunker.js +580 -0
- package/dist/core/search/text-chunker.js.map +1 -0
- package/dist/core/search/tree-sitter-chunker.d.ts +25 -0
- package/dist/core/search/tree-sitter-chunker.d.ts.map +1 -0
- package/dist/core/search/tree-sitter-chunker.js +357 -0
- package/dist/core/search/tree-sitter-chunker.js.map +1 -0
- package/dist/core/search/types.d.ts +96 -0
- package/dist/core/search/types.d.ts.map +1 -0
- package/dist/core/search/types.js +6 -0
- package/dist/core/search/types.js.map +1 -0
- package/dist/core/search/vector-store.d.ts +43 -0
- package/dist/core/search/vector-store.d.ts.map +1 -0
- package/dist/core/search/vector-store.js +73 -0
- package/dist/core/search/vector-store.js.map +1 -0
- package/dist/core/session-manager.d.ts +329 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1097 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +239 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +705 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +67 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +428 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +14 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +23 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/system-prompt.d.ts +33 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +184 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/timings.d.ts +8 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +31 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +73 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +342 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +63 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +244 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +51 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +218 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +37 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +46 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +241 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +56 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +293 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +176 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +137 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +46 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +172 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +8 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +81 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/read.d.ts +46 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +225 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +21 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +49 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/search.d.ts +29 -0
- package/dist/core/tools/search.d.ts.map +1 -0
- package/dist/core/tools/search.js +187 -0
- package/dist/core/tools/search.js.map +1 -0
- package/dist/core/tools/skill.d.ts +26 -0
- package/dist/core/tools/skill.d.ts.map +1 -0
- package/dist/core/tools/skill.js +127 -0
- package/dist/core/tools/skill.js.map +1 -0
- package/dist/core/tools/subagent.d.ts +147 -0
- package/dist/core/tools/subagent.d.ts.map +1 -0
- package/dist/core/tools/subagent.js +950 -0
- package/dist/core/tools/subagent.js.map +1 -0
- package/dist/core/tools/tasks.d.ts +32 -0
- package/dist/core/tools/tasks.d.ts.map +1 -0
- package/dist/core/tools/tasks.js +110 -0
- package/dist/core/tools/tasks.js.map +1 -0
- package/dist/core/tools/tmp-read.d.ts +11 -0
- package/dist/core/tools/tmp-read.d.ts.map +1 -0
- package/dist/core/tools/tmp-read.js +63 -0
- package/dist/core/tools/tmp-read.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +30 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +205 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/web.d.ts +42 -0
- package/dist/core/tools/web.d.ts.map +1 -0
- package/dist/core/tools/web.js +518 -0
- package/dist/core/tools/web.js.map +1 -0
- package/dist/core/tools/write.d.ts +35 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +216 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +8 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +789 -0
- package/dist/main.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +261 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +9 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +16 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +96 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +175 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +51 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/buddy-component.d.ts +58 -0
- package/dist/modes/interactive/components/buddy-component.d.ts.map +1 -0
- package/dist/modes/interactive/components/buddy-component.js +351 -0
- package/dist/modes/interactive/components/buddy-component.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +479 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +70 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +79 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +111 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +24 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +78 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +26 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +198 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +33 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +34 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +8 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +22 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +42 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +145 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +275 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +19 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +97 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +49 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +275 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +848 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +58 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +301 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/tasks-panel.d.ts +20 -0
- package/dist/modes/interactive/components/tasks-panel.d.ts.map +1 -0
- package/dist/modes/interactive/components/tasks-panel.js +66 -0
- package/dist/modes/interactive/components/tasks-panel.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +51 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +59 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +279 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +87 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1051 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +113 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +9 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +28 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +338 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +4167 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +84 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.d.ts +81 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +975 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +107 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/index.d.ts +10 -0
- package/dist/modes/rpc/index.d.ts.map +1 -0
- package/dist/modes/rpc/index.js +8 -0
- package/dist/modes/rpc/index.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +17 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +49 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +237 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +448 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +20 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +592 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +471 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/utils/changelog.d.ts +21 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +87 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +11 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +78 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +245 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard-native.d.ts +8 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -0
- package/dist/utils/clipboard-native.js +14 -0
- package/dist/utils/clipboard-native.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +78 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts +5 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -0
- package/dist/utils/exif-orientation.js +158 -0
- package/dist/utils/exif-orientation.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +163 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/image-convert.d.ts +9 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +39 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-resize.d.ts +36 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +137 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/mime.d.ts +2 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +26 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/photon.d.ts +21 -0
- package/dist/utils/photon.d.ts.map +1 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/photon.js.map +1 -0
- package/dist/utils/shell.d.ts +26 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +186 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +252 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/xml.d.ts +2 -0
- package/dist/utils/xml.d.ts.map +1 -0
- package/dist/utils/xml.js +9 -0
- package/dist/utils/xml.js.map +1 -0
- package/docs/buddy.md +111 -0
- package/docs/compaction.md +392 -0
- package/docs/custom-provider.md +599 -0
- package/docs/development.md +108 -0
- package/docs/extensions.md +2130 -0
- package/docs/images/doom-extension.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/json.md +112 -0
- package/docs/keybindings.md +174 -0
- package/docs/mach6.md +150 -0
- package/docs/models.md +335 -0
- package/docs/packages.md +197 -0
- package/docs/prompt-templates.md +67 -0
- package/docs/providers.md +194 -0
- package/docs/rpc.md +1426 -0
- package/docs/sdk.md +969 -0
- package/docs/session.md +412 -0
- package/docs/settings.md +247 -0
- package/docs/shell-aliases.md +55 -0
- package/docs/skills.md +296 -0
- package/docs/terminal-setup.md +104 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +295 -0
- package/docs/tmux.md +61 -0
- package/docs/tree.md +228 -0
- package/docs/tui.md +887 -0
- package/docs/windows.md +61 -0
- package/examples/README.md +25 -0
- package/examples/extensions/README.md +205 -0
- package/examples/extensions/antigravity-image-gen.ts +418 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/built-in-tool-renderer.ts +246 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +114 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/custom-provider-qwen-cli/index.ts +345 -0
- package/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +73 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/handoff.ts +150 -0
- package/examples/extensions/hello.ts +25 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +55 -0
- package/examples/extensions/overlay-qa-tests.ts +1348 -0
- package/examples/extensions/overlay-test.ts +150 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +65 -0
- package/examples/extensions/plan-mode/index.ts +340 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +403 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +14 -0
- package/examples/extensions/qna.ts +119 -0
- package/examples/extensions/question.ts +264 -0
- package/examples/extensions/questionnaire.ts +427 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +124 -0
- package/examples/extensions/sandbox/index.ts +317 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +40 -0
- package/examples/extensions/subagent/README.md +172 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +126 -0
- package/examples/extensions/subagent/index.ts +986 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +195 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +299 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +40 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +17 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/rpc-extension-ui.ts +632 -0
- package/examples/sdk/01-minimal.ts +22 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +55 -0
- package/examples/sdk/04-skills.ts +53 -0
- package/examples/sdk/05-tools.ts +56 -0
- package/examples/sdk/06-extensions.ts +88 -0
- package/examples/sdk/07-context-files.ts +40 -0
- package/examples/sdk/08-prompt-templates.ts +48 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/examples/sdk/10-settings.ts +51 -0
- package/examples/sdk/11-sessions.ts +48 -0
- package/examples/sdk/12-full-control.ts +87 -0
- package/examples/sdk/README.md +144 -0
- package/package.json +123 -0
- package/skills/mach6-implement/SKILL.md +170 -0
- package/skills/mach6-issue/SKILL.md +129 -0
- package/skills/mach6-plan/SKILL.md +123 -0
- package/skills/mach6-publish/SKILL.md +188 -0
- package/skills/mach6-push/SKILL.md +101 -0
- package/skills/mach6-review/SKILL.md +192 -0
- package/skills/telegram-send/SKILL.md +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,657 @@
|
|
|
1
|
+
dreb is an open-source terminal coding agent, forked from [pi-mono](https://github.com/badlogic/pi-mono) (itself derived from Claude Code). It has *fewer* features than Claude Code by design — the bet is that a small, hackable core you can shape beats a large feature set you can't.
|
|
2
|
+
|
|
3
|
+
Claude Code is a great product. dreb isn't trying to compete on features — it's trying to compete on flexibility. The core is kept minimal; what you'd find baked into other tools, you build here with [skills](#skills) (markdown workflows), [extensions](#extensions) (TypeScript), or install from third-party [packages](#packages).
|
|
4
|
+
|
|
5
|
+
Concretely, dreb ships *without* things Claude Code has — and that's intentional:
|
|
6
|
+
|
|
7
|
+
- **No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support.
|
|
8
|
+
- **No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions).
|
|
9
|
+
- **No plan mode.** Write plans to files, or build it with extensions, or install a package.
|
|
10
|
+
- **No background bash in the main agent.** The main agent runs commands synchronously. For parallel work, use the `subagent` tool — each subagent runs as an independent process with its own tools.
|
|
11
|
+
|
|
12
|
+
What you get in exchange: a skill system, an extension API, custom agent definitions, custom provider support (route through any proxy, use any API-compatible backend), and a subagent system for parallel work. From those primitives, you build what you need — and share it with others via git or npm.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Quick Start](#quick-start)
|
|
17
|
+
- [Providers & Models](#providers--models)
|
|
18
|
+
- [Interactive Mode](#interactive-mode)
|
|
19
|
+
- [Editor](#editor)
|
|
20
|
+
- [Commands](#commands)
|
|
21
|
+
- [Keyboard Shortcuts](#keyboard-shortcuts)
|
|
22
|
+
- [Message Queue](#message-queue)
|
|
23
|
+
- [Sessions](#sessions)
|
|
24
|
+
- [Branching](#branching)
|
|
25
|
+
- [Compaction](#compaction)
|
|
26
|
+
- [Settings](#settings)
|
|
27
|
+
- [Context Files](#context-files)
|
|
28
|
+
- [Memory](#memory)
|
|
29
|
+
- [Task Tracking](#task-tracking)
|
|
30
|
+
- [Semantic Search](#semantic-search)
|
|
31
|
+
- [Customization](#customization)
|
|
32
|
+
- [Prompt Templates](#prompt-templates)
|
|
33
|
+
- [Skills](#skills)
|
|
34
|
+
- [Extensions](#extensions)
|
|
35
|
+
- [Themes](#themes)
|
|
36
|
+
- [Packages](#packages)
|
|
37
|
+
- [Programmatic Usage](#programmatic-usage)
|
|
38
|
+
- [CLI Reference](#cli-reference)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
Clone and build:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
git clone https://github.com/aebrer/dreb.git
|
|
48
|
+
cd dreb
|
|
49
|
+
npm install
|
|
50
|
+
npm run build
|
|
51
|
+
npm link -w packages/coding-agent
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Authenticate with an API key:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
58
|
+
dreb
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Or use your existing subscription:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
dreb
|
|
65
|
+
/login # Then select provider
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Or use a custom provider (corporate proxy, Bedrock, etc.) — see [Custom providers & models](#providers--models).
|
|
69
|
+
|
|
70
|
+
Then just talk to dreb. All 10 built-in tools are enabled by default: `read`, `write`, `edit`, `bash`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, and `subagent`. Use `--tools` to restrict to a subset (e.g., `--tools read,grep,find,ls` for read-only). Three additional tools — `search`, `skill`, and `tasks_update` — are always active. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [packages](#packages).
|
|
71
|
+
|
|
72
|
+
**Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Providers & Models
|
|
77
|
+
|
|
78
|
+
For each built-in provider, dreb maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).
|
|
79
|
+
|
|
80
|
+
**Subscriptions:**
|
|
81
|
+
- OpenAI ChatGPT Plus/Pro (Codex)
|
|
82
|
+
- GitHub Copilot
|
|
83
|
+
- Google Gemini CLI
|
|
84
|
+
- Google Antigravity
|
|
85
|
+
|
|
86
|
+
**API keys:**
|
|
87
|
+
- Anthropic
|
|
88
|
+
- OpenAI
|
|
89
|
+
- Azure OpenAI
|
|
90
|
+
- Google Gemini
|
|
91
|
+
- Google Vertex
|
|
92
|
+
- Amazon Bedrock
|
|
93
|
+
- Mistral
|
|
94
|
+
- Groq
|
|
95
|
+
- Cerebras
|
|
96
|
+
- xAI
|
|
97
|
+
- OpenRouter
|
|
98
|
+
- Vercel AI Gateway
|
|
99
|
+
- ZAI
|
|
100
|
+
- OpenCode Zen
|
|
101
|
+
- OpenCode Go
|
|
102
|
+
- Hugging Face
|
|
103
|
+
- Kimi For Coding
|
|
104
|
+
- MiniMax
|
|
105
|
+
- MiniMax (China)
|
|
106
|
+
|
|
107
|
+
See [docs/providers.md](docs/providers.md) for detailed setup instructions.
|
|
108
|
+
|
|
109
|
+
**Custom providers & models:** Add providers via `~/.dreb/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Interactive Mode
|
|
114
|
+
|
|
115
|
+
<p align="center"><img src="docs/images/interactive-mode.png" alt="Interactive Mode" width="600"></p>
|
|
116
|
+
|
|
117
|
+
The interface from top to bottom:
|
|
118
|
+
|
|
119
|
+
- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions
|
|
120
|
+
- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
|
|
121
|
+
- **Editor** - Where you type; border color indicates thinking level
|
|
122
|
+
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model
|
|
123
|
+
|
|
124
|
+
The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
|
|
125
|
+
|
|
126
|
+
### Editor
|
|
127
|
+
|
|
128
|
+
| Feature | How |
|
|
129
|
+
|---------|-----|
|
|
130
|
+
| File reference | Type `@` to fuzzy-search project files |
|
|
131
|
+
| Path completion | Tab to complete paths |
|
|
132
|
+
| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |
|
|
133
|
+
| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |
|
|
134
|
+
| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |
|
|
135
|
+
|
|
136
|
+
Standard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).
|
|
137
|
+
|
|
138
|
+
### Commands
|
|
139
|
+
|
|
140
|
+
Type `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.
|
|
141
|
+
|
|
142
|
+
| Command | Description |
|
|
143
|
+
|---------|-------------|
|
|
144
|
+
| `/login`, `/logout` | OAuth authentication |
|
|
145
|
+
| `/model` | Switch models |
|
|
146
|
+
| `/scoped-models` | Enable/disable models for Ctrl+P cycling |
|
|
147
|
+
| `/settings` | Thinking level, theme, message delivery, transport |
|
|
148
|
+
| `/resume` | Pick from previous sessions |
|
|
149
|
+
| `/new` | Start a new session |
|
|
150
|
+
| `/name <name>` | Set session display name |
|
|
151
|
+
| `/session` | Show session info (path, tokens, cost) |
|
|
152
|
+
| `/tree` | Jump to any point in the session and continue from there |
|
|
153
|
+
| `/fork` | Create a new session from the current branch |
|
|
154
|
+
| `/compact [prompt]` | Manually compact context, optional custom instructions |
|
|
155
|
+
| `/copy` | Copy last assistant message to clipboard |
|
|
156
|
+
| `/export [file]` | Export session to HTML file |
|
|
157
|
+
| `/buddy` | Terminal companion — hatch, pet, reroll, set model, or hide. See [docs/buddy.md](docs/buddy.md) |
|
|
158
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |
|
|
159
|
+
| `/hotkeys` | Show all keyboard shortcuts |
|
|
160
|
+
| `/changelog` | Display version history |
|
|
161
|
+
| `/quit`, `/exit` | Quit dreb |
|
|
162
|
+
|
|
163
|
+
### Keyboard Shortcuts
|
|
164
|
+
|
|
165
|
+
See `/hotkeys` for the full list. Customize via `~/.dreb/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).
|
|
166
|
+
|
|
167
|
+
**Commonly used:**
|
|
168
|
+
|
|
169
|
+
| Key | Action |
|
|
170
|
+
|-----|--------|
|
|
171
|
+
| Ctrl+C | Clear editor |
|
|
172
|
+
| Ctrl+C twice | Quit |
|
|
173
|
+
| Escape | Cancel/abort |
|
|
174
|
+
| Escape twice | Open `/tree` |
|
|
175
|
+
| Ctrl+L | Open model selector |
|
|
176
|
+
| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |
|
|
177
|
+
| Shift+Tab | Cycle thinking level |
|
|
178
|
+
| Ctrl+O | Collapse/expand tool output |
|
|
179
|
+
| Ctrl+T | Collapse/expand thinking blocks |
|
|
180
|
+
|
|
181
|
+
### Message Queue
|
|
182
|
+
|
|
183
|
+
Submit messages while the agent is working:
|
|
184
|
+
|
|
185
|
+
- **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls
|
|
186
|
+
- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work
|
|
187
|
+
- **Escape** aborts and restores queued messages to editor
|
|
188
|
+
- **Alt+Up** retrieves queued messages back to editor
|
|
189
|
+
|
|
190
|
+
On Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so dreb can receive the follow-up shortcut.
|
|
191
|
+
|
|
192
|
+
Configure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `"one-at-a-time"` (default, waits for response) or `"all"` (delivers all queued at once). `transport` selects provider transport preference (`"sse"`, `"websocket"`, or `"auto"`) for providers that support multiple transports.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Sessions
|
|
197
|
+
|
|
198
|
+
Sessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session.md](docs/session.md) for file format.
|
|
199
|
+
|
|
200
|
+
### Management
|
|
201
|
+
|
|
202
|
+
Sessions auto-save to `~/.dreb/agent/sessions/` organized by working directory.
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
dreb -c # Continue most recent session
|
|
206
|
+
dreb -r # Browse and select from past sessions
|
|
207
|
+
dreb --no-session # Ephemeral mode (don't save)
|
|
208
|
+
dreb --session <path> # Use specific session file or ID
|
|
209
|
+
dreb --fork <path> # Fork specific session file or ID into a new session
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Branching
|
|
213
|
+
|
|
214
|
+
**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.
|
|
215
|
+
|
|
216
|
+
<p align="center"><img src="docs/images/tree-view.png" alt="Tree View" width="600"></p>
|
|
217
|
+
|
|
218
|
+
- Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→
|
|
219
|
+
- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
|
|
220
|
+
- Press `L` (Shift+L) to label entries as bookmarks
|
|
221
|
+
|
|
222
|
+
**`/fork`** - Create a new session file from the current branch. Opens a selector, copies history up to the selected point, and places that message in the editor for modification.
|
|
223
|
+
|
|
224
|
+
**`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.
|
|
225
|
+
|
|
226
|
+
### Compaction
|
|
227
|
+
|
|
228
|
+
Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.
|
|
229
|
+
|
|
230
|
+
**Manual:** `/compact` or `/compact <custom instructions>`
|
|
231
|
+
|
|
232
|
+
**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.
|
|
233
|
+
|
|
234
|
+
Compaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Settings
|
|
239
|
+
|
|
240
|
+
Use `/settings` to modify common options, or edit JSON files directly:
|
|
241
|
+
|
|
242
|
+
| Location | Scope |
|
|
243
|
+
|----------|-------|
|
|
244
|
+
| `~/.dreb/agent/settings.json` | Global (all projects) |
|
|
245
|
+
| `.dreb/settings.json` | Project (overrides global) |
|
|
246
|
+
|
|
247
|
+
See [docs/settings.md](docs/settings.md) for all options.
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Context Files
|
|
252
|
+
|
|
253
|
+
dreb loads `AGENTS.md` (or `CLAUDE.md`) at startup from:
|
|
254
|
+
- `~/.dreb/agent/AGENTS.md` (global)
|
|
255
|
+
- Parent directories (walking up from cwd)
|
|
256
|
+
- Current directory
|
|
257
|
+
|
|
258
|
+
Use for project instructions, conventions, common commands. All matching files are concatenated.
|
|
259
|
+
|
|
260
|
+
### System Prompt
|
|
261
|
+
|
|
262
|
+
Replace the default system prompt with `.dreb/SYSTEM.md` (project) or `~/.dreb/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Memory
|
|
267
|
+
|
|
268
|
+
dreb has a persistent, file-based memory system. Memory survives across sessions and helps the model recall user preferences, past decisions, project context, and pointers to external resources.
|
|
269
|
+
|
|
270
|
+
### How it works
|
|
271
|
+
|
|
272
|
+
Memory is convention-based — no dedicated tool. The system prompt teaches the model the memory format; the model uses the standard `read`, `write`, and `edit` tools to manage memory files. Memory indexes (`MEMORY.md`) are loaded at session start and injected into the system prompt.
|
|
273
|
+
|
|
274
|
+
### Locations
|
|
275
|
+
|
|
276
|
+
| Scope | Directory | Loaded |
|
|
277
|
+
|-------|-----------|--------|
|
|
278
|
+
| Global | `~/.dreb/memory/` | Every session |
|
|
279
|
+
| Project | `<project-root>/.dreb/memory/` | When working in that project |
|
|
280
|
+
|
|
281
|
+
Project identity is determined by git repo root. The global memory directory is auto-created on first session; project directories are created on demand by the model.
|
|
282
|
+
|
|
283
|
+
### Memory entries
|
|
284
|
+
|
|
285
|
+
Each memory is a Markdown file with YAML frontmatter:
|
|
286
|
+
|
|
287
|
+
```markdown
|
|
288
|
+
---
|
|
289
|
+
name: descriptive-name
|
|
290
|
+
description: One-line description for relevance matching
|
|
291
|
+
type: user-preferences
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
Content of the memory entry.
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Four types: `user-preferences` (who the user is), `good-practices` (how to approach work), `project` (ongoing work context), `navigation` (pointers to external resources).
|
|
298
|
+
|
|
299
|
+
### MEMORY.md index
|
|
300
|
+
|
|
301
|
+
Each memory directory has a `MEMORY.md` file that serves as an index. Only the first 200 lines are loaded at session start — keep it concise:
|
|
302
|
+
|
|
303
|
+
```markdown
|
|
304
|
+
- [User role](user_role.md) — Python dev, generative art background
|
|
305
|
+
- [CI parity](feedback_ci_parity.md) — run tsgo --noEmit locally, not just tests
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Claude Code compatibility
|
|
309
|
+
|
|
310
|
+
dreb reads existing Claude Code memory for the current project from `~/.claude/projects/` (read-only), with source labeling and a warning about Claude Code-specific references that may not apply to dreb.
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## Task Tracking
|
|
315
|
+
|
|
316
|
+
The `tasks_update` tool lets the model maintain a visible task list during multi-step work. Tasks appear in a TUI panel with status indicators (☐ pending, ⧖ in progress, ☑ completed).
|
|
317
|
+
|
|
318
|
+
The tool uses a full-replacement model — the model sends the complete task list on each call, no incremental updates. The TUI panel is visible by default and renders when active tasks exist. It auto-hides when the task list is empty or all tasks are completed. Toggle visibility with the `app.tasks.toggle` keybinding (unbound by default, configurable in [keybindings](docs/keybindings.md)). The panel displays up to 10 tasks at a time; overflow shows as "... and N more".
|
|
319
|
+
|
|
320
|
+
Task tracking is prompt-driven: the system prompt includes guidelines for when to use it (3+ step work), concise titles, and a maximum of 20 tasks.
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Semantic Search
|
|
325
|
+
|
|
326
|
+
The `search` tool provides natural language queries over the codebase using embeddings and full-text search. It supports identifier queries (e.g., `AuthMiddleware`), natural language (e.g., `where is rate limiting handled`), and path queries (e.g., `src/auth/`).
|
|
327
|
+
|
|
328
|
+
**How it works:** The first query builds a project index (may take a few minutes for large repos). Subsequent queries use the cached index, with incremental re-indexing for changed files (mtime-based).
|
|
329
|
+
|
|
330
|
+
**Indexing pipeline:**
|
|
331
|
+
- AST-aware code chunking via tree-sitter (TypeScript, JavaScript, Python, Go, Rust, Java, C, C++) — extracts functions, classes, methods, and exports as individual chunks
|
|
332
|
+
- Format-aware text chunking for non-code files (Markdown by heading, YAML/JSON/TOML by top-level key)
|
|
333
|
+
- Local embeddings via all-MiniLM-L6-v2 (~23MB model, auto-downloaded on first use, cached at `~/.dreb/agent/models/`)
|
|
334
|
+
|
|
335
|
+
**Ranking:** Uses POEM (Pareto-Optimal Embedding-based Multiranking) with 6 metrics: FTS5 BM25, vector cosine similarity, path match, symbol match, import graph proximity, and git recency. Short identifier queries bias toward exact text matches; long natural language queries bias toward vector similarity.
|
|
336
|
+
|
|
337
|
+
**Storage:** Project index at `.dreb/index/`, memory files indexed alongside code. Works offline after the initial model download.
|
|
338
|
+
|
|
339
|
+
**Requirements:** Node.js 22+ (uses built-in `node:sqlite`). On older Node versions the tool is silently unavailable — no crash, it simply doesn't register. Zero native addons — uses `web-tree-sitter` (WASM) and `@huggingface/transformers` (WASM).
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Customization
|
|
344
|
+
|
|
345
|
+
### Prompt Templates
|
|
346
|
+
|
|
347
|
+
Reusable prompts as Markdown files. Type `/name` to expand.
|
|
348
|
+
|
|
349
|
+
```markdown
|
|
350
|
+
<!-- ~/.dreb/agent/prompts/review.md -->
|
|
351
|
+
Review this code for bugs, security issues, and performance problems.
|
|
352
|
+
Focus on: {{focus}}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Place in `~/.dreb/agent/prompts/`, `.dreb/prompts/`, or a [package](#packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).
|
|
356
|
+
|
|
357
|
+
### Skills
|
|
358
|
+
|
|
359
|
+
On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name`, or the agent invokes them automatically via the built-in `skill` tool when a task matches.
|
|
360
|
+
|
|
361
|
+
```markdown
|
|
362
|
+
<!-- ~/.dreb/agent/skills/my-skill/SKILL.md -->
|
|
363
|
+
---
|
|
364
|
+
name: my-skill
|
|
365
|
+
description: Use this skill when the user asks about X.
|
|
366
|
+
argument-hint: "<topic>"
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
## Steps
|
|
370
|
+
1. Do this with $1
|
|
371
|
+
2. Then that
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
Skills support [content substitution](docs/skills.md#content-substitution) (`$1`, `$ARGUMENTS`, `${DREB_SKILL_DIR}`, etc.) and frontmatter fields like `argument-hint`, `user-invocable`, and `disable-model-invocation`.
|
|
375
|
+
|
|
376
|
+
Place in `~/.dreb/agent/skills/`, `~/.agents/skills/`, `.dreb/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [package](#packages) to share with others. See [docs/skills.md](docs/skills.md).
|
|
377
|
+
|
|
378
|
+
dreb ships with **mach6** — a built-in development workflow (issue → plan → push → review → fix → publish) that uses GitHub as shared memory and multi-agent code review. See [docs/mach6.md](docs/mach6.md).
|
|
379
|
+
|
|
380
|
+
### Extensions
|
|
381
|
+
|
|
382
|
+
<p align="center"><img src="docs/images/doom-extension.png" alt="Doom Extension" width="600"></p>
|
|
383
|
+
|
|
384
|
+
TypeScript modules that extend dreb with custom tools, commands, keyboard shortcuts, event handlers, and UI components.
|
|
385
|
+
|
|
386
|
+
```typescript
|
|
387
|
+
export default function (dreb: ExtensionAPI) {
|
|
388
|
+
dreb.registerTool({ name: "deploy", ... });
|
|
389
|
+
dreb.registerCommand("stats", { ... });
|
|
390
|
+
dreb.on("tool_call", async (event, ctx) => { ... });
|
|
391
|
+
}
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**What's possible:**
|
|
395
|
+
- Custom tools (or replace built-in tools entirely)
|
|
396
|
+
- Plan mode and custom agent workflows
|
|
397
|
+
- Custom compaction and summarization
|
|
398
|
+
- Permission gates and path protection
|
|
399
|
+
- Custom editors and UI components
|
|
400
|
+
- Status lines, headers, footers
|
|
401
|
+
- Git checkpointing and auto-commit
|
|
402
|
+
- SSH and sandbox execution
|
|
403
|
+
- MCP server integration
|
|
404
|
+
- Make dreb look like Claude Code
|
|
405
|
+
- Games while waiting (yes, Doom runs)
|
|
406
|
+
- ...anything you can dream up
|
|
407
|
+
|
|
408
|
+
Place in `~/.dreb/agent/extensions/`, `.dreb/extensions/`, or a [package](#packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
|
|
409
|
+
|
|
410
|
+
### Themes
|
|
411
|
+
|
|
412
|
+
Built-in: `dark`, `light`. Themes hot-reload: modify the active theme file and dreb immediately applies changes.
|
|
413
|
+
|
|
414
|
+
Place in `~/.dreb/agent/themes/`, `.dreb/themes/`, or a [package](#packages) to share with others. See [docs/themes.md](docs/themes.md).
|
|
415
|
+
|
|
416
|
+
### Packages
|
|
417
|
+
|
|
418
|
+
Bundle and share extensions, skills, prompts, and themes via npm or git.
|
|
419
|
+
|
|
420
|
+
> **Note:** Third-party packages can include extensions (arbitrary code) and skills (model instructions). Skim what you're installing, same as any other dependency.
|
|
421
|
+
|
|
422
|
+
```bash
|
|
423
|
+
dreb install npm:@foo/my-tools
|
|
424
|
+
dreb install npm:@foo/my-tools@1.2.3 # pinned version
|
|
425
|
+
dreb install git:github.com/user/repo
|
|
426
|
+
dreb install git:github.com/user/repo@v1 # tag or commit
|
|
427
|
+
dreb install git:git@github.com:user/repo
|
|
428
|
+
dreb install git:git@github.com:user/repo@v1 # tag or commit
|
|
429
|
+
dreb install https://github.com/user/repo
|
|
430
|
+
dreb install https://github.com/user/repo@v1 # tag or commit
|
|
431
|
+
dreb install ssh://git@github.com/user/repo
|
|
432
|
+
dreb install ssh://git@github.com/user/repo@v1 # tag or commit
|
|
433
|
+
dreb remove npm:@foo/my-tools
|
|
434
|
+
dreb uninstall npm:@foo/my-tools # alias for remove
|
|
435
|
+
dreb list
|
|
436
|
+
dreb update # skips pinned packages
|
|
437
|
+
dreb config # enable/disable extensions, skills, prompts, themes
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
Packages install to `~/.dreb/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.dreb/git/`, `.dreb/npm/`). If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `["mise", "exec", "node@20", "--", "npm"]`.
|
|
441
|
+
|
|
442
|
+
Create a package by adding a `dreb` key to `package.json`:
|
|
443
|
+
|
|
444
|
+
```json
|
|
445
|
+
{
|
|
446
|
+
"name": "my-dreb-package",
|
|
447
|
+
"keywords": ["dreb-package"],
|
|
448
|
+
"dreb": {
|
|
449
|
+
"extensions": ["./extensions"],
|
|
450
|
+
"skills": ["./skills"],
|
|
451
|
+
"prompts": ["./prompts"],
|
|
452
|
+
"themes": ["./themes"]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Without a `dreb` manifest, dreb auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).
|
|
458
|
+
|
|
459
|
+
See [docs/packages.md](docs/packages.md).
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
## Programmatic Usage
|
|
464
|
+
|
|
465
|
+
### SDK
|
|
466
|
+
|
|
467
|
+
```typescript
|
|
468
|
+
import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "@dreb/coding-agent";
|
|
469
|
+
|
|
470
|
+
const { session } = await createAgentSession({
|
|
471
|
+
sessionManager: SessionManager.inMemory(),
|
|
472
|
+
authStorage: AuthStorage.create(),
|
|
473
|
+
modelRegistry: new ModelRegistry(authStorage),
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
await session.prompt("What files are in the current directory?");
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
|
|
480
|
+
|
|
481
|
+
### RPC Mode
|
|
482
|
+
|
|
483
|
+
For non-Node.js integrations, use RPC mode over stdin/stdout:
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
dreb --mode rpc
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
RPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.
|
|
490
|
+
|
|
491
|
+
See [docs/rpc.md](docs/rpc.md) for the protocol.
|
|
492
|
+
|
|
493
|
+
---
|
|
494
|
+
|
|
495
|
+
## CLI Reference
|
|
496
|
+
|
|
497
|
+
```bash
|
|
498
|
+
dreb [options] [@files...] [messages...]
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Package Commands
|
|
502
|
+
|
|
503
|
+
```bash
|
|
504
|
+
dreb install <source> [-l] # Install package, -l for project-local
|
|
505
|
+
dreb remove <source> [-l] # Remove package
|
|
506
|
+
dreb uninstall <source> [-l] # Alias for remove
|
|
507
|
+
dreb update [source] # Update packages (skips pinned)
|
|
508
|
+
dreb list # List installed packages
|
|
509
|
+
dreb config # Enable/disable package resources
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
### Modes
|
|
513
|
+
|
|
514
|
+
| Flag | Description |
|
|
515
|
+
|------|-------------|
|
|
516
|
+
| (default) | Interactive mode |
|
|
517
|
+
| `-p`, `--print` | Print response and exit |
|
|
518
|
+
| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |
|
|
519
|
+
| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
|
|
520
|
+
| `--export <in> [out]` | Export session to HTML |
|
|
521
|
+
|
|
522
|
+
In print mode, dreb also reads piped stdin and merges it into the initial prompt:
|
|
523
|
+
|
|
524
|
+
```bash
|
|
525
|
+
cat README.md | dreb -p "Summarize this text"
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
### Model Options
|
|
529
|
+
|
|
530
|
+
| Option | Description |
|
|
531
|
+
|--------|-------------|
|
|
532
|
+
| `--provider <name>` | Provider (anthropic, openai, google, etc.) |
|
|
533
|
+
| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
|
|
534
|
+
| `--api-key <key>` | API key (overrides env vars) |
|
|
535
|
+
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
536
|
+
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
|
|
537
|
+
| `--list-models [search]` | List available models |
|
|
538
|
+
|
|
539
|
+
### Session Options
|
|
540
|
+
|
|
541
|
+
| Option | Description |
|
|
542
|
+
|--------|-------------|
|
|
543
|
+
| `-c`, `--continue` | Continue most recent session |
|
|
544
|
+
| `-r`, `--resume` | Browse and select session |
|
|
545
|
+
| `--session <path>` | Use specific session file or partial UUID |
|
|
546
|
+
| `--fork <path>` | Fork specific session file or partial UUID into a new session |
|
|
547
|
+
| `--session-dir <dir>` | Custom session storage directory |
|
|
548
|
+
| `--no-session` | Ephemeral mode (don't save) |
|
|
549
|
+
|
|
550
|
+
### Tool Options
|
|
551
|
+
|
|
552
|
+
| Option | Description |
|
|
553
|
+
|--------|-------------|
|
|
554
|
+
| `--tools <list>` | Comma-separated list of tools to enable (default: all) |
|
|
555
|
+
| `--no-tools` | Disable all built-in tools (extension tools still work) |
|
|
556
|
+
|
|
557
|
+
Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`, `web_search`, `web_fetch`, `subagent`
|
|
558
|
+
|
|
559
|
+
Three additional tools are always active but don't appear in `--tools`:
|
|
560
|
+
- `search` — [semantic codebase search](#semantic-search) using natural language queries
|
|
561
|
+
- `skill` — invokes [skills](#skills) programmatically
|
|
562
|
+
- `tasks_update` — session [task tracking](#task-tracking) with TUI panel
|
|
563
|
+
|
|
564
|
+
### Resource Options
|
|
565
|
+
|
|
566
|
+
| Option | Description |
|
|
567
|
+
|--------|-------------|
|
|
568
|
+
| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
|
|
569
|
+
| `--no-extensions` | Disable extension discovery |
|
|
570
|
+
| `--skill <path>` | Load skill (repeatable) |
|
|
571
|
+
| `--no-skills` | Disable skill discovery |
|
|
572
|
+
| `--prompt-template <path>` | Load prompt template (repeatable) |
|
|
573
|
+
| `--no-prompt-templates` | Disable prompt template discovery |
|
|
574
|
+
| `--theme <path>` | Load theme (repeatable) |
|
|
575
|
+
| `--no-themes` | Disable theme discovery |
|
|
576
|
+
|
|
577
|
+
Combine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).
|
|
578
|
+
|
|
579
|
+
### Other Options
|
|
580
|
+
|
|
581
|
+
| Option | Description |
|
|
582
|
+
|--------|-------------|
|
|
583
|
+
| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |
|
|
584
|
+
| `--append-system-prompt <text>` | Append to system prompt |
|
|
585
|
+
| `--verbose` | Force verbose startup |
|
|
586
|
+
| `--offline` | Disable startup network ops (same as `DREB_OFFLINE=1`) |
|
|
587
|
+
| `-h`, `--help` | Show help |
|
|
588
|
+
| `-v`, `--version` | Show version |
|
|
589
|
+
|
|
590
|
+
### File Arguments
|
|
591
|
+
|
|
592
|
+
Prefix files with `@` to include in the message:
|
|
593
|
+
|
|
594
|
+
```bash
|
|
595
|
+
dreb @prompt.md "Answer this"
|
|
596
|
+
dreb -p @screenshot.png "What's in this image?"
|
|
597
|
+
dreb @code.ts @test.ts "Review these files"
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
### Examples
|
|
601
|
+
|
|
602
|
+
```bash
|
|
603
|
+
# Interactive with initial prompt
|
|
604
|
+
dreb "List all .ts files in src/"
|
|
605
|
+
|
|
606
|
+
# Non-interactive
|
|
607
|
+
dreb -p "Summarize this codebase"
|
|
608
|
+
|
|
609
|
+
# Non-interactive with piped stdin
|
|
610
|
+
cat README.md | dreb -p "Summarize this text"
|
|
611
|
+
|
|
612
|
+
# Different model
|
|
613
|
+
dreb --provider openai --model gpt-4o "Help me refactor"
|
|
614
|
+
|
|
615
|
+
# Model with provider prefix (no --provider needed)
|
|
616
|
+
dreb --model openai/gpt-4o "Help me refactor"
|
|
617
|
+
|
|
618
|
+
# Model with thinking level shorthand
|
|
619
|
+
dreb --model sonnet:high "Solve this complex problem"
|
|
620
|
+
|
|
621
|
+
# Limit model cycling
|
|
622
|
+
dreb --models "claude-*,gpt-4o"
|
|
623
|
+
|
|
624
|
+
# Read-only mode
|
|
625
|
+
dreb --tools read,grep,find,ls -p "Review the code"
|
|
626
|
+
|
|
627
|
+
# High thinking level
|
|
628
|
+
dreb --thinking high "Solve this complex problem"
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
### Environment Variables
|
|
632
|
+
|
|
633
|
+
| Variable | Description |
|
|
634
|
+
|----------|-------------|
|
|
635
|
+
| `DREB_CODING_AGENT_DIR` | Override config directory (default: `~/.dreb/agent`) |
|
|
636
|
+
| `DREB_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |
|
|
637
|
+
| `DREB_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |
|
|
638
|
+
| `DREB_OFFLINE` | Disable startup network ops (same as `--offline`) |
|
|
639
|
+
| `VISUAL`, `EDITOR` | External editor for Ctrl+G |
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
## Contributing & Development
|
|
644
|
+
|
|
645
|
+
See [docs/development.md](docs/development.md) for setup, forking, and debugging.
|
|
646
|
+
|
|
647
|
+
---
|
|
648
|
+
|
|
649
|
+
## License
|
|
650
|
+
|
|
651
|
+
MIT
|
|
652
|
+
|
|
653
|
+
## See Also
|
|
654
|
+
|
|
655
|
+
- `packages/ai` — Core LLM toolkit (model registry, provider APIs, streaming)
|
|
656
|
+
- `packages/agent` — Agent framework (agent loop, event system, types)
|
|
657
|
+
- `packages/tui` — Terminal UI components
|