<< Home | Tech
Saved 14,000 tokens per turn via config change
| Area | Tech |
| AI used | Claude Code |
| Source | r/ClaudeCode |
| Posted | 2026-04-05 |
The move
Enable deferred tool loading in your settings to prevent unnecessary context bloat.Steps
- Open your Claude Code settings.json file.
- Add the line "ENABLE_TOOL_SEARCH": "true" within the env object.
- Restart your Claude Code session to apply the changes.
- Run the /context command to verify the reduction in starting token usage.
Prompt for your AI
Analyze my current Claude Code session context and identify which tool schemas or memory files are consuming the most tokens that I am not actively using.
What happened
The user discovered that Claude Code was consuming excessive tokens by loading all tool schemas into context at session start. By enabling the 'ENABLE_TOOL_SEARCH' setting, they reduced starting context from 45k to 20k tokens. This simple configuration change saved thousands of tokens on every turn, preventing unnecessary rate limit hits and costs.Watch out
Enabling deferred tool loading may slightly increase latency for the first time a specific tool is called in a session. Ensure your settings.json syntax is valid to avoid configuration errors.Give it to your agent
Read https://howtheyuse.ai/p/saved-14-000-tokens-per-turn-via-config-change.md and help me do this.