dsh-solo-agent
Manifest validDSH plugin: injects the `solo` preset into the user's agent-presets, optimizing context usage and model scheduling.
dsh-solo-agent
DSH 插件:向用户 agent-presets 注入 solo preset,优化上下文占用和模型调度。
核心设计
- Solo 主 agent 是纯编排者:
- 模型可见目录里没有
bash/pwsh/read/write/edit/glob/grep/str_replace_editor。 - 只保留
ask_user_question、todo_write、skill和 4 个前台 subagent 工具。 - shell / fs / web 工具在 preset 层挂载供子代理使用,由
solo-bootstrap.mjs对主 agent 隐藏。
- 模型可见目录里没有
- 闭环调度:
subagent_explore初始化一次,产出 target tests / test command / root-cause。- 最多 5 轮:
subagent_editor修改 →subagent_general跑测试并返回原始输出 → Solo 只依据原始测试输出决策。 - 大改动/高风险且测试通过后,
subagent_verify做对抗性验证。
- 子代理 minimal 锚定:借鉴
anchored-standard,只对delegationDepth > 0的子代理生效;Solo 主 agent 不受锚定。 - 压缩:
dsh-compaction-basic+dsh-compaction-tool-result-pruner+dsh-command-compact全开。
项目结构
dsh-solo-agent/
├── package.json # bundle 插件元数据 + dsh.bundle.patch
├── dsh.plugin.json # 插件清单,contributes.presets = ["solo"]
├── cordis.patch.yml # 挂载 dsh-solo-agent 插件行
├── lib/
│ ├── index.js # apply(): 写入/更新 ~/.dsh/.agent-presets/solo
│ ├── preset-renderer.js # 生成 agent.cordis.yml / preset.yml
│ └── roles.js # 角色注册表(persona + toolFilter)
├── templates/
│ ├── solo-bootstrap.mjs # 子代理 minimal 锚定 + 主 agent 目录过滤
│ ├── compaction-epoch.mjs # 压缩后重新锚定的 epoch 跟踪
│ └── custom-bash.mjs # Windows 下注册 bash 工具
├── scripts/
│ └── package-registry.mjs # 生成 registry/ 本地注册表安装包
└── test/ # node --test 测试
角色
| toolName | 职责 | 可见工具(toolFilter.allow) | skill |
|---|---|---|---|
subagent_explore | 只读研究,产出 target tests / test command / root-cause | read, read_image, glob, grep, bash, web_search, web_fetch | 无 |
subagent_editor | 聚焦编辑,不自测 | read, write, edit, str_replace_editor, glob, grep, bash | 无 |
subagent_verify | 对抗性验证,返回 PASS/FAIL/PARTIAL | read, read_image, glob, grep, bash, skill | 有 |
subagent_general | 杂活/测试执行,返回原始输出 | read, write, edit, str_replace_editor, glob, grep, bash, web_search, web_fetch, skill | 有 |
角色注册表在 lib/roles.js,后续加角色只需新增一条记录。
开发
npm test
npm run package:registry
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 156/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 8.6k
↓ 6.1k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 6.2k
MIT
Python
Oct 7, 2026
by dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 6.1k
↓ 112.4k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile web add dshmarketby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 5k
NOASSERTION
Python
Oct 11, 2026
dsh plugin --profile web add treg-dsh