跳到正文
Hacker News· rbinar·· 7 天前AI 评分58

CLI-Dispatch 发布:在 Claude Code 中把任务委派给 Codex、Gemini、DeepSeek

Show HN: CLI-Dispatch – Delegate Claude Code Tasks to Codex, Gemini, DeepSeek

AI 导读

CLI-Dispatch 是一个 Claude Code 插件,可把任务交给 DeepSeek、Gemini(Antigravity)、OpenAI Codex、OpenCode(OpenRouter)或 GitHub Copilot 这五个 CLI 作为 worker 执行。

正文 · AI 翻译

🌐 语言: English · Türkçe

把 Claude Code 的工作交给 DeepSeek、Gemini(Antigravity)、OpenAI Codex、OpenCode(OpenRouter)或 GitHub Copilot。 Claude Code 自带的子代理只能运行 Anthropic 模型;cli-dispatch 可在你的 claude 会话内将这五个 CLI 作为工作器运行。确定性的运行器会把每个任务隔离在 git worktree 中,运行你的验证命令并返回简短结论,因此由工作器干活,Claude Code 负责审查。

cli-dispatch demo: install, setup, doctor, ask, delegate, run, sessions and resume, gain and clean — every output recorded in a clean Debian container

▶️ 视频:English · Türkçe · 📝 文章(土耳其语,Medium)

安装

在 Claude Code 中运行以下命令(先输入 claude),一次一条:

/plugin marketplace add rbinar/cli-dispatch
/plugin install cli-dispatch@cli-dispatch
/reload-plugins
/cli-dispatch:setup

安装程序会询问你要哪些后端并安装它们的包装器。API 密钥填入本地浏览器表单,绝不经过 Claude。用 /cli-dispatch:doctor 检查结果。各后端的 CLI、登录和模型:安装。

使用

直接提问即可。 Claude 会把任务交给 cli-dispatch:runner 代理,由它运行工作器、验证结果并返回补丁供审查:

add() in math.mjs is broken. Delegate the fix to DeepSeek, verify with node --test.

▶️ 端到端示例(mp4):Claude 把一个失败的测试交给 Codex,你打开 cli-dispatch:runner 代理即可看到它收到的确切提示词,然后 Claude 应用已验证的补丁。在沙箱容器中实时录制。

cx-delegation-harness.mp4

自己运行。 编排不消耗任何 LLM token:

/cli-dispatch:run cx "Fix add() in math.mjs" --verify 'node --test'

提一个一次性问题。 只读,不修改仓库:

/cli-dispatch:ask ds "Explain what this regex matches: ^\d{3}-\d{4}$"

后端:ds DeepSeek · ag Antigravity · cx Codex · oc OpenCode · cp Copilot。这 12 条命令由 /cli-dispatch:help 列出;详情见 命令。

⚠️ 工作器可以写文件并运行命令。在你应用补丁之前,真实的仓库操作都留在 git worktree 中(安全与数据)。

更新

/plugin update cli-dispatch
/reload-plugins
/cli-dispatch:setup

重新运行安装程序会刷新 ~/.local/bin 中的包装器,而 /plugin update 不会改动它们。

文档

安装 · 命令 · 确定性运行器 · 会话 · 策略注入 · 状态栏 · 用量与配额 · 功能 · 内部机制 · Windows · 安全 · 卸载 · 终端参考 · 更新日志

许可证

MIT,见 LICENSE。

来源:Hacker News · github.com