r/CommandCode • • 3d ago

How are u using Claude Code + DeepSeek V4.1 Flash together?

I'm been trying to figure out a good setup where Claude Code handles planning/orchestration and DeepSeek V4.1 Flash 1017 does most of the actual coding. Got the $10 Command Code Goat subscription and I'm using Pi inside T3 Code, alongside Claude Code (Pro) and Codex (Plus).

The idea is to have Claude break down tasks and guide the implementation, DeepSeek do the heavy lifting, and occasionally use GPT models for reviewing the changes. Basically trying to reduce Claude usage without sacrificing quality.

How are you guys actually setting this up? Are you using CLAUDE.md instructions, skills, subagents or some MCP/CLI integration to make Claude delegate automatically? Or do you just manually tell Claude to hand off tasks? Would be great to see some actual configs or workflows that are working well.

9 Upvotes

16 comments sorted by

1

u/Money-String4165 3d ago

Claude code is on the same box as my hermes. Hermes has deepseek flash 4.1 1017 as the default model. Fable or Opus can spin that up whenever they want. They sip tokens orchestrating/planning then letting cheap models execute the plan perfectly. DM me if you need anything.

1

u/Wherearemyquartz 3d ago

I'm using T3 code. I have Claude Code set up, as well as a Pi coding agent, in which I have connected Command Code's goat plan, and DeepSeek V4.1 Flash is there on it. Now, in T3, the session model, I am setting it either as Opus 5.5 or Sonnet 5.5. I am telling it what needs to be done, and at the end, I am currently entering "delegate." You are supposed to do the planning and guide Pi DeepSeek V4.1 Flash in doing the task, so you have to delegate the tasks to it.

I want to automate the process where I can define the rules. For example, the roles can be refactoring, bug fix, review, hill climb, planning, Y, etc. These are all of these things that we do, and for each of these roles, I want to define which model and thinking effort to use. Similar to pstack model routing. But if I create the model routing file and I mention in the append system prompt, " to always follow the model routing," the subagents can also be using the same thing. It might create more and more subagents, so I don't want that.

2

u/MiraiHatada 3d ago

Custom deepseek runner / auto codex reviewer programmed in Rust, claude will do in a day or two, at least mine did. It does communicate with headless dsh and codex cli (with json stream), automatically until codex gives a LGTM. Well, in fact a lot more comprecated thIngs with determInistic reviewing/feedback/dispute, but basically just cli wrapper to start with, and it doesn't make workflow mistakes unlike MCP/skills task management bullshit. Again, claude will do the whole system in a day so don't hesitate! Let all your possible workflow be coded.

1

u/Wherearemyquartz 3d ago

Is there a repo I can review and replicate?

1

u/MiraiHatada 3d ago

Sry no. It's too much combined to my actual project and its domain knowledge. I suppose somebody would have a similar thing opensource but since hardcoding your workflow is damn easy today I still recommend that way

1

u/Money-String4165 3d ago

Yes you just tell it what you want and work with it until it’s accomplished. Claude cooks for me

3

u/Legitimate_Fan_3240 3d ago

Yo uso Claude para planificar y auditar y command code lo uso para hacer código 🗿

2

u/bigheartenergy17 3d ago

I use a hook. When Claude calls a tool, the hook triggers and asks Claude to evaluate whether the specific tasks it's trying to do is better off handed to DeepSeek. Saves me a lot of tokens and I can sometimes even last 5 hours of coding on the 20-dollar plan.

1

u/Lovelywanz 3d ago

How to setup deepseek model in claude code? I'm facing this error.
I asked Gemini and it said CommandCode only support OpenAI Chat Completions format for Deepseek model, but Claude only recognize Anthropic Messages format.

1

u/Dismal-Appearance-46 2d ago

I would personally keep them seperate working inside the same git, claude code orchestrating dsv4.1f through review comments and handoff files. Personally thats works best for me.

but to answer you question, i have a kind of answer maybe?? but i think the first in deepseek/deepseek should be the provider name no? anytime I have had issues its because I didnt put commandcode in front

1

u/PerfectReflection155 3d ago

I am using pi chamber with Claude oauth bridge so I can use everything there.

Haven’t heard of Claude code and deepseek together. Claude code is also quite bloated compared to pi. 80k context filled on first turn for me compared to 14k with pi.

1

u/tronkk 3d ago

opencode + subagents

1

u/Striking_Union_1610 2d ago

I'm using everything in opencode. Planner + Review are handled by Opus and Sonnet, implementation by deepseek 4.1 flash

1

u/Broad_Opportunity_98 1d ago

To be honest I had the same problem. What I did was to create two skills. I'm also using claude pro with command code. You don't need to add multiple layers like, Pi and then T3 code.

My workflow is:

  1. Use grill me to make the plan

  2. Tell claude with sonnet or opus to separate the plan into features. Create like plan.md

  3. Here is the skill i made. Basically, slice the each feature into vertical slices(it is a good practice, you should research a bit about it) and explore with haiku. Basically the exploration is just to read the files, tell it to do it with haiku since the model to read doesn't matter that much and just like send it back to sonnet or opus.

  4. Then i just /clear everything so that the context is clean. and then i use my other skill that is basically /feature-execute, and what it basically does is read the slice it has to make and send to cmd -p (which is the best way you can invoke command code in claude without creating a harness), then it will start using deepseek as builder and then i just tell sonnet to review it( i don't do it manually is also part lf the skill)

I would send you my skills, but i'm trying to improve them a bit more, i'm sorry, but try to make them yourself is actually not that hard.

The token usage is difference is crazy, to be honest is the best method i have tried and neither my command code nor my claude subscription pass the 30% of 5 hour rolling session.

Maybe then you can save some money with the extra codex haha.

But trust man, i really tried a lot of methods and this is the one that has gave me best results

0

u/ahmadawaiscom 3d ago

Try this, Claude to plan and DeepSeek to execute.

https://commandcode.ai/docs/plan-mode#a-model-for-each-phase

Planning and implementing want different things: a strong reasoner to explore and design, a fast, cheap coder to grind through the edits. Set a planning and an implementation model and Command Code switches between them for you:

  • Planning runs while the session is in plan mode: exploring the codebase and writing the plan.

  • Implementation takes over the moment you approve the plan, mid-run, on the very next turn.