Everyone Got the Opus 4.7 Leak Wrong. Here Are Ten Patterns That Really Matter for Your Prompts.

    ·
    Everyone Got the Opus 4.7 Leak Wrong. Here Are Ten Patterns That Really Matter for Your Prompts.

    TL;DR

    • Claude Opus 4.7 shipped on 16 April 2026. Within days, the full system prompt leaked to GitHub via the CL4R1T4S and system_prompts_leaks repositories
    • The internet ran with "emotional framing is the secret." That is the wrong lesson
    • The real lessons are structural: how the prompt is organised, how rules are weighted, how tools are discovered, how defaults are set
    • Ten patterns you can copy into your own CLAUDE.md, agent configuration, or system prompt this week
    • This is a different event from the 2 April Claude Code source leak. Related, but distinct

    Claude Opus 4.7 shipped on 16 April 2026. A few days later, the full system prompt was sitting on GitHub, mirrored across multiple public repositories. Simon Willison published a clean diff against the prior Opus 4.6 prompt.

    The internet took one look and ran with the wrong story.

    "Anthropic is using emotional framing to get better answers from the model." "Claude has feelings now." "Prompt engineering is dead."

    That is not the lesson. The emotional framing bits make for good Twitter. The structural patterns are what matter if you are running an AI inside your business.

    This is also a separate event from the 2 April Claude Code source code leak. That leak exposed the full 512,000 lines of Claude Code's TypeScript source. This one exposed a much smaller artefact: the system prompt Anthropic wires into every Opus 4.7 session. Both matter. For different reasons.

    Here are the ten structural patterns that show up in the Opus 4.7 system prompt, and how to apply each one to your own system prompts.

    First, Is the Leak Real?

    A fair question to ask before building lessons on top of it.

    Short answer: yes. Multiple signals line up. The model strings match Anthropic's public naming conventions. The knowledge cutoff date (end of January 2026) aligns with observed Opus 4.7 behaviour. Internal date references are consistent with the 16 April 2026 ship date. The operational details (tool signatures, output format rules, escalation paths) are specific enough to be hard to fabricate.

    Treat it as genuine. Treat individual sections with a small amount of caution. Someone could have altered a part before mirroring the whole. The patterns themselves are consistent with the rest of Anthropic's published guidance, so they hold even if minor details are off.

    Pattern 1: Modular Structure With Named Blocks

    The prompt is not a wall of text. It is carved into named sections with explicit purposes. "Tools," "Behaviour," "Output format," "Safety," and so on. Each section is self-contained.

    The model reads structured instructions more reliably than undifferentiated prose. Named blocks let the model weight sections differently, cross-reference them, and know where to look for a rule.

    Your CLAUDE.md should have named sections. "Voice," "Clients," "Approval workflow," "Deliverables," not a single paragraph of "here are my standards." Use headings. The model rewards structure.

    Pattern 2: Direct Imperatives Over Polite Suggestions

    The prompt says "do X." Not "you may want to consider X." Not "it is often helpful to X." Direct imperatives throughout.

    Polite hedges dilute the instruction. The model optimises for pleasing the user, and soft framing gives it permission to drop the rule under pressure.

    Rewrite your prompts in the imperative. "Never use em dashes." Not "try to avoid em dashes." "Ask before making assumptions." Not "you might want to ask." The small wording changes produce measurable behaviour changes.

    Pattern 3: The Rules That Matter Most Get Repeated

    Important rules appear more than once. Safety boundaries in particular get stated, then restated in different language later in the prompt.

    The model weights instructions partly by frequency and partly by position. Rules stated once late in a long prompt get less weight than rules reinforced in multiple places.

    Find the two or three rules that must not be broken. State them at least twice. Once explicitly in your rules section, once as a reminder inside the relevant workflow. Brand voice rules and non-negotiable client policies are the ones to double up on.

    Pattern 4: Positive Framing Over Long Don't-Lists

    Most of the prompt is "do this," not "do not do that." When there is a don't, it is specific and short.

    Long don't-lists produce anxious over-refusal. The model ends up flagging benign things because the prompt taught it to be cautious everywhere. Positive framing (do this, this way) produces more useful behaviour.

    Convert your don't-list into a do-list. Instead of "do not write long sentences," write "write sentences under 15 words." Instead of "never mention pricing," write "for pricing questions, send the reader to the pricing page."

    Pattern 5: Explicit Output Format

    The prompt specifies that prose is the default. Bullets, tables, and headings are used only when the user asks for them or the content clearly needs them.

    The model has a strong default toward bullet-heavy output. Without explicit guidance, every response becomes a listicle. Not useful for most work.

    State the output format in your CLAUDE.md. "Default to prose. Use bullets only for three or more parallel items." "Keep tables to columns that fit on mobile." "Write in paragraphs for strategy, bullets for steps." The model listens when the format rule is explicit.

    Pattern 6: Tool Discovery and Deferred Loading

    The prompt sets up a search-first pattern for tool discovery. Tools are not all loaded upfront. The model is taught to search for the right tool when needed.

    Loading every tool into every session burns tokens, clogs the context window, and confuses the model. A discover-then-use pattern keeps the context clean and the behaviour focused.

    For most business users, this is Anthropic's problem to solve. For anyone building with Claude Code plugins or Managed Agents, design your tool surface the same way. Give the agent a way to find tools, not a firehose of every tool upfront.

    Pattern 7: Safety State vs Authenticity

    The prompt handles the tension between "be safe" and "be honest about what you are." It lets the model acknowledge what it is (a model with a knowledge cutoff, not a human) while still operating helpfully within its safety rules.

    Overly strict safety framing produces a model that refuses everything. Overly loose framing produces a model that hallucinates past its boundaries. The tension is managed explicitly in the prompt.

    Be honest in your own prompts about what the AI is and what it can do. Do not roleplay it as a human expert. Do not claim it is smarter than it is. Honesty about the tool's nature produces better outputs than hype framing.

    Pattern 8: Default to Helpful, Explicit About Limits

    The prompt biases the model toward helpful answers rather than cautious refusals. Over-refusal is treated as the main failure mode, and vague guardrail language is named as the usual cause.

    Most business users experience AI failure as "it refused to do something reasonable." The fix is not looser guardrails. It is more specific ones. Tight, specific boundaries let the model be helpful everywhere else.

    Swap generic caution for specific rules. Replace "be careful with sensitive topics" with "do not share client names across accounts, do not speculate on pricing beyond the listed rates." Specificity makes helpfulness possible.

    Pattern 9: Possessive Framing

    The prompt consistently uses possessive constructions. "The user's preferences." "The user's context." Not "you, the user."

    Small wording shifts change how the model treats information. "The user's preferences" frames those preferences as durable context to be respected. "You, the user" treats the user as an entity being talked to. The first framing produces better continuity across a session.

    In your own prompts and context docs, refer to your business as "the business's standards," your clients as "the business's clients," and your voice as "the business's voice." The model treats possessively framed attributes with more consistency.

    Pattern 10: The Prompt Is the Product

    The biggest lesson from reading the full prompt: the system prompt is not a throwaway wrapper. It is Anthropic's primary product surface. Every behaviour of the model is shaped by it. Thousands of hours of engineering work go into every line.

    If you treat your own system prompts and CLAUDE.md files as afterthoughts, you are leaving the biggest lever on the table. A good system prompt is worth more than any model upgrade. It is what turns a generic AI into a tool that runs your business.

    Invest real time in your CLAUDE.md. Treat it as a living document. Update it when your business rules change. Review it monthly. If yours has 200 characters or fewer, you have not yet started using Claude the way Anthropic intended.

    What This Means for Your Business

    The two AI leaks of the last six weeks have handed you something rare: two complete blueprints of how a frontier AI company builds its tools. The Claude Code source leak showed you the architecture. The Opus 4.7 system prompt leak shows you the prompt structure.

    Most people will read a summary, nod, and go back to using the tool the same way. A few will take the patterns and apply them. The gap between those two groups is the competitive advantage.

    If you are setting up Claude Code or Claude Cowork inside your business, these ten patterns are the starting point for your own CLAUDE.md and system prompts. The framework for choosing which tool to set up is in our Code vs Cowork pillar. The bigger map of where Claude fits in your overall AI stack is in the five levels of the Anthropic stack pillar.

    Where to Start This Week

    Three actions.

    Read your current CLAUDE.md. If you do not have one, create one. Apply the ten patterns above. This is a one-hour exercise that will compound every future AI interaction.

    Pick your three non-negotiable rules. The ones that must not be broken. State them explicitly, state them twice, and put them at the top of your system prompt.

    Convert your don't-list into a do-list. Wherever your current prompts say "do not X," rewrite them as "do Y instead." Positive framing wins.

    The Opus 4.7 prompt leak is not a curiosity. It is a free masterclass in prompt engineering from the company that builds the models. Anyone running Claude in production should read it twice.


    Frequently Asked Questions

    What is the Opus 4.7 system prompt?

    A system prompt is the set of instructions Anthropic wires into every session of a given Claude model. It defines the model's default behaviour, tone, output format, tool handling, and safety rules. The Opus 4.7 system prompt is the one attached to the Opus 4.7 model, which shipped on 16 April 2026.

    How did it leak?

    It appears in multiple public GitHub repositories that aggregate leaked system prompts across major AI providers. The elder-plinius/CL4R1T4S and asgeirtj/system_prompts_leaks repositories both host the full text. Simon Willison published a clean diff between Opus 4.6 and 4.7 on his blog. See Changes in the system prompt between Claude Opus 4.6 and 4.7.

    Is this the same thing as the Claude Code source leak?

    No. The Claude Code source code leak happened on 2 April 2026 and exposed the full TypeScript source for the Claude Code product. The Opus 4.7 system prompt leak happened after the model's 16 April ship date and exposed a much smaller artefact: the system prompt Anthropic attaches to Opus 4.7 sessions. Different events. Different lessons.

    Is using the leaked prompt legal or ethical?

    Reading a publicly mirrored document is not illegal. Copying large portions of the prompt verbatim into a commercial product is a different question. The patterns and structural lessons covered in this post are what anyone should learn from the leak. Copy-pasting Anthropic's proprietary wording into your own system prompt is not the recommended path.

    Why does emotional framing in the prompt not matter as much as people are saying?

    Anthropic uses a small amount of emotional framing in the system prompt, and the internet seized on that as the story. It is not the main story. The model's behaviour is shaped far more by the structural choices (named blocks, repeated rules, positive framing, output format, tool discovery) than by a handful of emotional phrases. Copying the emotional style without the structural rigour will not reproduce the results.

    What is the single most important takeaway for a business owner?

    Your system prompt (CLAUDE.md, agent configuration, Cowork workspace context) is the primary lever that turns a generic AI into a useful business tool. Invest time in it. Treat it as a living document. The ten patterns above are the framework for doing that well.


    Take Action

    The prompt patterns above are only half the picture. The other half is knowing which Claude tool to install them in. Start with Claude Code vs Claude Cowork: the one-line test to pick the right surface, then apply the patterns.

    For the wider view of where the Opus 4.7 release sits in Anthropic's April 2026 push (Managed Agents, Cowork GA, Routines, Opus 4.7 all shipped inside ten days), read the five levels of the Anthropic stack pillar.

    Sources referenced in this post: