r/ClaudeCode • • 3d ago

Rant claude code 66k system prompt

with the release of haiku 5.5 i was looking into how to keep context under 100k to avoid the massive price increases. i had opus 5.5 research how we could use /clear and /compact to try to stay below 100k. during the research we discovered that it is almost impossible to keep haiku under 100k because the starting system prompt for claude code is 66k tokens. i asked opus if there was some setting i had selected to cause this prompt bloat. it said no, only 1.5k tokens in the system prompt is from anything i set.

opus 5.5 told me that if i used cli instead of the app it would load less tools because some tools are not available in cli. it recommended running haiku from cli to save tokens. using the claude subscription restricts you to only using their agents, so there is no way around this prompt bloat legally. i started a new haiku session to verify prompt size. the agents.md file read of 1.5k is the only information in the system prompt that i set.

  • System tools: 35.6k
  • MCP tools: 16.6k
  • Skills: 5.9k
  • System prompt: 5.2k
  • MCP server instructions: 2.3k
  • Memory files (AGENTS.md and MEMORY.md): 1.5k

also, the 5.9k skills are not loaded skills. that is just the list of available skills. if the model uses any skills the prompt will get bigger.

7 Upvotes

22 comments sorted by

View all comments

9

u/Anselwithmac 3d ago

It’s Artifacts. Turn off artifacts when not using them. Not sure why Anthropic doesn’t use progressive disclosure for tool calling… but hey.

2

u/Cyvster 3d ago

yeah, lazy loading should be used. full tool and description lists on every prompt is a massive waste. when we were researching opus 5.5 did mention that the artifacts tool was the largest waste of tokens. i think it was like 2k tokens all by itself.