Code Mode

Code Mode

Tool calls via code execution

Product screenshot

About

LLMs are great at writing code but struggle with writing tool calls. Code Mode solves this by giving your model ONE powerful tool: a TypeScript execution sandbox with access to your entire toolkit. Complex, multi-step workflows thereby become a single batched execution. Independent studies show massive gains: 60% faster execution, 68% fewer tokens, 88% fewer round-trips, while Anthropic's research team found a massive reduction of 98.7% in token usage using CodeMode.