Every message sent in Claude Code carries a hidden token tax. Unused tool schemas and bundled system instructions ride along on every turn, often billing tens of thousands of tokens before your actual prompt even starts. A few lines of configuration can strip out that overhead.

Start by measuring where your context goes. Running /context inside a terminal session breaks down context window usage by category, showing just how much space tool definitions occupy.

For a byte-level breakdown, run a local logging proxy (proxy.mjs) and point ANTHROPIC_BASE_URL to your local endpoint. Sorting the captured tool schemas by byte size makes it obvious which definitions to cut first.

Disabling Unused Features via Configuration

Adding disable flags to settings.json removes heavy feature groups in one step. Place global defaults in ~/.claude/settings.json or scope rules per repository in .claude/settings.json:

  • disableBundledSkills: Removes built-in skills such as data visualization and code review.
  • disableWorkflows: Removes the workflow tool, one of the single largest token consumers.
  • disableRemoteControl: Removes remote-control tool definitions.

Removing Specific Tools and Common Pitfalls

To drop individual tools, list them in the permissions.deny array. Add EnterPlanMode and ExitPlanMode if you skip plan mode, NotebookEdit if you do not work with Jupyter notebooks, and SendMessage if you do not need agent notifications.

One detail matters here: specify the bare tool name so Claude Code omits the entire JSON schema from the request payload. If you qualify the rule with sub-options or path patterns just to restrict execution scope, Claude Code blocks invocation at runtime while still sending the full tool schema on every turn.

Restart Claude Code after saving settings.json and run /context again to verify the drop in baseline token usage.

Summary

  • Claude Code sends unused tool schemas and bundled instructions with every API turn, inflating baseline token consumption.
  • Setting disable flags and permissions.deny entries in settings.json strips unneeded tool definitions from the request payload.
  • Denying the exact tool name - rather than a scoped sub-pattern - is required to exclude the schema itself and save tokens.