Claude Opus 5.5 succeeded the previous Opus 4 generation in September 2026 as Anthropic's default flagship model for agentic coding, computer use, and complex knowledge work, according to the Claude Opus 5.5 announcement. It pairs a flat 1M-token context window and 128K maximum output with always-on adaptive thinking, configurable effort levels, prompt caching, and strong tool use. On the Anthropic pricing page, Opus 5.5 bills at $4 per million input tokens and $20 per million output tokens with no long-context surcharge, sitting between Claude Sonnet 5.5 ($2/$10) and Claude Fable 5.2 ($8/$40), Anthropic's step-up model for the hardest technical work. None of those capabilities help if you prompt Opus 5.5 like a basic chatbot. This guide covers the specific patterns that move quality and cost: steering effort levels, assembling 1M-context prompts, caching prefixes cleanly, and structuring agentic workflows.
Tip
Claude Opus 5.5 rewards structure, explicit context, and clear success criteria, and it wastes thinking tokens on vague prompts. Spend tokens and higher effort settings only where they pay off.
Key takeaways:
- Steer always-on thinking through effort levels and honest task framing: start at default
medium, drop tolowfor simpler jobs, and reservexhighormaxfor verified gains. - Treat the flat 1M context window as a ceiling, not a default. Targeted retrieval beats packing when the answer lives in a small span.
- Cache everything stable above a breakpoint. At Opus 5.5 volume, prefix caching is a primary cost lever.
- Use RCAF as the floor and score production prompts against the SurePrompts Quality Rubric as the ceiling.
- Structure agentic runs in layers using the Agentic Prompt Stack, with explicit tool boundaries and stop conditions.
- Match model tier to task difficulty: Haiku 5.5 and Sonnet 5.5 for high-volume or routine work, Opus 5.5 as the default workhorse, and Fable 5.2 for frontier escalations.
Why Claude Opus 5.5 needs its own playbook
Opus 5.5 is built for long, multi-step work in real repositories and complex documents, and its architecture changes which prompting habits pay off. Three operational details matter immediately when migrating prompts from older models:
- Flat 1M context removes the surcharge, not attention dilution. Unlike older models that doubled prices past 200K tokens, Opus 5.5 keeps flat $4/$20 pricing across its full 1M window. Dumping an entire project into every turn still inflates input spend linearly (especially because Anthropic's newer tokenizer produces roughly 30% more tokens for the same text than earlier generations) and makes buried facts harder to recall.
- Thinking is always on and governed by effort levels. Thinking cannot be switched off, and default
mediumeffort already handles most coding and knowledge-work benchmarks reliably. Escalating toxhighormaxwithout measuring an eval lift burns latency and output tokens unnecessarily. - Tiered model routing still matters. Even though Opus 5.5 is Anthropic's default model and costs less than previous Opus tiers, routing routine extraction or classification to Sonnet 5.5 ($2/$10) or Haiku 5.5 ($0.10/$0.50 up to 100K tokens) while saving Fable 5.2 ($8/$40) for the hardest technical problems keeps production budgets predictable.
The playbook below assumes you already know how to write structured prompts for Claude. If you want the foundational basics first, start with the Claude 4 prompting guide.
Steer always-on thinking and effort levels
On Claude Opus 5.5, internal reasoning is always active rather than a boolean toggle. Your two levers are the API effort parameter (low, medium, high, xhigh, max) and how clearly your prompt states the problem's constraints. As detailed in the Claude Opus 5.5 prompting guide, Anthropic recommends starting at medium (the default), dropping to low when latency or cost dominates, and reserving xhigh and max strictly for problems where you have measured a real quality improvement.
Use higher effort (high / xhigh / max) and explicit reasoning cues for:
- Multi-file debugging and root-cause analysis across large repositories
- Architectural tradeoffs where the first plausible answer is usually wrong
- Math, formal proofs, and security or vulnerability audits
- Legal, policy, or contract analysis with interacting clauses
- Complex migration plans, test matrices, and multi-stage specs
- Any evaluation suite where higher effort measurably improves pass rates
Use low or default medium effort with lean prompts for:
- Drafting, summarization, and paraphrasing
- Straightforward classification and schema extraction
- Creative writing, where over-deliberating often flattens voice and produces stiff prose
- Format conversions and routine refactors
- Tasks where Sonnet 5.5 or Haiku 5.5 already meet your accuracy bar
When a problem requires inspectable reasoning, pair the right effort level with concrete constraints and success criteria rather than generic "think harder" filler. Asking the model to outline assumptions, evaluate competing approaches, or verify edge cases before committing to a final answer gives you an auditable trail. Conversely, framing a simple copy-editing task as an ultra-hard reasoning puzzle encourages Opus 5.5 to second-guess itself and inflate output costs without improving quality.
For deeper patterns on reasoning prompts, see Extended Thinking Prompts for Claude and the reasoning model glossary entry.
Structure prompts for 1M context
A 1M-token context window is a reason to care more about prompt structure, not less. Anthropic's Claude prompting best practices emphasize that XML tags help Claude parse complex prompts unambiguously when instructions, reference documents, examples, and variable inputs appear together. The assembly pattern that holds up at scale looks like this:
<system>
[Role, persistent rules, output format, constraints]
</system>
<reference>
<doc id="spec" title="Feature spec v3">...</doc>
<doc id="codebase" title="Relevant files">...</doc>
<doc id="history" title="Prior decisions">...</doc>
</reference>
<task>
[The specific thing to do today, with success criteria]
</task>
Five principles make long-context prompts reliable on Opus 5.5:
Put stable rules at the top and the task at the end. Opus 5.5 weights early system rules and the task block immediately preceding generation most heavily. Placing the task after the <reference> block lets the model read the exact question with all evidence already loaded.
Wrap reference material in tags so it reads as data, not instructions. Tagged documents reduce prompt-injection and instruction-confusion risks when reference material contains imperative wording, checklists, or inline comments.
Give every document a stable ID. Clear identifiers (spec, src/auth/login.ts, contract-v2) let you require verbatim citations and make every output traceable back to its source.
Counteract middle-of-context dilution. Even with strong long-context recall, subtle constraints buried in the middle of a 400K-token paste are easier to miss than rules repeated near the task boundary. Restate load-bearing constraints and output rules inside <task>.
Retrieve before you pack. If the answer lives inside a 5K-token slice, retrieving that slice beats sending 500K tokens on cost, speed, and precision. Reserve large context windows for tasks where retrieval breaks down, such as cross-repo audits, architecture mapping, and multi-document synthesis. For the broader architectural framework, read the Context Engineering Maturity Model.
Prompt caching on Opus 5.5
Prompt caching stores a static prefix server-side and bills subsequent hits at a steep discount relative to fresh input tokens. You mark a cache breakpoint, everything above it becomes reusable across turns, and everything below it is processed as new input.
Because Opus 5.5 pairs a 1M window with higher token counts under Anthropic's newer tokenizer, prefix caching is essential for multi-turn workflows and agent loops. Three rules govern cache-friendly prompts:
1. Assemble prompts cache-up. Place static content above the breakpoint: system instructions, role definitions, tool schemas, few-shot examples, and unchanging reference files. Keep per-turn inputs, user queries, and dynamic timestamps strictly below the breakpoint.
2. Never mutate bytes above the breakpoint. Changing a single character, reordering a tool definition, or injecting a live clock timestamp into the system prompt invalidates the cached prefix. Pin the stable prefix in version control and inspect diffs before deploying.
3. Cache large, reused prefixes. Caching a short 500-token header across a handful of requests yields negligible savings. Caching a 50K-token codebase snapshot or policy manual across hundreds of queries changes unit economics dramatically. Check current cache write and read multipliers on the Anthropic pricing page when modeling workload budgets.
For multi-breakpoint assembly and invalidation patterns, see the Prompt Caching Guide 2026.
Tool use and agentic patterns
Opus 5.5 excels at multistep tool use and repository-scale execution when the surrounding harness and tool contracts are crisp. In agentic workflows, the tool definitions the model sees on every turn are just as important as the user prompt.
A production-grade tool description specifies five fields:
- Purpose: one sentence stating what the tool does
- Preconditions: when it is valid to invoke the tool
- Inputs: typed parameters with realistic examples
- Outputs: the exact shape of the returned payload
- When not to use: the boundary separating this tool from overlapping tools
Skipping the "when not to use" clause is the most common source of tool thrash. If search_docs and search_tickets do not explicitly define their boundaries, any model will pick the wrong one on ambiguous queries. When exposing tools across services, the Model Context Protocol provides a standard schema layer for surfacing those definitions consistently to Claude.
For long agentic coding runs, Anthropic's Opus 5.5 guidance notes that setting max_tokens up to 128,000 prevents premature truncation and recommends treating a text-only end of turn as a status report rather than an error. For deterministic pipelines, pair JSON structured output schemas with tool_choice when a specific tool must run first.
Structure production agents in five layers:
- Persistent system rules: identity, safety boundaries, and non-negotiable constraints
- Session context: user profile, repository state, and prior decisions
- Current task: bounded goal and explicit verification criteria
- Tool layer: typed tool specs with clear mutual exclusions
- Plan-execute-reflect loop: mandatory check-ins after tool results plus an explicit stop condition and escalation rule
This five-layer layout is the Agentic Prompt Stack. For terminal-native coding agents, Claude Code runs Opus 5.5 by default on paid plans and pairs directly with the work-order and verification patterns in the Complete Guide to Prompting AI Coding Agents and the Claude Code prompting guide. For GUI automation patterns, see the computer-use glossary entry.
Score your prompts against the Rubric
Opus 5.5 is tolerant of minor wording variations, yet unforgiving when context, success criteria, or output schemas are missing. The SurePrompts Quality Rubric provides a structured pre-flight audit to catch those gaps before a prompt reaches production.
On Opus 5.5, four rubric dimensions carry the most weight:
- Context completeness: every required fact is present in
<reference>or reachable through a defined tool - Success criteria: the prompt specifies how a reviewer or test suite distinguishes a passing output from a weak one
- Output format specification: exact schema, section structure, and length bounds
- Failure modes named: explicit instructions for missing data, ambiguity, or blocked tool calls ("say not found; do not infer")
Meanwhile, Opus 5.5 is noticeably more forgiving than smaller models on:
- Phrasing: minor synonyms rarely shift compliance when constraints are explicit
- Example density: one or two sharp, representative examples usually outperform five generic ones
- Filler politeness: clear imperative instructions work cleanly without conversational padding
Run prompts through the rubric before shipping and whenever an evaluation regresses. RCAF gives you the baseline structure, and the rubric tightens the gaps.
Common mistakes prompting Opus 5.5
- Defaulting to
xhighormaxeffort everywhere. Medium effort already matches or exceeds prior-generation high effort on many benchmarks. Crank effort up only where evals prove a quality lift. - Treating flat 1M context as a "paste everything" invitation. Even without a long-context surcharge, a focused 10K-token prompt beats an unfocused 500K paste on speed, cost, and precision.
- Skipping prompt caching on repeated workflows. Leaving a 20K-token system prompt and tool suite uncached across high-volume traffic wastes budget rapidly.
- Writing vague tool descriptions. "Searches docs" is not a contract. Include purpose, preconditions, typed inputs, outputs, and when-not-to-use rules.
- Ignoring tier routing. Opus 5.5 is Anthropic's default, but Sonnet 5.5 ($2/$10) and Haiku 5.5 ($0.10/$0.50) handle routine classification and extraction far more cheaply, while Fable 5.2 ($8/$40) handles frontier escalations.
- Omitting stop conditions on agentic runs. Without explicit completion and escalation rules, long-running agents keep iterating past "done" or loop on blocked steps.
Our position
- Start on Opus 5.5, then route deliberately. Use Opus 5.5 ($4/$20) as your benchmark baseline for hard work, route high-volume or simpler traffic down to Sonnet 5.5 or Haiku 5.5 once evals confirm parity, and escalate to Claude Fable 5.2 ($8/$40) only for the hardest technical challenges.
- Treat effort levels as an eval-driven knob. Keep
mediumas the default, drop tolowfor fast lightweight steps, and require measured evidence before paying forxhighormax. - Make prefix caching mandatory in production. Structuring prompts cache-up is the highest-leverage cost optimization available on Opus 5.5.
- Retrieve first, pack second. Use the flat 1M window for whole-repo audits and cross-document synthesis where retrieval cannot isolate a small span.
- Treat tool specs as first-class prompts. Clean tool contracts and explicit reflection loops drive agent reliability far more than clever wording in the user turn.
Related reading
- Claude 4 Prompting Guide: foundational Claude prompting patterns
- Claude Code Prompting Guide: terminal-native agentic coding
- Claude Opus 5.5 Agent and Tool-Use Prompts: 30 copy-paste agent loop and tool-calling templates
- Claude Opus 5.5 1M-Context Codebase Review Prompts: 25 copy-paste full-repository audit templates
- Extended Thinking Prompts for Claude: deeper patterns on reasoning prompts
- Prompt Caching Guide 2026: cache-aware prompt assembly
- Agentic Prompt Stack: the layered model for tool-using agents
- SurePrompts Quality Rubric: audit your prompts before shipping
- Context Engineering Maturity Model: where your org sits and where to go next