Official Claude Code Token Saving Guide: 11 Tips to Extend Your Quota
Anthropic has released the Claude Code Token Saving Guide. The core message is simple: the longer the context, the more expensive each subsequent round becomes. Chatting, document handling, and command outputs will continue to consume tokens, thus depleting your quota faster.
Here are 11 practical tips:
Use /clear to switch tasks. Clear the context after completing a task. If you are still working on the same task but the previous content is no longer useful, use /compact to compress it. Longer conversations become more expensive as each round will reintroduce previous content.
Choose the model and effort settings at the start. Executing /model or /effort midway will clear the prompt cache, requiring the entire context to be processed again in the next round. Fast mode should also be enabled from the beginning.
Compact before leaving. Subscription users have a cache that expires after about 1 hour, while the API Key defaults to about 5 minutes. If you return after the cache expires, the next round will usually require reprocessing the entire context. Compressing while the cache is still valid is cheaper.
Use /rewind if the last few rounds have gone off track. It only deletes the last few rounds, allowing you to continue using the earlier cache. /compact rewrites the entire conversation, which is more costly.
Use @filename directly for files. Claude will access the file in the first round, saving a Read or search step. A file typically only needs to be referenced with @ once; repeating @ may inadvertently add the same file back into the context.
Be specific in your prompts. Instead of saying "the test failed," directly tell Claude which test and which file. Otherwise, it may grep, search, and read through multiple files, and these results will continue to occupy context in each subsequent round.
Minimize output from tests and logs. Outputs from builds, tests, and git logs will remain in the context. You can add a quiet parameter to only output errors or use tail to truncate. Claude Code will automatically write command outputs exceeding 30,000 characters to a file, leaving only the summary and path in the session.
Use /context to check startup load. At the beginning of a new session, you can see how much context is occupied by CLAUDE.md, MCP, and tool definitions. CLAUDE.md should only contain general rules, while specialized processes should be loaded on demand through Skills, and unused MCPs can be turned off with /mcp.
Use smaller models and lower effort for simple tasks. Larger models are more expensive for both input and output, and thinking also counts as output tokens. For purely execution-based tasks, there’s no need to always use the highest-tier model and inference intensity.
Delegate large logs to subagents, and avoid misusing them for small tasks. Subagents have independent contexts and only bring back the final results to the main session, making them suitable for reading large logs or searching documents. However, they also need to read files again and run multiple rounds themselves, which can make small tasks more expensive. Tasks like searching and reading logs can also specify Haiku or Sonnet.
It’s best to run /loop in a separate session. Each loop is a complete round and will carry all the current session's context. If the interval exceeds the cache time, it may also accumulate a cache expiration. The official recommendation is to open a new terminal and run loops in a clean session.
Ultimately, Anthropic's advice boils down to: avoid stuffing useless content, clear tasks promptly, and don’t let sessions drag on too long.
-- Price
This content is provided for general informational purposes only and doesn't constitute financial, investment, legal, or tax advice. Any events, rewards, online promotions, or related information mentioned herein should not be considered a recommendation, solicitation, or invitation to purchase, sell, trade, or otherwise deal in any crypto assets. Crypto assets are highly volatile and may result in loss. The availability of WEEX services, products, and related events may vary by region. You are responsible for ensuring that your participation is in accordance with applicable local laws and regulations.
You may also like

OpenSea Integrates Real-Time On-Chain Data with Perplexity

Youth May Have to Spend Up to 76% of Their Salary on Rent: Where Housing is Most Expensive

Financial Companies and Pawnshops Report Record Profit of 8 Billion UAH

HMRC Reports Capital Gains Tax Data on Crypto Assets, 17,600 Individuals Declare Gains

Wildberries Founder Tatyana Kim Loses $3.1 Billion Due to Attacks on Logistics

Bithumb Wins First Instance in Bitcoin Misdelivery Recovery Case

Shin Hyun-sung: Fiscal Spending Does Not Conflict with Monetary Policy

Korea Investment & Securities Prepares to Enter the Tokenized Securities Market

Google Launches Gemini 3.5 Transcribe Voice-to-Text Model

X to Implement 'Gateway' to Cryptocurrency Trading, Possibly Connecting to External Services via Cashtags

Japan's Financial Services Agency Supports Tokenized Deposit Interbank Settlement Verification with 43 Institutions Participating

Iran's Foreign Ministry Criticizes US Policy Towards Iran as a Farce

SOL Spot ETF Sees Daily Net Inflow of $9.1351 Million

Georgia Recovers Six-Figure Cryptocurrency

Universal Token Rating (UTR) for Over 100 Tokens Released by Forgd and DefiLlama

DeFi Development Launches Real-Time Data Platform for Solana

Meta to Pay $18 Billion for Youth Online Safety Initiative

NBU Extends Payment Terms for Agricultural Exports to 150 Days

BCRA Reform: Key Points of Javier Milei's Project and Changes

Report from MEXC Ventures: Multi-Asset Trading Increases in Asia

Bernstein Predicts Bitcoin Will Reach $150,000 by Mid-2027 and Peak at $300,000 in 2029

Ali Qianwen Launches Multi-Agent Collaboration Feature

Japan Develops Blockchain Infrastructure, South Korea Prepares Digital Asset Law

X Issues Cease and Desist Letter to Nitter, Demanding Shutdown of Services and Code Repository

Australian Retirement Trust Increases Yen Holdings, Reduces U.S. Treasury Exposure

Manus Data Recovery Feature Reopened, Compensation Issued to Affected Accounts

iPhone 17 Becomes Best-Selling Smartphone in Q2, Capturing 6% of Global Smartphone Shipments

Czech Bitcoin Donation Case Defendant Signals Cooperation, Prosecutors Seek 20-Year Imprisonment

B.AI API Compatible with Codex Supports Calling GPT Series Models




