Anthropic MCP Paper Cuts Agent Tool Context from 150K Tokens to 2K via Code Mode
solyarisoftware · x · 2026-11-28
Anthropic engineers cut an agent's tool context from 150,000 tokens to 2,000 — same tools, same task, without changing the model. Instead of calling tools one by one, the agent writes code that calls them: tools become files under ./servers, loaded on demand (98.7% less time and cost), filtering happens inside the sandbox so the model sees only 5 rows of a 10,000-row sheet, wait-loops run as code, and emails/phone numbers are masked as [EMAIL1]/[PHONE1] before reaching the model. The linked discussion frames the broader lesson as three layers — harness, loop, graph — that decide whether agents work.
Related event: Anthropic Cuts MCP Tool Context from 150K to 2K Tokens(2 posts)→
More from coding & agent
- Martin Casado: 4x tokens halves wall-clock time on embarrassingly parallel tasks — nptacek · 2026-11-29
- Practitioner's tool sweep: Claude Code excellent but dev-oriented, Replit workflow hasn't hit a wall — laughlinrigby · 2026-11-29
- Karpathy let Claude Code run 7 hours: 45,000 lines, 31 datasets, a few skipped states — AryHHAry · 2026-11-29
- Agent wrote 45k lines in 7 hours but skipped states — verification is the bottleneck — AryHHAry · 2026-11-29
- Agent Skills directory tops 1.5M installs, Vercel and Matt Pocock dominate leaderboard — adnan_hashmi · 2026-11-29
- drawio-skill Hits 11k GitHub Stars: Turn Code and Natural Language Into Editable Diagrams — tom_doerr · 2026-11-29