Skip to content
Global sound
Lenny’s AI Builders

Lenny’s AI Builders

make Claude Code use fewer tokens with one new setting - and when it backfires | LAB 0045

· 14 min · Episode 45

Show notes

if you build with Claude Code, here's how to make it use fewer tokens with one new setting, and when it backfires.

the setting is Code Mode: Claude writes code that makes several tool calls in one step. turn it on with one environment variable:
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1
it's experimental, off by default (v2.1.323 or later) and only runs in the interactive terminal: not claude -p, the Agent SDK, the VS Code panel, the desktop app or cloud sessions.

my test (0:13): the same jobs with Code Mode off and on, three pairs of runs on Opus 5.5. tokens dropped 36 to 38% in every pair. the…

Website: share.transistor.fm

Live, last hour: 11,498 songs on 5,696 stations in 138 countries

Discover the world through radio

More ways to discover (8)

Heard something good? Save it, or open it straight away in Spotify.

★ Artist of the week The fastest riser on the radio this week

All I Want For Christmas Is You

Mariah Carey

▲ 61places up52countries525radio stations2,073×on the radio

Measured live on 15,000+ radio stations worldwide

Spotify Watch the video
Time Dance FMContinue listening