hongyue0721/dsh-kimicode-swarm
Kimi-Code-style swarm: batch-parallel subagent dispatch with adaptive scheduling, a /swarm command, and in-chat live progress rows.
dsh-kimicode-swarm is a port of Kimi Code Swarm mode into DeepSeek Harness: batch parallel subagent scheduling. The main agent splits a task into independent subtasks and swarm_batch dispatches them in one batch (up to 128 items, each item optionally carrying its own model/type), the subagents run in parallel, and the results are aggregated, with resume_agent_ids to resume unfinished work. It uses adaptive scheduling (5 concurrent launches then +1 every 700ms, exponential backoff on rate limits with capacity shrink/recovery, user cancellation preserving completed results, and a per-task timeout that fails only that task) and renders in-chat live progress rows -- one status line per subagent (queued / running / completed) over a same-origin SSE route (/swarm-events). A /swarm <task> command runs one-shot Swarm mode (explore, split, dispatch, summarize, exit). Model assignment is three-level: per-item/batch explicit model > settings mapping table (by type) > inherit the caller's model.
Install
dsh plugin --profile web add dsh-kimicode-swarmPublished to npm as dsh-kimicode-swarm 0.1.2 (registry re-verified 2026-09-30; repository field back-links to github.com/hongyue0721/dsh-kimicode-swarm, MIT); the one-line dsh plugin --profile web add dsh-kimicode-swarm is equivalent to pnpm add dsh-kimicode-swarm. GitHub (pnpm add github:hongyue0721/dsh-kimicode-swarm) and local (pnpm add file:/path/...) forms are also documented. Restart dsh web after installing; the swarm_batch tool and /swarm command appear in new sessions.
Compatibility
DeepSeek Harness Web GUI. The README notes the settings-page card is currently unavailable because dsh-host-apiproxy hard-codes WEB_SETTINGS_NAMESPACES (a known family-wide host-whitelist issue), so configure via the profile patch entry config or the swarm: section of ~/.dsh/settings.yaml. Subagents do not stream intermediate tokens while running. 48 unit tests ship in the repo.
Details
- Repo: hongyue0721/dsh-kimicode-swarm
- Category: Workflow & Automation
- Stars: 0
- Version: npm dsh-kimicode-swarm 0.1.2 (registry re-verified 2026-09-30); MIT
- Last push: 2026-08-28
- First seen: 2026-08-15
Recent updates
The README documents the host/browser halves, the decision to ride progress on a dedicated SSE route rather than session events (rc.8 rejects out-of-vocabulary session events on read, keeping the session log clean), the framework-free core/ scheduler tested with injected fakes, and the swarm: settings section (enabled, announceToAgent, modelMappingEnabled, modelMapping).
FAQ
- How do I install dsh-kimicode-swarm?
- Run dsh plugin --profile web add dsh-kimicode-swarm (equivalent to pnpm add dsh-kimicode-swarm), then restart dsh web; the swarm_batch tool and /swarm command appear in new sessions.
- How many subtasks can run at once?
- Per the README, swarm_batch accepts 2-128 items and schedules adaptively -- 5 concurrent launches up front then +1 every 700ms, with exponential backoff on rate limits and adaptive capacity shrink/recovery.
- Can I configure it in the GUI?
- Not yet. The README states the settings-page card renders an unavailable state because the host hard-codes WEB_SETTINGS_NAMESPACES; configure via the profile patch entry config or the swarm: section of ~/.dsh/settings.yaml.
Alternatives
february2015/dsh-taskswarm · aaravarr/dsh-subagent-max · Mombrane/dsh-subagent-monitor