惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Run DeepSeek on Claude Code — How I Swap Models by Chan...
YuhaoLin2005 · 2026-06-28 · via DEV Community

YuhaoLin2005

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.


The Problem

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.

The Architecture

Three files. One changes.

  • SOUL.md — Who I am. Identity, goals, growth. Never changes across models.
  • INTERFACE.md — How this brain works. Model-specific calibration. The ONLY file that changes.
  • BODY.md — What I do. Process, reviews, delivery gates. Model-agnostic.

SOUL.md — Identity Layer

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

INTERFACE.md — Brain Layer

DeepSeek V4 Pro:

  • TOOL: Match param names exactly; after 2 failures, switch strategy
  • OUTPUT: Split at 500 words
  • VERIFY: Post-edit verification mandatory
  • CONTEXT: Reconfirm anything >5 turns old

Claude Opus:

  • TOOL: Standard — no compensation needed
  • OUTPUT: Long-form analysis OK
  • VERIFY: Standard, less aggressive
  • CONTEXT: Full window available

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

BODY.md — Process Layer

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.

The Strange Loop

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.

Beyond Multi-Model

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.

Migration (15 minutes)

  1. Audit: Classify every line in your CLAUDE.md as SOUL, INTERFACE, or BODY
  2. Extract: Move each line to the right file
  3. Test: Swap the model in INTERFACE.md — nothing should break
  4. Replace: Your CLAUDE.md becomes a 10-line architecture diagram

Real Numbers

  • 4 LLM reconfigurations, zero identity or process drift
  • 200+ sessions across 5+ projects
  • 6 PRs to 4 OSS communities (ECC, anthropics/skills, claude-skills, agent-skills)
  • 5-library learning capture system + 7 automated hooks — all model-agnostic

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


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