Claude Code Slashes 80% of Prompt Tokens, But Opus 5 Just Adds Them Right Back In

marsbitОпубліковано о 2026-07-27Востаннє оновлено о 2026-07-27

Анотація

Claude Code, the AI coding assistant from Anthropic, recently announced a massive reduction of over 80% in its system prompt content for models like Opus 5 and Fable 5. The goal was to remove verbose, often conflicting, rules (like strict commenting and documentation requirements) and replace them with a simpler directive: write code that matches the style of the surrounding project. This "pruning" aims to make the model more efficient by reducing internal conflict from overlapping instructions, with no measurable performance drop reported. However, a developer's (@chenchengpro) investigation revealed a twist. While the prompt was drastically cut from 15,225 characters in Opus 4.7 to 4,467 in Opus 4.8, it *increased* by approximately 72% to 7,694 characters in Opus 5. This isn't a contradiction. The "over 80% cut" refers to the overall shift from the old, detailed rulebook-style prompts to a new, streamlined system. The 72% increase for Opus 5 represents new, targeted instructions added to manage the model's enhanced capabilities. Opus 5 is more proactive—it likes to report progress, generate longer outputs, use sub-agents, and expand task scope. The added prompt content (roughly 3,755 characters) primarily provides guidelines for "Delivering work" (controlling task scope, progress reporting) and "Corrections" (limiting excessive self-correction). These new rules are necessary to curb potential over-engineering on simple tasks, ensuring efficiency even as the model becomes ...

Claude Code just announced a massive cut to prompt tokens, and immediately after, Opus 5 was caught red-handed doing the exact opposite!?

And this reversal wasn't just a small one: it was a whopping 72% increase. (lol)

These seemingly contradictory numbers come from official Anthropic sources and tests by a netizen.

A couple of days ago, Anthropic announced they had deleted over 80% of the system prompt content for models like Opus 5 and Fable 5.

Then, right on its heels, netizen Chen Cheng (@chenchengpro) conducted a little 'packet sniffing'—

The guy intercepted and counted the actual system prompts received by different models, only to find that Opus 5's prompt was actually 72% longer compared to Opus 4.8??

One slashes 80%, the other grows 72%.

Anthropic, are you guys putting your prompts on a diet, or are you secretly sneaking in extra snacks behind our backs......

Claude Code Prompt Overhaul: Official Team Goes on a Deleting Spree, Slashing 80%

Let's first talk about what Anthropic actually deleted.

According to the official post, early Claude Code had numerous explicit, even absolute, rules written into the system prompt to prevent the model from making mistakes.

For example, default to not writing comments, not writing multi-paragraph docstrings, not creating plans or analysis documents unless the user requests it.

In other words, wherever the model was prone to trip up, humans would patch in a rule!!

Over time, the system prompt behind Claude Code became more and more like a thick “Employee Handbook.”

This method was certainly useful for early models, but as Claude's capabilities improved, problems gradually emerged......

The most direct one was that instructions from different places easily conflicted with each other.

Faced with this overlapping and contradictory information, Claude would have to spend effort figuring out whose instructions to follow before even starting work!!

So, Anthropic simply performed “major surgery” on Claude Code's prompts.

One very obvious change happened regarding commenting and documentation rules.

The previous long list of rules like 'default to not writing comments' and 'absolutely do not write multi-paragraph docstrings' has now been compressed into a single sentence—

Write code that matches the style of the surrounding code, maintaining consistency with its comment density, naming conventions, and common practices.

Translating for friends: first look at how this project originally writes code, then use your own judgment based on the actual situation~

Of course, there are many similar changes.

The bottom line is, Anthropic deleted over 80% of the system prompt content in newer generation models like Opus 5 and Fable 5......

It's worth noting that according to Anthropic's programming evaluations, this large-scale deletion did not lead to any measurable performance degradation, so no need to worry too much.

