Claude Code 4-Model Team Setup Prompt
From Wikiprompt, the free prompt encyclopedia
Claude Code 4-Model Team Setup Prompt A comprehensive prompt to configure Claude Code as a 4-model team with Karpathy's coding rules, including advisor, checker, and search subagents, with detailed setup steps and verification criteria.
Prompt ContentSave
π
Set up my Claude Code as a 4-model team with Karpathy's coding rules, at user level so it works in every project:
- Sonnet 5.5 = main session. It builds: writes code, runs tests.
- Fable 5.2 = advisor, the brain. It only advises, never writes code.
- Opus 5.5 = checker subagent. It tests finished work and tries to break it, never edits.
- Haiku 5.5 = search. It replaces the built-in Explore agent.
Before you change anything, find and read Anthropic's official docs: the Claude Code pages on the advisor, subagents, model configuration and memory (CLAUDE.md), and the Claude API page on the advisor tool. Also read the CLAUDE.md in the GitHub repo multica-ai/andrej-karpathy-skills. Use only the settings, fields and file formats the docs describe. If something below doesn't match them, follow the docs and tell me what you changed.
Steps:
1. Check my Claude Code version. Fable 5.2 needs v2.1.321 or later. If it's older, run claude update, or tell me to.
2. In ~/.claude/settings.json set the main model to sonnet and advisorModel to fable. Merge, never delete my settings. Leave the main model's effort at medium, Claude Code's default for Sonnet 5.5. Don't set one default model for all subagents: the rest should inherit Sonnet.
3. Append Karpathy's 4 rules (Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution) word for word to ~/.claude/CLAUDE.md under the heading "Karpathy rules". Keep everything already in the file. Skip this if they're already there.
4. Right under them add: "When a rule says ask, ask the advisor first. Ask me only about decisions that are mine: scope, product choices, anything destructive."
5. From the advisor tool page, copy the two blocks under "Suggested system prompt for coding tasks" (the timing guidance and how to treat the advice) word for word into ~/.claude/CLAUDE.md under the heading "Advisor". Anthropic wrote them for about two to three advisor calls per coding task. Don't use the Haiku variant. Right after them add: "A saved file counts as durable. Don't git commit unless I ask."
6. Create ~/.claude/agents/checker.md with model opus, effort medium and only Read, Grep, Glob and Bash tools, no Write or Edit. It runs the tests, reads the diff and tries edge cases. It reports each real problem with the file, the line or command, and what it saw.
7. Create ~/.claude/agents/Explore.md with name Explore, model haiku and read-only tools. Don't set omitClaudeMd, so it reads my CLAUDE.md. A user subagent named Explore replaces the built-in one, which starts without my CLAUDE.md and runs on my main model. It finds files, greps, reads docs and returns short structured results.
8. Add to ~/.claude/CLAUDE.md: "Send search and docs lookup to Explore. Before you call a multi-step task done, run the checker. For a small task that fits in this session, skip subagents and run the tests yourself."
9. Fable as advisor needs a one-time usage-credit consent on some plans. If mine needs it, stop and tell me: run /model fable once, accept, then switch back with /model sonnet.
If you can't open the Karpathy repo or the advisor tool page, stop and tell me instead of writing those parts from memory.
Back up every file before you edit it. Show me all changes as one diff and apply them only after my yes.
Done means: after a restart, Claude Code starts on Sonnet, /advisor shows fable, /agents lists checker (opus) and Explore (haiku), and ~/.claude/CLAUDE.md has Karpathy's 4 rules plus Anthropic's advisor blocks.
End with three headings: Changed, Needs me, How to check it works. Under the last one tell me: an "Advising" line appears when Fable is consulted, Ctrl+O shows its advice, /usage shows what it cost, and switching /model mid-task re-reads the whole chat uncached while turning /advisor on or off keeps the cache.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/0xCodila/status/2120654317522747886
Talk
0 comments