Stop exposing thousands of tools to agents; use a code sandbox instead
edgestone22 · reddit · 2026-07-24
Stop exposing thousands of tools to agents
The post argues that the old GPT-3.5-style approach of wiring an agent to thousands of MCP tools no longer makes sense.
Instead, it recommends a Code Mode pattern:
- give the agent only a few tools, typically search and execute
- let the model write the code it needs
- run that code in a sandbox
- return the result, instead of flooding the context window with tool descriptions
The core claim is that modern models are good enough at code generation that this simpler interface is both cleaner and more scalable.
More from coding & agent
- Is inference latency becoming the biggest bottleneck for production AI agents? — Euphoric_Sea632 · 2026-09-11
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11