KanoNoUta/dsh-captain

DeepSeek Harness 的 Captain 插件:GPT 规划、DeepSeek 工作者、独立审查、自适应多代理编排

Project Overview项目介绍

dsh-captain is a native DeepSeek Harness plugin that exposes a synthetic captain model route for multi-agent code development tasks. It uses GPT models as planners and independent reviewers, while DeepSeek models act as workers that make incremental changes to user code repositories. To install the plugin directly to a DSH web profile, run the command dsh plugin --profile web add github:KanoNoUta/dsh-captain in your terminal. For source development inside a local DeepSeek Harness checkout, you need to add it as a git submodule, apply the integration patch, install dependencies, and build the plugin bundle.

After you select the captain model route, the plugin first calls the configured GPT planner to generate a JSON dependency DAG for the user’s requested task. Workers with disjoint file ownership run concurrently within your configured token budget and adaptive parallel limit. A worker that produces two consecutive invalid DSML tool call responses will fail the entire current task. A passing review by the independent GPT reviewer is required before advancing to the next task step. This plugin is designed for DSH users who want to leverage multi-model collaboration for complex code development tasks.

This plugin is released under the open-source MIT license, with no associated usage cost for personal or commercial use. It relies on users pre-configuring valid credentials for OpenAI-compatible GPT routes and DeepSeek routes in DSH, and does not implement its own OAuth or separate credential storage. Current known limitations include that checkpoints only store Git HEAD and diff metadata in process memory, so they are not persisted between DSH sessions. Untracked files are automatically shared with the reviewer, and workers without an attached parent agent cannot modify the workspace via tools.

这是一个专为DeepSeek Harness开发的原生插件,提供了一个合成的captain模型路由,采用GPT作为规划者和独立评审者,DeepSeek工作模型负责完成代码仓库的增量修改。它自带包清单和入口点,可以直接通过DSH的插件命令从GitHub安装到Web配置文件,安装命令为dsh plugin --profile web add github:KanoNoUta/dsh-captain。源码开发则需要添加子模块并应用集成补丁后构建。

典型工作流是用户选择captain路由后,插件先调用规划器生成JSON依赖有向无环图,文件不重叠的工作任务会在设定的令牌预算和自适应并发限制下并行执行。如果工作者两次输出都不符合DSML工具调用规范,任务会直接失败;评审环节会接收验收标准、工作结果和当前Git增量差异,通过评审后才会进入下一步。它适合需要多模型协作完成代码开发与修改任务的DeepSeek Harness用户使用。

本插件遵循MIT许可,无额外使用成本,依赖用户预先在DSH中配置好OpenAI兼容的GPT路由和DeepSeek路由的凭证,不需要额外实现OAuth或二次存储凭据。当前版本的检查点仅将Git HEAD和差异元数据保存在进程内存中,不支持持久化会话,未追踪的文件会提供给评审者,没有父代理的工作者无法通过工具修改工作区。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:KanoNoUta/dsh-captain

把 KanoNoUta/dsh-captain 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@kanonouta/dsh-captain

English | 中文

Captain is a dual-face DeepSeek Harness plugin that exposes one synthetic captain model route. GPT is the planner and independent reviewer, while DeepSeek workers make the incremental repository changes.

Install into DeepSeek Harness

Captain ships its bundle manifest and built Host/Client entry points, so a Web profile can install it directly from GitHub:

dsh plugin --profile web add github:KanoNoUta/dsh-captain

For source development inside a DeepSeek Harness checkout:

cd F:\path\to\deepseek-harness
git submodule add https://github.com/KanoNoUta/dsh-captain.git packages/extensions/captain
git apply packages/extensions/captain/patches/deepseek-harness-integration.patch
pnpm install
pnpm exec tsc -b packages/extensions/captain/tsconfig.host.json --pretty false
pnpm --filter @kanonouta/dsh-captain run bundle

The optional source integration patch adds both TypeScript compiler faces and keeps official DeepSeek and OpenCode DeepSeek routes distinguishable in the native model selector. Normal dsh plugin add installation uses cordis.patch.yml and does not require that patch.

Composition

The Host registers captain through the normal LLM adapter directory, so the existing model selector renders a route such as GPT-5.6 Terra -> DeepSeek V4 Flash beside ordinary providers. The route id is captain:<planner-model>-><worker-model> and the model entry advertises text and image input plus Balanced, High Quality, and Ultra reasoning efforts.

Captain resolves each nested provider/model route before dispatch. A policy effort is downgraded to the strongest effort that route advertises, while routes with no selectable reasoning effort receive no effort field.

Captain calls the configured provider routes through the existing OpenAI-compatible LLM adapters. It does not implement OAuth or a second credential store; configure relay providers in the normal LLM settings and reference their provider and model ids from the Captain settings namespace.

The planner returns a JSON dependency DAG. Workers with disjoint file ownership run concurrently under the configured token budget and adaptive parallel limit. A worker response that contains only unexecuted DSML tool-call markup receives one correction attempt; a second such response fails the task. Worker execution failures stop before review and repair. A reviewer receives the acceptance criteria, worker reports, and the current incremental Git diff, and receives one strict JSON correction attempt after a malformed response. A failed code review selects only tasks named by findings for repair; an unscoped finding rechecks the full plan. A passing review advances the in-memory checkpoint used by the next run.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-lark-channel 下一个 Next dsh-session-buddy →