Skip to main content
bash TV

How to Use Code Mode in Claude Code [Setup + Real Test]

Rakhul Karthick

86 views23 Nov 2026

YouTube

Every prompt from this video, sorted under each section, is in my free AI newsletter: https://rakhulkarthick.substack.com/p/how-to-use-code-mode-in-claude-code Claude Code's Code Mode is a new experimental switch, and I tested it for real. I gave Claude the same 4 business jobs with Code Mode off and then on. With it on, Claude Code used 46% fewer tokens, and at API prices it cost 35% less. Normally Claude Code calls one tool at a time, and every result comes back into your chat. With Code Mode on, Claude writes one small script, the script calls the tools, and only the answers come back. I checked 40 invoices, fixed broken links on a 30-page website, sorted 60 receipts by month and pulled 26 action items out of 10 Notion pages. Both sides got the jobs right in the end. What's in it: - What Code Mode is, and why it saves tokens - Installing Claude Code, signing in and turning Code Mode on in Terminal - Seeing the JavaScript it writes - Building your own token meter for your Claude Code sessions - The fair test: 4 jobs, off vs on, 2 runs a side, every number - The catches before you use it every day Chapters: 00:00 46% fewer tokens with Code Mode 01:37 What Code Mode is 02:30 Install, sign in and turn it on 05:31 See the code it writes 06:46 Build a token meter 07:53 The test: 4 jobs, off vs on 08:26 Job 1: check 40 invoices 09:18 Job 2: fix broken links 09:53 Job 3: sort 60 receipts 10:40 Job 4: action items from Notion 11:19 The results 11:40 Why it saves 12:14 Would I switch? 12:36 The catch 13:07 Should you use it? Links: Claude Code's Code Mode docs: https://code.claude.com/docs/en/code-mode Claude API prices: https://platform.claude.com/docs/en/about-claude/pricing Code Mode is experimental and works only in a terminal, on Claude Code 2.1.323 or later. I ran everything on my Claude Max plan, so the dollar numbers are what the same runs would cost at Opus 5.5 API prices. If this helped, subscribe. Every week I show you how to use AI on real work. Rakhul

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.