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
- TMLR paper: enforced thinking doesn't reliably make LLM agents disclose key info to users — SharonYixuanLi · 2026-10-27
- Resin lets an agent build standalone LLM inference engines; vLLM and SGLang optimize DeepSeek kernels differently — AccBalanced · 2026-10-27
- How I let my cloud Grok Bot code on my Mac mini via Tailscale, no public ports — talkaboutdesign · 2026-10-27
- Context layout is a cost decision: one memory edit can bust your entire agent prompt cache — dscape · 2026-10-27
- Alchemy adds effect/Workflow support across Durable Objects, Workflows and Lambda Durable Functions — samgoodwin89 · 2026-10-27
- Alchemy's Lambda Web Functions run plain Node web servers on Lambda, no OpenNext needed — samgoodwin89 · 2026-10-27