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.

Curated by AgentPlaybook Real Estate · How we make and check prompts

CodingAgent Setupintermediate

The 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.
Open in ChatGPT Open in Claude Perplexity Download as agent skill (SKILL.md)

How to use it

  1. Copy the prompt above.
  2. Replace every [bracket] with your own details (or fill in the blanks on AgentPlaybook Real Estate, which remembers your answers for the next prompt).
  3. 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

Check yourself

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.

Share:Post on XLinkedInFacebookRedditWhatsApp
</> Embed this prompt on your site

Paste this HTML into your blog or website. It's a plain card with no tracking scripts that links back to this prompt.

Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.

Get the free Solo Founder Stack pack

32 copy-paste agent prompts (PDF) plus 5 new prompts every week.

Get it free

More Coding prompts

Ship a small feature as a PRFeatures · intermediateBuild a simple internal toolNo-code apps · beginnerAutomation script for a boring taskScripts · beginnerCommit & PR assistantGit workflow · intermediateFix a failed pipelineCI fixes · intermediateCheckpointed long task setupLong-running tasks · intermediate

See all Coding prompts →