Claude Code adds automatic fixes for excessive token usage in /usage menu
Claude Code adds automatic fixes for excessive token usage in /usage menu
Starting with Claude Code 2.1.305, users can automatically apply fixes that reduce excessive token usage and inspect Prompt cache hit/miss statistics.
Claude Code has introduced a way to automatically fix causes of excessive token usage directly in the /usage menu.
Starting with version 2.1.305, pressing f is enough for Claude Code to automatically apply the necessary fixes, such as setting /effort high.
A new Prompt cache row has also been added, showing the cache hit rate, the number of misses, and their likely causes.
More details about managing token usage: Claude Code cost documentation
Why it matters
AnalysisThe update helps developers monitor and reduce AI coding session costs with less manual configuration and clearer cache diagnostics.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Claude Code Projects: How a Single AI Orchestrates a Team of Autonomous Agents
A deep dive into Claude Code Projects: Coordinator and Threads architecture, parallel branches, shared memory via MEMORY.md, and cloud agent management.
Claude Code
The official terminal agent from Anthropic, operating directly in the command line via Claude 3.7 Sonnet with native support for Bash, Git, file systems, and the MCP protocol.
Developer Passed Production Database Password to Claude Code: Why It Is Risky Even With Enterprise Subscription
A junior developer copied a full production database connection string, including the admin password, into Claude Code while fixing a schema migration error. The AI assistant solved the issue quickly, but the team had to rotate the secret and restart services.
MCP Servers and Claude Code: A Practical Guide to Connecting and Building
How to expand Claude Code's capabilities with Model Context Protocol: connecting the filesystem, GitHub, PostgreSQL, Brave Search, and developing a custom server in TypeScript.