Anthropic shows agents cutting tool context from 150K to 2K tokens by writing code

blaizedsouza · x · 2026-11-22

Anthropic demonstrated how to make AI agents dramatically more efficient without changing the model: stop making the agent read every tool definition upfront and let it write code to use tools instead. Same tools, same task — context dropped from 150,000 tokens to 2,000.

Key techniques:

Related event: Anthropic's Code Mode Cuts Agent Tool Context from 150K to 2K Tokens(2 posts)→

Original post →

More from coding & agent

coding & agent channel →