{"slug": "i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship", "title": "I Packed DeepSeek V4 + Claude Code Into a Starter Kit. Clone It and Ship.", "summary": "A developer has released an open-source starter kit that integrates DeepSeek V4 into Claude Code, featuring nine custom agents, seven behavior rules, security hooks, local OCR, and auto-backup. The kit, available via a single git clone command, optimizes performance by assigning the Pro model to the main agent and Flash to sub-agents, and includes a six-level decision ladder to enforce YAGNI principles.", "body_md": "TL;DR:I spent weeks tuning DeepSeek V4 to feel native inside Claude Code. The result: a one-command setup with 9 agents, 7 rules, security hooks, OCR, and auto-backup. Clone → ./init.sh → you're shipping.\n\nI wanted DeepSeek's 1M context window inside Claude Code's interface. What I got was two weeks of fighting API configs, debugging token limits, and discovering that most \"just swap the model\" advice is missing half the puzzle.\n\nSo I packaged everything into a single repo.\n\n```\ngit clone https://github.com/YuhaoLin2005/deepseek-claude-code-starter.git\ncd deepseek-claude-code-starter\n./init.sh\n```\n\nThree commands. Here's what lands in your `~/.claude/`\n\n:\n\n| Component | What It Does |\n|---|---|\n9 Custom Agents |\nCode review, security audit, TDD guide, architecture, build-fix — each tuned for DeepSeek's reasoning style |\n7 Behavior Rules |\nCode quality, security, testing discipline, YAGNI enforcement, commit standards |\nSecurity Hook |\nPreToolUse guard — blocks sensitive file access and dangerous commands before they execute |\nAuto-Backup |\nPre-edit snapshots (keeps 5) + session-start git commit. You'll thank me the first time you roll back |\nLocal OCR |\nRapidOCR on ONNX — lets DeepSeek \"see\" screenshots without sending them to a cloud API |\nStatus Line |\nCompaction counter — warns you at 5+ compactions to start fresh (\n|\n\nThe single biggest quality-of-life improvement: **main agent gets the Pro model, sub-agents get Flash.**\n\nDeepSeek V4 Pro handles architecture, debugging, and complex reasoning. But reading files? Searching? Running tests? Those don't need a 1M-context reasoning beast. Flash is faster, cheaper, and completely adequate for the grunt work.\n\nThis one decision doubled my effective throughput. The main agent never waits behind a queue of file-reads.\n\nOne rule I'm unreasonably proud of: **the 6-level decision ladder.**\n\n```\nLevel 0: stdlib can do it → don't write code\nLevel 1: one-liner → don't write fifty lines\nLevel 2: existing tool → don't build a replacement\nLevel 3: simple script → don't build a framework\nLevel 4: library → don't build from scratch\nLevel 5: only then, build\n```\n\nIt's YAGNI compiled into a decision tree. When every token costs money, \"just in case\" code is a bill you pay every session.\n\n[My self-model protocol](https://dev.to/yuhaolin2005/i-open-sourced-the-protocol-that-keeps-my-ai-from-forgetting-who-i-am-4pp) handles identity across sessions. But identity is useless if the tools aren't right. This starter kit is the companion piece — the \"body\" to the protocol's \"mind.\"\n\nBoth are MIT licensed. Both took weeks of trial and error to get right. Both are now one `git clone`\n\naway.\n\n**Have you tried running non-Claude models inside Claude Code?** What broke first — the API, the prompts, or your patience? Drop your war stories in the comments.\n\n*Related: LLM compaction isn't linear • Self-model protocol for AI identity persistence*", "url": "https://wpnews.pro/news/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship", "canonical_source": "https://dev.to/yuhaolin2005/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship-13dn", "published_at": "2026-07-04 13:24:48+00:00", "updated_at": "2026-07-04 13:48:47.064013+00:00", "lang": "en", "topics": ["large-language-models", "developer-tools", "ai-agents", "generative-ai"], "entities": ["DeepSeek V4", "Claude Code", "RapidOCR", "ONNX", "YuhaoLin2005"], "alternates": {"html": "https://wpnews.pro/news/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship", "markdown": "https://wpnews.pro/news/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship.md", "text": "https://wpnews.pro/news/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship.txt", "jsonld": "https://wpnews.pro/news/i-packed-deepseek-v4-claude-code-into-a-starter-kit-clone-it-and-ship.jsonld"}}