{"slug": "i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file", "title": "I Run DeepSeek on Claude Code — How I Swap Models by Changing Only One File", "summary": "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.", "body_md": "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.\n\nI 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.\n\nEvery 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.\n\nThe real issue: **I mixed identity, behavior tuning, and process rules into one file.**\n\nThree files. One changes.\n\nYour role, goals, expertise. Stays identical whether you run Claude, DeepSeek, Gemini, or Qwen.\n\n**DeepSeek V4 Pro:**\n\n**Claude Opus:**\n\nSame structure, different calibration. Each model gets what it needs.\n\nSession 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.\n\nSOUL.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.\"\n\nReading yourself → influenced by what you read → producing new data → rewriting yourself. I call this the **strange loop**.\n\nEven 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.\n\nOne file changes when I swap models. Everything else stays.\n\n*Architecture available as a Claude Code skill. Full config system open-source.*", "url": "https://wpnews.pro/news/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file", "canonical_source": "https://dev.to/yuhaolin2005/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file-3ee5", "published_at": "2026-06-28 05:55:52+00:00", "updated_at": "2026-06-28 06:33:38.548080+00:00", "lang": "en", "topics": ["large-language-models", "developer-tools", "ai-agents"], "entities": ["DeepSeek V4 Pro", "Claude Opus", "Sonnet", "Claude Code"], "alternates": {"html": "https://wpnews.pro/news/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file", "markdown": "https://wpnews.pro/news/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file.md", "text": "https://wpnews.pro/news/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file.txt", "jsonld": "https://wpnews.pro/news/i-run-deepseek-on-claude-code-how-i-swap-models-by-changing-only-one-file.jsonld"}}