ClaudeSoftwareShipping codeAI score · 73/100AI-assisted edit · no obvious prompt-injection riskX

Claude Code + opencode CLI: Offload Heavy Work to DeepSeek

Configure opencode CLI in Claude Code's Opus to delegate testing and heavy tasks to DeepSeek V4.1 Flash

Some experienceStepsPromptTip
Who
Developers using Claude Code who want to reduce Opus quota consumption and speed up repetitive work like testing
You get
Author reports test time dropped from hours to under 30 minutes, with over 80% quota savings
You need
Claude Code · DeepSeek

Constraints

Prerequisites: Claude Code installed with Opus access; opencode CLI installed; DeepSeek API key available. Give Opus the prompt to use the local opencode CLI to call DeepSeek V4.1 Flash as a sub-agent for non-design/architecture/complex-algorithm tasks.

What they did

Author M_NU11 used Opus in Claude Code to delegate testing and heavy tasks to DeepSeek V4.1 Flash via the locally installed opencode CLI. Opus handles design, architecture, and complex algorithms; DeepSeek handles the rest.

How it went

Author reported: test time dropped from several hours to under half an hour; saved more than 80% quota; DeepSeek's execution far exceeds Sonnet 5.5, Haiku 5.5, and GPT-6 Luna when boundaries are clear; gets things done faster and without errors. (Source: author self-report, unverified)

Worth knowing

The opencode CLI was a leftover from a previous subscription; current availability and installation method unknown. DeepSeek API is billed separately from Claude quota. Performance comparisons are personal experience, not independently tested. The author emphasizes that prompts must be detailed with clear boundaries, otherwise effectiveness may degrade.

Steps

  1. Install opencode CLI

    Install the opencode CLI tool. The author used a leftover CLI program from a previous subscription. Refer to opencode official documentation for current installation instructions.

  2. Configure DeepSeek API Key

    Configure your DeepSeek API key in the opencode CLI to enable calling DeepSeek V4.1 Flash.

  3. Use Delegation Prompt in Opus

    In Claude Code, have Opus use the following prompt to assign tasks to DeepSeek.

    Execution prompt · Source text。Claude Code conversation input for Opus, as task delegation instruction

    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.

Prompt you can copy

Reference prompt · Source text。Confirm the destination, input variables and output format before use.

This block is the prompt. Ads are never placed here.

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.

Feed the source prompt directly to Opus as an execution instruction; no additional main prompt needed

Source

让 Claude Code 里的 Opus 通过本地 opencode CLI 把测试等重活派给 DeepSeek,省下 80% 以上额度 · M_NU11 · X · 2026-10-18T10:03:33.000Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related