What I learned reading Claude's system prompts
By Flavio
Tagged: AI
I read Anthropic's published Claude system prompts. Most of the product lives in the rules, facts, tools, and safety checks around the model.
Anthropic publishes the system prompts used by Claude on the website and in the apps. I sat down and read all 29 versions, along with the Hacker News thread discussing them.
The earliest prompt is tiny. It tells Claude who it is, what today’s date is, when its knowledge cuts off, and how detailed its answers should be. The latest ones run to thousands of words, packing in product details, safety rules, writing advice, recent news, and instructions for when a different model steps in to answer.
Reading through all of them gives you a clear look at how much work sits around the model itself.
The model is not the product
Those published prompts only apply to Claude.ai and the apps, not the Claude API. If you’re calling the Claude API from your own app, check the Anthropic SDK before you upgrade it, since a new major version can change the request contract.
Even inside Anthropic’s own products, the text on that page is only one piece of what the model sees. Claude Code uses a different prompt, and on top of that you have tool descriptions, search results, memory, user settings, and the conversation itself all adding more instructions.
Here’s a rough picture of how those layers stack up when Claude answers a request:
model
+ system prompt
+ tool descriptions
+ safety checks
+ product features
+ memory and preferences
+ conversation
= the Claude experience
That’s why the exact same model can feel so different in Claude.ai, in Claude Code, or in an app you build yourself. Each product wraps the model in its own instructions and tools.
The prompts got bigger. Then they stopped.
Someone on Hacker News compared an early prompt to a recent one and pointed out that it grew from a little over 300 words to more than 3,000. That holds true if you look at the Opus line: Claude Opus 3 had about 350 words in July 2024, while Claude Opus 5 had about 3,200 words in July 2026.
Look at the whole timeline, though, and the growth isn’t nearly as linear. Here are rough word counts from several of the published prompts:
| Model and date | Approximate words |
|---|---|
| Claude Haiku 3, July 2024 | 114 |
| Claude Opus 3, July 2024 | 350 |
| Claude Sonnet 3.5, July 2024 | 962 |
| Claude Sonnet 3.5, November 2024 | 4,112 |
| Claude Opus 4, May 2025 | 1,706 |
| Claude Opus 4.7, April 2026 | 3,678 |
| Claude Opus 4.8, May 2026 | 3,350 |
| Claude Fable 5, June 2026 | 3,283 |
| Claude Opus 5, July 2026 | 3,227 |
Opus 5 is shorter than both Opus 4.7 and 4.8, and a Sonnet 3.5 prompt from November 2024 is longer than all of them. That old Sonnet entry is a bit of a cheat because it includes two similar sets of instructions, one for text chats and one for chats with images.
As the models improve, Anthropic keeps rearranging things, adding new rules, dropping old ones, and moving some of the work into tools instead. Simon Willison put the prompt history in a Git repository, and browsing the Git diffs shows rules coming and going just like code in a normal software project.
One prompt does a lot of jobs
I used to think a system prompt just told the AI what kind of assistant to be. Looking at the latest Claude prompt, that’s a small fraction of what’s in there. It reads more like several different documents glued together.
Part of it works like a product manual. It tells Claude which model it is, lists the other Claude models, and includes product names, settings, and support links. When someone asks “Which model am I using?”, the answer may be newer than the model’s training data, so the prompt fills that gap. It also tells Claude not to guess on things that change often, like prices, account limits, and product instructions, and to send people to the docs or support instead of giving a confident wrong answer.
Another part carries recent facts. The Opus 5 prompt mentions events from after its May 2026 knowledge cutoff, including Anthropic releasing two newer models, and access being suspended and later restored. It even tells Claude something unusual: it only knows about these events because they appear in the prompt. Dropping a new fact into a prompt is much faster than retraining a model, though facts go stale quickly. People on Hacker News noticed older prompts whose model lists were already out of date. Putting instructions and current facts in the same file makes it harder to maintain because they change at different speeds.
Then there’s the writing guide, covering when to ask a question, when to use a list, how long an answer should be, and how to react if someone is rude. Some of these rules get surprisingly specific, like checking whether a file was really uploaded, not trying to keep a conversation going when someone wants to leave, and admitting mistakes without getting too apologetic. They look like fixes for conversations that went wrong rather than rules someone wrote before launch.
Large chunks of the prompt cover difficult topics like child safety, weapons, harmful code, legal and financial advice, self-harm, and eating disorders. The rules get much more detailed wherever a mistake could cause serious harm, spelling out when and how to refuse while still offering safe, useful information when possible. One idea comes up again and again: look at the full conversation, because a single request that seems harmless on its own may look very different after ten earlier messages.
There’s also a section explaining that someone might pick Fable 5 and still get an answer from Opus 5. Another safety system checks the request first, and if it spots a risky topic, it may route the request to Opus instead. Anthropic says this happens in less than 5% of sessions on average, and it can also trigger by mistake on a harmless request. Explaining this inside the Opus prompt lets Claude tell the person why a different model answered. Anthropic can also inject an extra reminder when one of those checks flags a risk, or during a very long conversation.
The prompt is a history of mistakes
Large instruction files tend to grow the same way everywhere. Something goes wrong, so someone adds a rule. Then a new problem appears, so that rule gets a second paragraph and an exception. After a year, the file turns into a record of past problems.
I recognize this pattern right away because it happens in my own AGENTS.md files. An agent edits the wrong file, or publishes a post before I’ve reviewed it, or uses the wrong public product name, and each time my instinct is to drop in another rule.
Every rule makes sense the day I add it. The trouble shows up months later, when the agent has to read a pile of rules written at different times, some repeating each other and others pulling in opposite directions. I call this prompt debt. Like messy code, it gets harder to maintain over time, except you also pay an extra cost because the model has to read all those instructions on every task.
A prompt is not a lock
A few Hacker News comments pointed out that the earliest prompts had fewer safety rules, though those first models still had safety checks outside the prompt. A system prompt is only one layer. Training shapes how the model behaves, separate programs can check inputs and outputs, and product permissions can block dangerous actions before they run. You can even see those other layers showing up in the newest prompts, which mention outside safety checks, added reminders, and requests moving between models.
If something must stay safe every single time, put that limit in code instead of trusting the prompt alone. Telling an agent to ask before deleting production data is fine as guidance, as long as the delete tool itself still requires a clear approval step. Secrets work the same way: keep them out of the model’s context instead of putting them in front of it and asking it not to repeat them.
Normal language is now part of software
One Hacker News commenter was surprised that these prompts are written in normal language. To me that makes sense, because language is how we tell a language model what we want. In a normal program, you change behavior by editing code or data, whereas with an AI model you can often change how it behaves just by rewriting a sentence. Anyone on the team (product, support, safety, engineering) can read and review the exact same file, and Anthropic can update it without training a new model.
Still, a prompt doesn’t behave like normal code. A model can misunderstand a sentence, get tripped up when two rules disagree, or lose track of an earlier rule once a later message pulls its attention away, and the same prompt can still produce different answers. I think of a prompt more like giving directions to a very capable person. Good directions matter a lot, even if they don’t control every move.
Rules can pull in different directions
A lot of the Hacker News thread focused on rules in the prompt that seem to disagree. Claude is told to stay brief while still giving a full answer when asked, to be warm and curious without asking unneeded questions, to help by default while refusing dangerous requests, and to explain a political view fairly alongside the strongest opposing view. Those rules create tradeoffs Claude has to weigh during each conversation based on what the person needs.
That juggling act gets heavier once you look at everything else competing for attention. The same idea can show up in the system prompt, a skill, a tool description, a project file, and the user’s request, leaving Claude to figure out which instruction matters most.
Anthropic ran straight into this problem inside Claude Code. In its article on context engineering for Claude 5, the team wrote that their instructions were fighting each other, so they removed more than 80% of the Claude Code system prompt and found no clear drop on their coding tests. Sometimes a better model works better with fewer instructions. One rule they added to that prompt later is the one in I want my coding agent to do what I ask.
It’s worth keeping those two prompts separate, since some Hacker News commenters mixed them up. That cut happened in the Claude Code prompt, whereas the 3,200-word prompt on that history page belongs to the Claude chat product.
A long prompt uses space and attention
Every model has a limit on how much text it can read at once, called the context window. The system prompt takes up part of that space right away, and whatever is left has to hold the conversation, uploaded files, search results, tool descriptions, and the reply.
I ran into the same constraint in my RAG chunking guide. Everything you hand to a model competes for room in that same window.
Anthropic offers prompt caching so the system can process a repeated opening once and reuse that work on later requests. That helps with speed and cost, even though the cached prompt still takes up its full share of the context window, as Anthropic explains in the prompt caching documentation.
A long prompt also leaves less room for the task itself, makes the model dig for the rules that apply right now, and gives someone a growing list of rules and facts to keep current. People in the Hacker News thread brought up compute and energy use too, though you can’t work out the exact cost from word count alone. Caching, the model design, and Anthropic’s servers all change the numbers.
The missing tool descriptions matter
Anthropic doesn’t publish the tool descriptions or the Claude Code prompt on that page, so we’re only seeing part of the picture.
A tool description tells Claude what a tool does, what inputs it needs, and what it returns. Clear descriptions like that can replace plenty of general rules and keep the instructions right next to the action. Anthropic’s tool context guide recommends loading tool descriptions only when Claude needs them, which saves context space and cuts down on unrelated instructions.
Reading only the main prompt is like opening one important file in a large app. You learn a lot from it, though you still miss the rest of the product.
What I would change in my own agent setup
Reading these prompts made me look at my own instructions differently.
Keep the main prompt as short as possible, sticking to what the product is, the order of instructions, and the rules that apply to every task. It shouldn’t try to explain every feature in the product.
Special workflows belong in skills that load only when you need them, like a writing skill for writing or a deploy skill for deployments. That’s the idea behind fstack, where each skill handles one job.
Fast-changing facts like model names, prices, product status, and schedules shouldn’t live in the main prompt either. Put them in one place that tools can read when needed instead of editing prompt text every time something changes.
Tool instructions belong right next to the tools. If a tool can do something dangerous, make the safe path clear in how it works and let the permission system block actions that need approval.
Treat instruction files like code when you review them. Check every change, remove rules that are no longer needed, and clean up overlapping rules that cover the same behavior. Test important changes with real tasks, and enforce any rule that always has to hold in code instead of prose.
Most of all, stop adding a new rule after every bad answer. The model might be missing information, the tool might be confusing, the workflow might need an approval step, or the model might have just made a mistake. Most of the time, another line in the prompt isn’t the right fix.
I read 29 versions of Claude being told how to be Claude, and the pattern is easy to see. Adding one more sentence feels easy in the moment, and over time those additions make the whole file harder to understand and maintain. Keeping a small, stable set of core rules and enforcing hard safety limits in code is a much easier setup to live with.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: