Anthropic's Code Mode Cuts Agent Tool Context from 150K to 2K Tokens

Anthropic demonstrated a 'code mode' approach where agents write code to use tools instead of loading all tool definitions, cutting context usage from about 150K tokens to 2K—a 98.7% reduction—without modifying the model itself.

2026-11-21 ~ 2026-11-22 · 2 related posts