DeepSeek Harness 插件

dsh-swarm

BSP coding swarm plugin for DeepSeek Harness: nested 3-tier swarms (root + squad leads on deepseek-v4-pro, up to 100 concurrent workers on deepseek-v4-flash) with barrier-synchronized phases(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Makoveli89/dsh-swarm
最近更新
2026年8月19日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/Makoveli89/dsh-swarm
插件名:dsh-swarm
作者:Makoveli89

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-swarm

BSP coding swarm plugin for DeepSeek Harness — nested, barrier-synchronized coding swarms of 100+ concurrent agents tiered across DeepSeek V4 models.

  • 1 root planner (deepseek-v4-pro) → 2–16 squad leads (deepseek-v4-pro) → 4–16 workers each (deepseek-v4-flash, default fan-out 10×10 = 100 workers)
  • Five BSP phases (partition → planning → execution → synthesis → integration), each closed by a barrier with a straggler deadline — no agent reads another agent's mid-phase output
  • Write isolation: one git worktree per squad + a tiered region-ownership map enforced by the sandbox policy
  • Guardrail permissions: in-grant actions auto-approve; out-of-grant escalate to the root planner; dangerous/budget actions escalate to you
  • Budget discipline: per-tier pricing (pro $1.32/M in, flash $0.0826/M in), 90% pre-escalation, hard mission cap
  • Cache-stable prefixes: byte-identical worker prefixes per squad ride one DeepSeek prefix-cache entry — a 100-worker mission lands at roughly $10–30
  • Checkpoint/resume at every barrier

Install

dsh plugin add github:Makoveli89/dsh-swarm

This runs pnpm in your DSH profile and reconciles the bundle layer: the five swarm rows (engine, context, worktree, guard, tool) join your profile's composition. It needs a profile whose base bundles provide the subagent spawn backend, the LLM route, and the token meter (the default DSH profile does).

Mount the mode

Copy the preset into your agent-presets directory:

mkdir -p "${DSH_HOME:-$HOME/.dsh}/.agent-presets/swarm"
cp preset.yml agent.cordis.yml "${DSH_HOME:-$HOME/.dsh}/.agent-presets/swarm/"

Then select the DeepSeek Coding Swarm preset for a session (or mount it as your standing preset). The session agent gains the swarm tool.

Use

swarm launch — repo: /absolute/path/to/repo, brief: "implement the TODOs in src/queue"
swarm status — missionId: <id>
swarm pause | resume | cancel | continue — missionId: <id>
swarm answer — escalationId: <id>, decision: <allow | reject | raise-cap>

Missions run asynchronously: after launch, monitor with swarm status and react to swarm/* events. Defaults: 10×10 fan-out, $30 hard budget cap, per- phase deadlines 5m/5m/20m/5m/5m — all overridable per launch or in the row config.

Packages

PackageRolectx key
@deepseek-ai/dsh-swarmService definition + engine (BSP barriers, region ownership, budget, checkpoints, swarm/* events)ctx.swarmEngine
@deepseek-ai/dsh-swarm-contextCache-stable prefix compositor + role personasctx.swarmContext
@deepseek-ai/dsh-swarm-worktreePer-squad git worktree leasesctx.swarmWorktree
@deepseek-ai/dsh-swarm-guardCapability grants + escalation verdictsctx.swarmGuard
@deepseek-ai/dsh-tool-swarmModel-facing mission toolregisters on ctx.tools

Verification

Developed in the harness monorepo (PR: deepseek-ai/deepseek-harness): 117 tests, 100% per-file coverage, host typecheck and oxlint clean, and a 100-concurrent-worker load run over the barrier. Live-mission acceptance (real-model cache-hit ratio and spend) is documented in the subsystem doc there.

License

MIT. The cache-stable-prefix doctrine and planner/executor tiering are adopted from DeepSeek-Reasonix (MIT); no code was imported.