Claude Opus 5's System Prompt Leaks: 800 Lines of Memory Filesystem Rules
The prompt shows Anthropic treating memory not as a feature toggle but as a filesystem with concurrency semantics, content-filtering rules, and attribution tracking. Developers building agentic systems face the same class of problems — stale reads, write conflicts, sensitive-data leakage, and misattributed decisions — and this prompt is a worked example of how to constrain them in plain English.
Security researcher elder-plinius extracted Claude Opus 5's system prompt from claude.ai, exposing a 2,049-line document where 800 lines define a persistent memory filesystem. The system organizes user facts into five directories — profile, topics, areas, people, and preferences — and writes proactively during conversations without waiting for explicit save commands. It carries version numbers on every file and merges concurrent writes from multiple Claude sessions.
The prompt also encodes what must never be saved: race, religion, health diagnoses, political stance, ID numbers, and real-time location are blocked even when the user asks. Sensitive information cannot be wrapped in softer language and stored anyway. A separate conversation-search system retrieves old chats by topic or time, with explicit rules preventing Claude from recasting its own past suggestions as user decisions.
A four-step request-evaluation checklist routes visual output through MCP tools, file creation, or an in-chat Visualizer, and MCP App rules forbid Claude from choosing a ride-hailing or food-delivery service on the user's behalf. Every new capability comes with a matching set of guardrails against the specific ways it can fail.
The jump from Fable 5's two-line memory stub to Opus 5's 800-line filesystem suggests Anthropic sees persistent cross-session memory as a core product surface, not an experimental add-on.
Versioned file writes with conflict merging treat Claude sessions like concurrent database clients — a design choice that implies Anthropic expects users to interact with multiple Claude instances in parallel.
The prohibition against wrapping sensitive facts in softer language closes a loophole that many content-filtering systems leave open: the rule targets the fact itself, not its phrasing.
Requiring Claude to distinguish its own past suggestions from user decisions when searching old chats addresses a subtle trust problem — an AI that misattributes its own advice as user intent erodes reliability over repeated sessions.
The MCP App opt-in rules draw a hard line between executing a task and choosing a vendor, which matters when the model can spend the user's money through connected services.
The four-step deliverable routing — text, MCP tool, file, Visualizer — encodes a preference for the simplest sufficient output, which reduces unnecessary artifact generation.