(But I still want to ask... you cut 80% of the prompt, and the model's work didn't get worse at all, really???)

Alongside this super slimming, the context engineering rules for Claude Code were almost completely overhauled.

For developers using Claude Code or developing Agents based on Claude, Anthropic also provided several more specific adjustment suggestions.

I've also helped friends do a light summary—

Trim CLAUDE.md: Only keep the project's special rules. Information Claude can discover from the code itself can be deleted.

Break long instructions into Skills: Save processes like code review, testing, and publishing separately, and load them only when needed.

Delete duplicate instructions: Write a rule only once. Content already written in tool descriptions doesn't need to be repeated in the system prompt or CLAUDE.md.

Reduce tool call examples: Clearly explain parameter meanings, options, and return results. Reduce fixed call examples.

Provide executable references directly: Developers can give Claude test cases, existing code, HTML prototypes, or other project files as reference, reducing long text descriptions.

In summary, Anthropic's new approach can be boiled down to one sentence—

Give Claude less of a nitpicky employee handbook, and spend more effort designing clear tools, environment, and task boundaries!!

What a轰轰烈烈的 (grand and vigorous) prompt token layoff......

Netizen's Packet Sniffing: Why Did Opus 5 Grow Another 72%???

Up to this point, Claude Code's prompt token layoff seems quite successful.

But a developer netizen, looking at the "over 80%" figure given by Anthropic, suddenly had a very simple question—

Did it really get cut that much? (Good question.jpg)

So, netizen Chen Cheng (@chenchengpro) pointed the Claude Code CLI to a local server, intercepted all the actual system prompts received by different models, and captured them.

Then, a rather dramatic set of data appeared:

Opus 4.7: 15225 characters

Opus 4.8: 4467 characters

Opus 5: 7694 characters

Yes, from Opus 4.7 to Opus 4.8, Claude Code's system prompt did indeed suffer a 'big cleaver' cut.

The original 15225-character prompt content was slashed down to 4467 characters, losing a huge chunk.

However, with the latest Opus 5, the plot suddenly reversed—

The actual system prompt it received grew from 4467 characters to 7694 characters, a whopping ~72% increase compared to Opus 4.8!!!

So, Claude Code's prompt slimming definitely happened, but this large-scale deletion mainly occurred in the Opus 4.8 phase.

After Opus 5's release, Anthropic added quite a bit of content back into the trimmed-down prompt......

Let's dig deeper! Keep investigating!

Continuing to look into Claude Code's implementation, attentive netizens discovered another key detail

Each version actually contains two sets of Prompts, and a function decides which set to finally send to the model based on the model ID.

Models like Sonnet, Haiku, Claude 3, and some older Opus models use the more detailed old Prompt; newer models like Opus 5, Fable 5 use the significantly trimmed new Prompt.

In other words, Claude Code did remove a lot of old, cumbersome operational rules for new models.

But with Opus 5, the model developed some new behavioral habits, forcing Anthropic to add back more targeted constraints.

Looking at it this way, the official "deleted over 80%" and the developer's measured "Opus 5 increased 72%" can both be true simultaneously.

The former number describes the overall change as Claude Code moved from the old prompt system to the new one; the latter number compares Opus 5 with its immediate predecessor, Opus 4.8.

Even after growing back some, Opus 5's 7694 characters are still only about half of Opus 4.7's.

So the question arises again:

What exactly did Anthropic write into those extra few thousand characters for Opus 5?

Upon further breakdown, attentive netizens found it mainly added two sections exclusive to Opus 5:

Delivering work: Rules on how to control task scope, report progress, and deliver results.

Corrections: Limits on the model repeatedly explaining and correcting its own previous mistakes.

These two parts together account for about 3755 characters, basically covering the difference between Opus 5 and Opus 4.8~

As for why Opus 5 needed these additions back, it's mainly related to the model becoming more proactive—

