Pair a fast coding model with a smarter 'advisor' in Claude Code: let Sonnet do the work and have Opus check the plan on hard decisions, so you get better results without paying top-model prices for every step: AI agent prompt
Claude Code has an experimental advisor tool: your main model does the work and escalates hard decisions to a stronger model. Per Claude Code's docs you turn it on with the /advisor command, an advisorModel setting, or a launch flag such as claude --model sonnet --advisor opus; the advisor must rank at or above your main model, it runs on the Anthropic API only, and it may use extra tokens. Posts on X this week walked through the flow step by step, with Sonnet drafting a plan and Opus reviewing it before the plan locks. This entry gives you a prompt that makes the most of that pairing: plan first, get the advisor's review on risky choices, then build and test.
CodingAgent SetupintermediateThe prompt
I've started Claude Code with a cheaper main model and a stronger advisor (claude --model sonnet --advisor opus). Task: [DESCRIBE THE CHANGE IN PLAIN WORDS]. Project: [LANGUAGE / FRAMEWORK, HOW TO RUN TESTS]. Work like this: 1) Read the relevant code and write a short plan (files to change, approach, risks). 2) Before you lock the plan, consult the advisor on the riskiest decision, e.g. [DATA MODEL CHANGE / AUTH / MIGRATION], and tell me in one or two sentences what it recommended and whether you changed the plan. 3) Build it in small steps and run the tests after each step. 4) If tests fail twice in a row on the same problem, consult the advisor again instead of guessing. 5) Finish with: what changed, test results, and anything the advisor flagged that I should decide myself. Don't touch unrelated files and don't add new dependencies without asking.
How to use it
- Copy the prompt above.
- Replace every [bracket] with your own details (or fill in the blanks on AgentPlaybook Real Estate, which remembers your answers for the next prompt).
- Paste it into Claude Code (advisor tool), Claude Sonnet, Claude Opus and review the answer before you use it.
Works with: Claude Code (advisor tool), Claude Sonnet, Claude Opus
Real-world example: code.claude.com/docs/en/advisor
Before you use it: what to check
Already built into this prompt
- Don't touch unrelated files and don't add new dependencies without asking.
Check yourself
- Check every figure, price and total against your own records before anything is sent, posted or booked. A person approves refunds, discounts, payments and price changes.
- Read and edit the draft before it reaches a customer or goes public. If you later automate this prompt, start with "draft and notify me", not "send automatically".
- Check names, dates, numbers and any claim against your own source material before you use the answer. AI can misread or invent details.
Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.
Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.
32 copy-paste agent prompts (PDF) plus 5 new prompts every week.
Get it free