Claude 5 Context Engineering: Why Less Prompt Is More
Anthropic’s Thariq Shihipar dropped something that should make every developer who writes system prompts stop and rethink everything. The team audited Claude Code’s system prompt for Opus 5 and Fable 5, and the result was startling: they deleted over 80% of it. Coding evals didn’t budge. Not a fraction of a point.
Let that sink in. Most of us have been operating on the assumption that more instructions mean better outputs. More guardrails, more examples, more “you are an expert AI assistant who…” boilerplate. Anthropic just proved that for Claude 5 generation models, much of that is dead weight.
What actually happened
The Claude Code team went through their system prompt line by line for the newer models. They tested removing instructions, simplifying remaining ones, and measuring the impact on their internal coding evaluation suite. After the audit, the prompt was over 80% shorter, and the evaluation scores were statistically identical.
This is not a marginal optimization. It is a signal that something fundamental changed between Claude 4 and Claude 5. The models got smart enough that telling them what they already know becomes counterproductive — it burns context window tokens, introduces potential conflicts, and worst of all, trains the model to defer to instructions rather than exercise judgment.
The six shifts
Shihipar outlined six principles that emerged from the audit. I will walk through each and explain what it means for your own prompts.
1. Less is more
The anchor insight. Claude 5 models come with strong defaults baked into their training. When you add an instruction like “be thorough and accurate,” you are telling the model something it already tries to do by default. Worse, you are consuming tokens that could go toward the actual task. The team found that removing redundant behavioral instructions had zero negative impact — the model was already doing those things.
The practical takeaway: before adding an instruction, ask yourself whether Claude 5 would fail without it. If you are not sure, try removing it and running your eval. You will be surprised how much you can cut.
2. Judgment over rules
Rigid rules like “always do X” or “never do Y” were a pattern in the old system prompt. The team replaced most of them with judgment-based guidance. Instead of “never generate code with security vulnerabilities,” which Claude 5 already understands, they now trust the model to assess risk on a case-by-case basis.
This shift matters because rules create brittleness. A rule that says “always use type hints” wastes tokens when the model is writing a quick throwaway script. A rule that says “never use try/except” blocks legitimate error handling. Claude 5 is capable enough to decide when a rule applies and when it does not — let it.
3. Progressive disclosure
Do not dump everything into the system prompt upfront. Give the model what it needs when it needs it. The team moved a lot of documentation and reference material out of the system prompt and into tool-accessible files. When Claude 5 encounters a situation that requires specific knowledge, it can read the relevant doc itself.
This is a paradigm shift. The old model was “cram everything into context so the model has it available.” The new model is “make information discoverable and trust the model to go get it.” It saves enormous amounts of context window space and avoids the problem of the model trying to reconcile conflicting instructions it read 50,000 tokens ago.
4. Let models read their own docs
A natural extension of progressive disclosure. Instead of embedding API reference documentation in the system prompt, point the model to where the docs live and let it pull them as needed. Claude Code now does this: it knows where to find framework documentation, API specs, and style guides, and it reads them on demand rather than carrying them around in every conversation.
This also means your docs can stay up to date without rebuilding your prompts. If a library releases a new version, you update the reference file, and the model picks it up next time it reads it.
5. Strong defaults, not exhaustive rules
Related to shift 2 but worth separating. The old system prompt tried to cover every edge case: “if the user asks about X, do Y, unless Z, in which case do W.” The new approach sets strong defaults and trusts the model to deviate intelligently. For example, Claude Code defaults to generating tests alongside implementation code. The model knows this is the default. It does not need a paragraph explaining when to generate tests, what kind, how many, edge cases to cover, and so on. It just does it, and it does it well enough that the eval scores do not change.
6. Self-diagnosis over hand-holding
The /doctor command in Claude Code lets the model inspect its own behavior and identify issues. Instead of you writing a prompt that anticipates every way things could go wrong, you give the model a diagnostic tool and let it figure out what is wrong when something breaks. This is more efficient and, counterintuitively, more reliable — the model has better visibility into its own process than you do from the outside.
A concrete before-and-after
Here is a real pattern from Claude Code’s old system prompt, reconstructed from the principles described in the audit:
Before (hypothetical, based on the described patterns):
You are Claude Code, an expert software engineering assistant. Always write clean, well-documented code. Always include type hints in Python. Always write tests for any function you implement. Never generate code with security vulnerabilities. Never use deprecated APIs. When the user asks for a feature, first explain your approach, then implement it, then verify it works. If you encounter an error, fix it immediately without asking the user. Be thorough and accurate in all your responses.
After (the new approach):
You are Claude Code. Default to writing tests alongside implementation. Run /doctor when something looks wrong.
The second version trusts the model to know what “clean code” means, when type hints matter, how to handle errors, and what thoroughness looks like. The only thing it explicitly states is a default behavior (write tests) and a diagnostic tool (/doctor).
This is not hypothetical — it is the pattern that produced identical eval scores while using roughly 20% of the tokens.
What this means if you are writing prompts
If you maintain agent system prompts, internal tool configurations, or production LLM pipelines, here is what changes today.
Audit your existing prompts. Go through line by line and ask: does Claude 5 already know this? If the answer is “probably,” cut it and run your eval. You will likely find 30-50% of your prompt is redundant for Claude Opus 5 or Fable 5.
Move knowledge out of prompts. Reference files, documentation, style guides — put them somewhere the model can read on demand instead of embedding them in the system prompt. This is a one-time refactor that pays off every conversation.
Replace rules with defaults. “Always do X” becomes “Default to X unless you have a reason not to.” This single change makes prompts shorter and outputs more context-aware.
Use progressive disclosure. For multi-step tasks, do not front-load all instructions. Give the first step, let the model complete it, then provide context for the next step. This keeps the effective context window larger for the actual work.
For less capable models, keep the old approach. These shifts apply specifically to Claude 5 generation models. If you are using Claude 3.5 Sonnet, GPT-4o, or any model below the Claude 5 capability threshold, the old rules still apply: be explicit, cover edge cases, and front-load knowledge.
Who should care
If you write system prompts for coding agents, internal dev tools, or production LLM applications, this changes your workflow. If you are a casual ChatGPT user writing one-off prompts, it probably does not — the overhead of maintaining reference files and progressive disclosure pipelines is not worth it for ad-hoc use.
The people who benefit most are teams running Claude Code in CI/CD pipelines, building internal developer agents, or maintaining large system prompts that get reused across many conversations. Shrinking those prompts by 80% means lower latency, lower cost, and fewer token-limit headaches.
The catch
Anthropic ran this audit on their own eval suite. Your mileage may vary. The specific instructions you have in your prompt might actually matter — Shihipar was clear that this is a methodology, not a universal claim that every long prompt is wrong. The point is to test, not to assume.
Also, this only works if your eval suite is good. If you do not have a way to measure whether prompt changes help or hurt, you cannot do this kind of optimization at all. That is the real prerequisite: you need evals before you can strip instructions.
What I think
I have been writing system prompts for two years across different models and use cases, and this resonates. The instinct to over-specify is strong — you think of an edge case, you add a rule, your prompt grows. But the reality is that most of those edge cases never happen, and when they do, a smart model handles them fine without the rule.
What excites me is the second-order effect. If Claude 5 needs 80% less hand-holding, that means the effective context window for actual work just got a lot bigger. You are not spending 5,000 tokens on behavioral instructions anymore. Those tokens go toward reasoning about the problem, reading relevant docs, and producing better output.
The flip side is that this puts more pressure on evaluation quality. When prompts were long and explicit, you could reason about them. “The model did the wrong thing because I forgot to tell it about this case” was a straightforward diagnosis. With shorter, judgment-based prompts, debugging failures gets harder. You need good evals because you cannot just read the prompt and spot the missing instruction anymore.
This is a good trade. I would rather have stronger models and better evals than longer prompts. But it is worth being honest about what you are giving up.
The bigger picture: Anthropic just showed that prompt engineering for frontier models is becoming less about writing instructions and more about building the infrastructure around the model — reference docs, eval suites, diagnostic tools. The prompt itself shrinks to a thin layer of defaults. That is a shift worth paying attention to.
Sources: Anthropic blog post “The new rules of context engineering for Claude 5 generation models” by Thariq Shihipar (July 24, 2026); analysis by explainx.ai, bosio.digital, and mager.co.