According to Anthropic's published prompt guidelines, Opus 5 prefers to report progress while executing tasks, generates longer responses and documents typically, and is more willing to call sub-Agents, expand task scope, and repeatedly verify results.

For complex, long-running tasks, these habits can indeed be useful.

But if a user just wants to change a few lines of code, and Opus 5 still assembles a sub-Agent team and performs multiple rounds of checks, token consumption and wait times will also increase......

Therefore, the new prompt added more targeted requirements: when is it suitable to call sub-Agents, how frequently to report progress, at what scope should the task stop, and how to control the final output length.

At this point, the seemingly contradictory data from earlier makes sense.

What Claude Code deleted this time were mostly the cumbersome operational details left over for older models. The 72% that Opus 5 grew back is mainly used to constrain the proactive behaviors of the newer, more capable model.

The more the model can work independently, the fewer places humans need to hand-hold it. But as the model gains more initiative, where it can take the lead and at what point it should stop still needs a line drawn in advance.

Looking at it this way, Claude Code's prompts did indeed get slimmer, but Opus 5 just gained weight in a different place.

Indeed, even AI can't escape this rule: old bad habits are reduced, but new ones will precisely grow somewhere else. (doge)

Reference links:

[1]https://x.com/chenchengpro/status/2081339012632215684

[2]https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models

This article is from the WeChat public account "QbitAI", author: Focus on Frontier Technology

Пов'язані питання

QWhat were the two seemingly contradictory statistics mentioned in the article regarding Claude Code's system prompts?

AAnthropic claimed a deletion of over 80% of system prompt content for new models like Opus 5, while a user's measurement showed Opus 5's prompts actually increased by 72% compared to Opus 4.8.

QWhat was the primary reason given for Anthropic's initial large-scale deletion of system prompts in Claude Code?

AEarly system prompts had accumulated many explicit, absolute rules to prevent model errors, which eventually led to internal conflicts and confusion for Claude when instructions overlapped or contradicted.

QWhat specific new behavioral tendencies of Opus 5 did the re-added prompt content (the ~72% increase) primarily aim to constrain?

AThe re-added content aimed to constrain Opus 5's increased proactivity, such as its tendency to frequently report progress, generate longer outputs, call sub-agents, expand task scope, and repeatedly verify results, to improve efficiency for simpler tasks.

QHow does Claude Code determine which set of prompts (detailed vs. simplified) to send to a model?

AA function within Claude Code uses the model ID to decide; older models like Sonnet, Haiku, Claude 3, and some older Opus versions receive the more detailed legacy prompts, while newer models like Opus 5 and Fable 5 receive the significantly simplified ones.

QWhat is the core new principle of context engineering that Anthropic advocates for with the updated Claude Code, as summarized in the article?

AThe core principle is to give Claude less of a detailed 'employee handbook' and instead focus on designing clear tools, environment, and task boundaries for it to work within.

Пов'язані матеріали

In Conversation with Ray Dalio: We Are Currently in an AI Bubble, with 1% of My Portfolio in Bitcoin

