Developer Cuts Agent Tools from 200 to 5, Reducing Errors and Token Use
11/10/2026 — 11/10, 19:21·1 sources (all)·1 reports (all)
Key takeaways
- A developer's postmortem found that his AI agent frequently picked wrong actions not because of prompting but because every request carried…
Background & analysis
On 2026-11-10, the AI section of DEV Community published a retrospective from a developer under the headline 'How I cut wrong answers and token usage by giving the model 5 tools instead of 200.' The work began with a ticket that was essentially one sentence: make the AI agent give fewer wrong answers. There was no spec and no acceptance criteria, just an agent that kept picking the wrong action. The developer's first assumption was that it was a prompt problem, and排查 ruled that out. Before changing any prompt, the developer logged what the agent was actually sending to the model on each request, and found every single call carried roughly 200 tool definitions. Too many tools made it hard for the model to choose among them, which is why the agent kept making the wrong pick. The fix was to reduce the tool set from around 200 to 5, and the result was a decline in both wrong answers and token usage. That is as far as the available reporting goes. One source is on record, and it provides only the comparison after the compression; no tool list, no quantified error or token figures, and no details on whether the change was kept, reverted, or applied elsewhere.
AI-generated from 1 reports · updated 3 days ago
- Heat index
- 25
- All sources
- 1
- All reports
- 1
- First seen
- 3 days ago
Reports on this story headlines open the original
A developer traced an AI agent's wrong actions not to prompting but to the roughly 200 tool definitions shipped in every request. Trimming the toolset to five cut both incorrect answers and token usage, he writes in a post describing the debugging process.
DEV Community · AIAI score 66
Other stories people are talking about
- Heat index 94NewDeveloper Launches Desktop App for Cross-Agent Session Synchronization1 sources
- Heat index 2236Nvidia stock plunges after Jensen Huang resigns, with retail investors buying the dip35 sources
- Heat index 1463RisingGoogle Opens Gemini 4 Hydrogen to All Users as High-Speed Model21 sources
- Heat index 1429SurgeJensen Huang exits as NVIDIA CEO, leadership vacuum lingers16 sources
- Heat index 785SurgeAnthropic hires gas supply lead to power data center expansion after IPO10 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

