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

marsbitPublished on 2026-07-27Last updated on 2026-07-27

Abstract

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

Related Questions

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.

Related Reads

Goldman Sachs: July Smashes Through Crowded Trades, U.S. Stock Bull Market Not Broken but Harder to Navigate

Goldman Sachs: July Sees Crowded Trades Unwound, U.S. Bull Market Intact but Getting Tougher. The U.S. stock market in July did not see an index-level crash, but rather a significant unwinding of speculative positions. While the S&P 500 remained stable—trading within a narrow 3.5% range and staying within 2% of its high—underlying market dynamics were volatile. Heavily crowded trades, particularly in high-momentum tech, AI-linked stocks, and Asian strategies, faced severe pressure and forced deleveraging. Data indicates this was a meaningful cleanse, not a minor adjustment. Global tech exposure saw its largest sell-off in over five years, leverage in Korean equity ETFs plummeted, and Goldman's prime brokerage recorded the largest gross exposure reduction since late 2022. Leverage on momentum factors among fundamental long/short clients fell to the 28th percentile of its one-year range. The AI trade narrative shifted from pure potential to a focus on tangible returns. While Meta failed to show clear AI monetization, Microsoft and Amazon provided evidence that massive capital expenditure is translating into scalable revenue and product growth, preventing a blanket sell-off of the AI sector. The Federal Reserve's more opaque communication style and volatility in long-end Treasury yields have introduced new friction, particularly for rate-sensitive growth and tech stocks. The broader outlook for U.S. equities remains favorable, supported by a strong economy, robust earnings, and substantial AI capital expenditure. However, risk/reward is no longer cheap, and the market's upward elasticity has weakened. The Nasdaq 100's trajectory—up 12% year-to-date despite significant pullbacks—illustrates that the bull trend persists but the path is becoming more difficult. The key lesson from July is that the market no longer rewards crowded, highly leveraged trades, requiring more disciplined and liquid portfolio approaches.

marsbit30m ago

Goldman Sachs: July Smashes Through Crowded Trades, U.S. Stock Bull Market Not Broken but Harder to Navigate

marsbit30m ago

Interview with Robinhood Executive: Meme + Tokenized US Stocks as "Barbell" Customer Acquisition Strategy, All Business Lines Achieve Hundreds of Millions in Revenue

Interview with Robinhood executive Johann Kerbrat reveals the company's "barbell" customer acquisition strategy for its new Robinhood Chain, combining meme tokens with tokenized stocks. Three weeks after mainnet launch, the chain has seen over $3B in weekly DEX volume and 105M transactions. Kerbrat explains the logic behind the permissionless chain: meme tokens attract DeFi users, while tokenized real-world assets (RWA), currently over 90 US stocks and ETFs accessible in 120+ countries, serve global users. The goal is to bring Robinhood's 27 million funded accounts on-chain by simplifying DeFi with a user-friendly interface, exemplified by features like Robinhood Earn which offers yield without requiring wallet management. Built on Arbitrum's technology stack for its speed, low cost, and Ethereum's security, the chain focuses on financial products like Earn, spot trading, and perpetuals. Kerbrat downplays direct competition with platforms like Base, emphasizing the goal of expanding the overall market for on-chain assets. He details selective partnerships (e.g., Morpho, Lighter) based on compliance, unique UX, and differentiation. While regulatory clarity is pending for US perpetuals, the expansion continues via Bitstamp in Europe. Finally, Kerbrat positions Robinhood as a "super app" integrating stocks, options, crypto, banking, and AI trading, with all major business lines generating hundreds of millions in revenue. For the chain, current priority is driving adoption over maximizing gas fee revenue.

marsbit2h ago

Interview with Robinhood Executive: Meme + Tokenized US Stocks as "Barbell" Customer Acquisition Strategy, All Business Lines Achieve Hundreds of Millions in Revenue

marsbit2h ago

Fidelity Q3 Report: BTC, ETH, and SOL Continue to Build Bottoms; How Much Further Will This Crypto Bear Market Go?

Fidelity's Q3 Crypto Signal Report analyzes the current bear market, noting Bitcoin (BTC), Ethereum (ETH), and Solana (SOL) are in a prolonged bottoming phase. Key indicators like the weighted Net Unrealized Profit/Loss (NUPL) have turned negative (-0.01), signaling the market is slightly below its aggregate cost basis, with BTC acting as the primary stabilizing asset. BTC's dominance has risen to 68%, indicating a lack of capital rotation to other digital assets. Performance has been weak across the board, with BTC, ETH, and SOL down significantly year-to-date. Market sentiment is depressed, exacerbated by substantial outflows from spot ETPs and a challenging macro environment. The report compares the current ~203-day downtrend to historical ~300-day bottoming cycles, suggesting the process may be two-thirds complete, with late 2026 as a potential timeframe to monitor. For Bitcoin, NUPL at 0.09 indicates cautious sentiment, while momentum signals remain negative. The Yardstick metric points to potential undervaluation relative to network security (hashrate). Ethereum's NUPL is deep in the "capitulation" zone at -0.43, a historically positive signal for future returns, though its momentum and network fee revenue are negative. Solana shows the deepest NUPL at -0.72 but demonstrates relative resilience in on-chain activity and stablecoin transfer volume. The report concludes that while several metrics are near historical capitulation levels, a definitive market bottom has not yet been established. The path forward likely involves continued consolidation, with BTC's relative strength and fundamental on-chain usage for ETH and SOL providing key areas for investor observation.

marsbit2h ago

Fidelity Q3 Report: BTC, ETH, and SOL Continue to Build Bottoms; How Much Further Will This Crypto Bear Market Go?

marsbit2h ago

Trading

Spot
活动图片