cd /news/large-language-models/i-run-deepseek-on-claude-code-how-i-… · home topics large-language-models article
[ARTICLE · art-42311] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

I Run DeepSeek on Claude Code — How I Swap Models by Changing Only One File

A developer built a three-layer architecture for CLAUDE.md files that makes swapping between large language models like DeepSeek V4 Pro, Claude Opus, and Sonnet trivial by changing only one file. The system separates identity, behavior tuning, and process rules into distinct files, preventing the need to rewrite entire configurations when switching models. The architecture is available as a Claude Code skill and open-source.

read1 min views1 publishedJun 28, 2026

Most CLAUDE.md files are 500-line monoliths. When you switch LLMs, you rewrite everything. After the third rewrite, I built a three-layer architecture that makes model swaps trivial.

I run DeepSeek V4 Pro as my daily driver for Claude Code. But sometimes I need Claude Opus for complex reasoning, or Sonnet for fast iterations.

Every time I swapped, I rewrote my entire CLAUDE.md. DeepSeek needs tighter tool-call discipline. Claude Opus needs less output splitting. The same rule file can't serve both.

The real issue: I mixed identity, behavior tuning, and process rules into one file.

Three files. One changes.

Your role, goals, expertise. Stays identical whether you run Claude, DeepSeek, Gemini, or Qwen.

DeepSeek V4 Pro:

Claude Opus:

Same structure, different calibration. Each model gets what it needs.

Session startup checks, shutdown sequences, review systems, health thresholds. These rules work the same regardless of which LLM is the engine. They're process, not personality.

SOUL.md isn't static. Each session reads the current self-model, produces new experiences, then updates itself. Next session reads an evolved version — a different "me."

Reading yourself → influenced by what you read → producing new data → rewriting yourself. I call this the strange loop.

Even with one model, this separation prevents drift. Identity doesn't get buried. Process rules stay model-agnostic. New team members adopt BODY.md without touching INTERFACE.md.

One file changes when I swap models. Everything else stays.

Architecture available as a Claude Code skill. Full config system open-source.

── more in #large-language-models 4 stories · sorted by recency
── more on @deepseek v4 pro 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-run-deepseek-on-cl…] indexed:0 read:1min 2026-06-28 ·