Ray Dalio, founder of Bridgewater Associates, warns in an interview that the current AI boom shows classic bubble characteristics, which could lead to significant economic downturns as seen in past cycles like 1929 or 2000. He explains that speculative enthusiasm, fueled by debt and overvaluation, often precedes a crash when rising rates or taxation force asset sales, causing widespread losses and recession. Dalio also outlines his "Big Cycle" theory, describing an approximate 80-year pattern where widening wealth gaps, massive government deficits, and shifting geopolitical power (like China's rise) create internal conflict and global instability. He emphasizes that we are in a late-cycle, transitional phase where traditional powers like the US and UK face decline. For personal wealth protection, Dalio advises diversification beyond cash into assets like stocks, bonds, real estate, and particularly gold, which he prefers over Bitcoin. While he holds about 1% of his portfolio in Bitcoin as a non-printable hard asset, he views gold as more secure from technological or governmental threats. Regarding AI's impact, Dalio believes it will disproportionately benefit capital owners, worsening inequality by replacing both physical and cognitive labor. He suggests that human intuition and emotional intelligence, combined with AI, will be key for future workers. On taxation, Dalio argues that wealth taxes are impractical and risk triggering asset sell-offs, reducing productive investment. He points to the UK as a cautionary example of debt, low productivity, and political strife. Geopolitically, Dalio foresees a more regionalized world, with the US showing weakness in prolonged conflicts like with Iran, akin to past imperial declines. The ideal outcome, he suggests, is coexisting powerful blocs (e.g., Americas, China-Asia Pacific) without major war.

marsbit1 год тому

In Conversation with Ray Dalio: We Are Currently in an AI Bubble, with 1% of My Portfolio in Bitcoin

marsbit1 год тому

Daily 7.2 Trillion KRW: Foreign Capital's Record Net Buying on Friday! Wall Street Says Headwinds for Korean Stock Fund Flows Have Subsided

South Korean stock market sees a dramatic shift in fund flows. On July 31, foreign investors made a record net purchase of approximately KRW 7.2 trillion in KOSPI stocks, marking a fundamental reversal from the persistent large-scale net outflows seen in previous months. This contributed to a significant narrowing of foreign net selling in July to KRW 9.8 trillion, down sharply from KRW 48.4 trillion in June and KRW 44.5 trillion in May. Simultaneously, domestic institutional pressure eased. South Korean pension funds and asset managers turned to a net buying position in July, purchasing KRW 1.0 trillion worth of KOSPI shares, contrasting with net sales in May and June. Market volatility is expected to be dampened by new financial regulations. Effective July 31, the Financial Services Commission tightened access for retail investors to single-stock leveraged ETFs by raising the minimum cash deposit requirement. Trading volumes for these products subsequently dropped to about 50% of their monthly average. Citigroup Research maintains its year-end KOSPI target of 10,000 points. The firm cites several supportive factors: the substantial easing of headwinds from capital outflows, a robust fundamental outlook for the semiconductor sector, historically low market valuations, strong economic fundamentals, and the potential for policy support from financial authorities if needed.

marsbit1 год тому

Daily 7.2 Trillion KRW: Foreign Capital's Record Net Buying on Friday! Wall Street Says Headwinds for Korean Stock Fund Flows Have Subsided

marsbit1 год тому

Thanks to Dice Rolls, Bitcoin Keys Are Stored Offline, But Not Everyone Will Do It

The article discusses using dice rolls to generate secure Bitcoin wallet seeds, providing entropy independent of potentially flawed hardware random number generators. It explains that each fair dice roll offers about 2.585 bits of entropy, with around 50 rolls needed for a standard 12-word seed phrase and 99+ recommended for higher security. This method gained attention after a vulnerability was revealed in some Coldcard hardware wallets, where a faulty firmware RNG (dating back to 2021) compromised generated keys. The analysis notes that while a dice-generated main seed was safe from this specific flaw, other Coldcard functions (like creating paper wallets, backup keys, or passwords) could still be vulnerable if they used the defective RNG. The piece argues that while dice-based entropy is technically robust, the manual process is error-prone, tedious, and unrealistic for most new users, who might make mistakes in recording or inputting rolls. It concludes that while manual entropy generation should remain an option for advanced users, the long-term goal is to develop reliable, user-friendly hardware and software that securely generates randomness without requiring specialized knowledge. Coldcard users are advised to check their firmware version and replace any secondary secrets (like paper wallet keys) created with vulnerable devices, while also considering multi-signature setups with devices from different manufacturers for added security.

cryptonews.ru7 год тому

Thanks to Dice Rolls, Bitcoin Keys Are Stored Offline, But Not Everyone Will Do It

cryptonews.ru7 год тому

Торгівля

Спот
活动图片