Claude Code + opencode CLI 委派 DeepSeek 处理重活
在 Claude Code 的 Opus 中配置 opencode CLI,将测试等繁重任务委派给 DeepSeek V4.1 Flash 执行
- 给谁
- 使用 Claude Code 的开发者,希望降低 Opus 额度消耗并加速测试等重复工作
- 你会得到
- 作者报告测试耗时从数小时降至半小时内,额度节省超 80%
- 你需要
- Claude Code · DeepSeek
硬约束
前置条件:已安装 Claude Code 并有 Opus 访问权限;需安装 opencode CLI 并拥有 DeepSeek API key。将提示词交给 Opus,使其通过本地 opencode CLI 调用 DeepSeek V4.1 Flash 作为子代理处理非设计/架构/复杂算法类任务。
他们做了什么
作者 M_NU11 在 Claude Code 中使用 Opus,通过本地安装的 opencode CLI 工具,将测试等繁重任务委派给 DeepSeek V4.1 Flash 执行。Opus 负责设计、架构和复杂算法,其余重活由 DeepSeek 处理。
效果如何
作者报告:测试耗时从数小时降至半小时内;额度节省超过 80%;DeepSeek 在边界清晰时执行效果远超 Sonnet 5.5、Haiku 5.5 和 GPT-6 Luna;完成更快且未出现错误。(来源:作者自述,未经验证)
值得知道
opencode CLI 为作者此前订阅遗留,当前是否仍可直接安装使用未知;DeepSeek API 需另行计费,不与 Claude 额度合并;效果对比为个人体验,未经过独立测试验证;作者强调提示词需要详细且边界清晰,否则效果可能下降。
步骤
安装 opencode CLI
安装 opencode CLI 工具。作者使用的是此前订阅遗留的 CLI 程序,未清理。具体安装方式请参考 opencode 官方文档。
配置 DeepSeek API Key
在 opencode CLI 中配置你的 DeepSeek API key,使其能够调用 DeepSeek V4.1 Flash。
在 Opus 中使用委派提示词
在 Claude Code 中让 Opus 使用以下提示词,将任务分配给 DeepSeek 执行。
运行提示词 · 来源原文。Claude Code 中 Opus 的对话输入,作为任务委派指令
Use the local opencode CLI (your agent tool), with DeepSeek V4.1 Flash from your provider in it, in place of sub-agents to help you with the heavy work other than design, architecture and complex algorithms (including testing, etc.). You need to make the prompts detailed with clear boundaries.
可复制提示词
参考提示词 · 来源原文。使用前确认粘贴位置、输入变量及输出格式。
这一段是提示词,页面不会在这里插入广告。
Use the local opencode CLI (your agent tool), with DeepSeek V4.1 Flash from your provider in it, in place of sub-agents to help you with the heavy work other than design, architecture and complex algorithms (including testing, etc.). You need to make the prompts detailed with clear boundaries.
将 source 提示词直接交给 Opus 作为执行指令;无需额外主提示词
来源
让 Claude Code 里的 Opus 通过本地 opencode CLI 把测试等重活派给 DeepSeek,省下 80% 以上额度 · M_NU11 · X · 2026-10-18T10:03:33.000Z
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。