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
- Codex adds GPT Live voice control for fully hands-free coding on desktop — op7418 · 2026-07-24
- T3 Code nightly defaults to DeepSeek reasoning traces unless set to null — pvncher · 2026-07-24
- Why agent stacks can keep taking valid steps while losing the verified state — Present-Quantity-813 · 2026-07-24
- AREX introduces a recursively self-improving deep research agent with inner and outer loops — _reachsumit · 2026-07-24
- A local open-source agent skill flags the rest of your GitHub diff — Saboo_Shubham_ · 2026-07-24
- “Letting Claude read my codebase is basically open-sourcing it,” says developer — _Stocko_ · 2026-07-24