Lenny's AI Builders - LAB 0045 one Claude Code setting, 36 to 38% fewer tokens in every pair of my test, the catch on cost, and a prompt that gives you 10 versions. if you build with Claude Code, one new setting can make it use fewer tokens. i tested this myself. every pair of runs used 36 to 38% fewer tokens. but there is a catch. my first run cost 83% more at api prices. the other two pairs came out 15% and 17% cheaper. why it mattersthe setting turns on Code Mode. Claude writes code that makes several tool calls in one step. without it, Claude asks for one tool call, reads the result, then picks the next one. with it, one piece of code can make the calls and hand back only the part Claude needs to read. but Anthropic's own page never mentions tokens, so i tested it myself. and in my test, fewer tokens didn't always mean a lower cost. what you getone line turns it on. in my test it gave me:
my test: three pairs on Opus 5.5on 17 November i ran the same jobs with Code Mode off, then on. Claude Code 2.1.326, Opus 5.5, medium effort, the same prompt and the same copy of the repo each time. job one: find broken links across 138 Markdown files. job two: sum up that repo in one sentence. job one ran twice and job two once, so three pairs and six runs.
so check your cost, not just your tokens. the token numbers here are from my own test. try it
or do what i said on the episode: give your agent the link to this episode and say, go and switch on Code Mode for me. to switch it off, remove the setting or set it to 0, then start a new session. copy this promptthis is Gabriel Petersson's prompt from the practical. use it any time you make something with AI:
i ran it in Claude.ai on the web, on Opus with medium effort, on the hook of my Threads post with 444K views. number 1 stayed close: "okay, why the hell isn't anyone talking about this?" number 10 went far: "i found out something today and honestly wish i hadn't." try it on designs, landing pages and plans too, then pick your favorite parts of each. you'll know it worked whenClaude Code restarts and shows this line near the top of the session: press Ctrl+O and you'll see Code rows. that's the code Claude wrote to make its tool calls. the real win: the same job uses fewer tokens and costs less. if you see a different line or none, Code Mode didn't start. check your version, and check you're in the terminal, not the VS Code panel. if your tokens drop but your cost goes up, it's backfiring on that job. for the prompt: number 1 should stay close to what you had, and number 10 should go far. limits and dates
the rest of this LAB
sources
next stepwatch LAB 0045 on YouTube - my test starts at 0:13 and the practical starts at 10:47. or listen to LAB 0045 as a podcast. today's sponsor is my software, Threadify: your lead generation agent for Threads, X and YouTube. it tracks your links, so you see which posts actually drive clicks, then you do more of what's working. same idea as Code Mode - stop guessing and test it on your own stuff. start your free 7-day trial - card required. want the next one? get the next field notes. optional - these notes stay free to read. |
i’m Lennox. i sift through AI Twitter and share one thing i tried with ChatGPT. for people making products, content and useful systems. five emails a week, with a weekly option.
Lenny's AI Builders - LAB 0042 the one Grok Bot upgrade that matters, and the paragraph i add to claude.md for long Fable 5.2 jobs. Grok Bot 1.0 isn't new, but the launch post pulled 46 million views like it was. so don't worry, you're not missing out. the one upgrade that's actually decent got something like 40 times fewer views. and it let my bot walk into my Mac. why it matters Grok Bot has been out since August. xAI's own page calls 1.0 a major update to its AI teammates. the headline...
Lenny's AI Builders - LAB 0041 the conductor paragraph, the four steps to run it, and the honest numbers from my 40-hour run. i ran my viral Fable 5.2 conductor for 40 hours on my real app. one conductor, 73 worker threads, 25 pull requests merged. and my weekly Fable limit was gone in 13 hours. so here's what it actually built, and the one paragraph that runs yours. why it matters this is the new meta. you use Fable 5.2 as the conductor and Opus 5.5 as the worker threads. Fable 5.2 is twice...
howdy so i let Claude reread six months of my agent logs. (yes, i called it dreaming) that became the centre of this LAB Roundup. my agent's memory went from 7 to 9 Claude proposed 125 edits to the notes. then i ran the 10-question quiz i wrote before the test. the score moved from 7 to 9 out of 10. but i still had to check the work: 54 edits held up, 58 only partly, 2 did not, and 11 had no log day to check. watch LAB 0039 · listen the video skill found 7 of 14 cuts i gave it my best edit...