
TL;DR
Anthropic removed over 80% of Claude Code's system prompt for Claude 5 models. Here is how the rules changed and what it means for your CLAUDE.md files, skills, and system prompts.
Context engineering was always the higher-leverage skill than prompt engineering. But the rules just changed. On July 24, 2026, Anthropic published that it removed over 80% of Claude Code's system prompt for Claude 5 generation models (Opus 5, Fable 5, Sonnet 5) with no measurable loss on coding evaluations.
The old rules were written for older models that needed guardrails. Claude 5 models have better judgement. They do not need the same constraints. If you are still writing CLAUDE.md files and skills like it is 2025, your context is overconstrained and you are leaving capability on the table.
This post covers the six specific shifts Anthropic documented, what they mean for your CLAUDE.md files, and how to audit your own context with the new claude doctor command.
If you are new to context engineering, start with the original context engineering guide first. This post is the Claude 5 update.
Last updated: July 26, 2026. All principles verified against the Anthropic blog post and current Claude Code documentation.
| Source | Link |
|---|---|
| Anthropic's new rules post | claude.com/blog |
| Claude Code overview | docs.anthropic.com |
| Memory and CLAUDE.md | docs.anthropic.com |
| Skills reference | docs.anthropic.com |
| Dynamic Workflows | claude.com/blog |
| Fable 5 prompting field guide | claude.com/blog |
| Anthropic context engineering | anthropic.com |
Anthropic documented six specific context engineering myths that no longer apply to Claude 5 models. Each one has a direct implication for how you write CLAUDE.md files, design skills, and structure your system prompts.
Old approach: Give Claude explicit rules. "Default to writing no comments. Never write multi-paragraph docstrings. Do not create planning documents unless asked."
New approach: Let Claude use judgement. "Write code that reads like the surrounding code: match its comment density, naming, and idiom."
The old rules were necessary because older models would write incorrect comments or create unnecessary files without explicit guardrails. Claude 5 models can infer the right behavior from context. Overconstraining them forces extra reasoning cycles to reconcile conflicting instructions.
What to change in your CLAUDE.md: Review every rule that starts with "always" or "never." Ask whether Claude 5 can figure this out by looking at the codebase. Replace hard rules with contextual guidance.
Old approach: Give Claude examples of how to use every tool or function.
New approach: Design clear interfaces. Use expressive parameter types and names that hint at correct usage. An enum status: "pending" | "in_progress" | "completed" teaches Claude how to use a Todo tool better than a paragraph of examples.
Anthropic found that examples actually constrain Claude 5 models to a narrower exploration space. Instead of showing the model how to use something, design the tool itself to be self-explanatory.
What to change in your skills: Look at skills that contain extensive "for example" sections. Strip the examples and instead invest in better tool parameter design. If a tool needs examples to be usable, the tool interface is wrong.
Old approach: Put all context in the system prompt so Claude always has it.
New approach: Use progressive disclosure. Load context only when needed. Claude Code now uses deferred-loading tools where the agent must search for full definitions before using them.
The same applies to your CLAUDE.md files. A common mistake is making CLAUDE.md a central repository for every possible practice. Instead, use a tree of files that load at the right time. For example, move verification instructions into a skill that Claude Code calls selectively, rather than listing them in the system prompt.
What to change in your CLAUDE.md: If your CLAUDE.md is longer than 50 lines, split it. Move specialized knowledge (deploy procedures, testing conventions, review checklists) into separate skill files and reference them from the main file. See the dynamic workflows guide for the pattern.
Old approach: Repeat instructions in both the system prompt and tool descriptions, because older models might miss instructions at the start of the context window.
New approach: Put instructions in tool descriptions only. Claude 5 models read instructions wherever they appear in context. Anthropic found it could delete all repeated examples and instructions from the system prompt with no regression.
What to change in your context: Deduplicate. If your CLAUDE.md and your skills both describe the same workflow, pick one. Put the canonical description in the skill or tool description and remove it from CLAUDE.md.
Old approach: Use # hotkey to manually save memories to CLAUDE.md.
New approach: Claude 5 models save memories automatically when they are relevant. The auto-memory feature captures project decisions, conventions, and user preferences without manual intervention.
This does not mean CLAUDE.md is obsolete. It means CLAUDE.md should focus on project-level context that is known before the session starts (architecture, gotchas, conventions). Runtime learnings (user preferences, decisions made during a session) are handled by auto-memory.
What to change in your CLAUDE.md: Remove any instructions about manually saving memories. Keep only persistent project context that Claude cannot infer from the codebase.
Old approach: Store specs as simple markdown files for Claude to reference.
New approach: Use rich references. HTML artifacts created by Claude's artifacts feature, test suites that serve as executable specs, or code examples from other codebases that Claude can port.
Rubrics are another form of reference. A rubric defines good taste in a particular domain (API design, error handling, UI patterns) and can be used by verifier agents in dynamic workflows to check outputs against standards.
What to change in your context: Instead of writing long markdown specifications, write test suites first and let Claude infer the spec from the tests. Use the artifact system for interactive mockups and visual references.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 26, 2026 • 9 min read
Jul 26, 2026 • 8 min read
Jul 26, 2026 • 5 min read
Jul 25, 2026 • 7 min read
claude doctor Command#Anthropic shipped a new command alongside these recommendations. Running claude doctor in Claude Code rightsizes your skills and CLAUDE.md files. It analyzes your current context against the new principles and suggests removals and simplifications.
Run it right now:
claude doctor
The command checks for overconstrained rules, duplicated instructions, excessive examples, and context that should be split into progressively-disclosed skills. It is the fastest way to audit your setup against the new rules.
If you are building your own agent harness with the Claude API, these shifts apply directly to your system prompt design. The same patterns that Anthropic used to shrink Claude Code's system prompt by 80% apply to any agent that uses Claude 5 models:
For a deeper look at the motivation behind these changes, Anthropic's Fable field guide covers how Claude 5 models process instructions differently from earlier generations.
Anthropic removed over 80% of Claude Code's system prompt for Claude 5 models. The six key shifts are: rules to judgement, examples to interface design, upfront context to progressive disclosure, repetition to simple descriptions, manual memory to auto-memory, and simple specs to rich references. The full details are in the official blog post.
No. CLAUDE.md files are still valuable for project-level context that Claude cannot infer from the codebase - architecture decisions, gotchas, deployment procedures, and team conventions. The change is that you should remove overconstrained rules, deduplicate instructions, and split long files into progressively-disclosed skills.
Run claude doctor in your terminal inside a Claude Code session. It will analyze your current CLAUDE.md files, skills, and configuration against the new principles and suggest changes.
Yes. Skills should be lightweight guides that encode opinions and knowledge specific to your team or product. Avoid overconstraining them with rules and examples. Use progressive disclosure for long skills by splitting them into multiple files. Trust Claude 5 models to figure out the right behavior from minimal guidance.
Both. The system prompt optimizations Anthropic applied to Claude Code are based on how Claude 5 models process instructions. If you build your own agent harness with the Claude API, the same principles apply: remove guardrails that newer models do not need, replace examples with better interface design, and use progressive disclosure.
The original context engineering guide covers the four-layer framework (system prompts, project context, skill libraries, memory systems) that this update builds on. Read it first if you are new to the concept.
Read next
Context engineering is the practice of designing the persistent information that surrounds every AI interaction. CLAUDE.md files, system prompts, skill libraries, and memory systems. It is the single highest-leverage skill for developers working with AI agents in 2026.
14 min readEverything developers need to migrate from Sonnet 4.6 to Sonnet 5 - three breaking API changes, the new effort parameter, tokenizer impact, and when to use each effort level. Verified against Anthropic's official docs on July 4, 2026.
8 min readClaude Code dynamic workflows turn orchestration into a JavaScript script that runs up to 1,000 agents per run - here is how scripts, schemas, budgets, and resume actually work.
10 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
A hosted infinite canvas your headless AI agents drive over MCP. Any MCP-speaking agent - Claude Code, Codex, Cursor, or...
View ToolAnthropic's flagship reasoning model. Best-in-class for coding, long-context analysis, and agentic workflows. 1M token c...
View ToolAnthropic's first generally available Mythos-class model, released June 9, 2026. 1M context, 128K max output, $10/$50 pe...
View ToolAnthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolInspect Claude Code transcripts to see which files, tools, and tokens are filling the context window.
View AppEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppA concrete step-by-step guide to moving your development workflow from Cursor to Claude Code - settings, rules, keybindings, and the habits that transfer.
Getting StartedConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsContext-aware follow-up suggestions derived from git history.
Claude Code
Anthropic released Claude Opus 5, described as a thoughtful, proactive model approaching frontier intelligence at about half the price of Fable, and the video reviews the announcement, benchmarks, and...

Open Design: Open-Source n8n App That Turns Any Website into a Brand Kit, Design System, HTML + Images The video introduces Open Design, an MIT-licensed full-stack template that combines AI and n8n a...

Anthropic Suspends Fable 5 & Mythos 5 After US Export Control Directive (Jailbreak Concerns) Anthropic announced that the US government issued export control directives requiring it to suspend Fable ...

Context engineering is the practice of designing the persistent information that surrounds every AI interaction. CLAUDE....

Everything developers need to migrate from Sonnet 4.6 to Sonnet 5 - three breaking API changes, the new effort parameter...

Claude Code dynamic workflows turn orchestration into a JavaScript script that runs up to 1,000 agents per run - here is...

CloudFlare, Anthropic, and Cursor independently discovered the same pattern: don't load all tools upfront. Let agents di...

CLAUDE.md is the highest-leverage file in any Claude Code project. Here's what goes in one, what doesn't, and the patter...

GitHub trending is full of agent skill frameworks. The real shift is not bigger prompts or more agents. It is turning te...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.