By default claude starts each session with ~20k tokens worth of system tool definitions. One of them is the Artifact tool which allows claude to post HTML docs to the web. This takes up HALF of the entire tokens.
Whilst claude has a 1m token context window, the ‘smart zone’ of that window is only around 200k tokens. So doing this saves 10% of the smart zone.
Three ways to disable it:
1.Add "enableArtifact’:falseto~/.claude/settings.json. Turns it off for every session.
2.Run claude with --disallowed-tools Artifact. Turns it off for one session.
3.Set the environment variable
CLAUDE CODE DISABLE ARTIFACT=1
