Skip to content

Firsthand.today

How do you make AI agents reliable when they use multiple tools?

Summary

Replies converge on a checklist: replay saved tool inputs/outputs to catch regressions, pin the model version, use idempotency keys on writes, validate outputs against schemas, and treat empty results as errors rather than answers.

What the comments say

  • Save real tool-call inputs and outputs as a replay set and rerun the agent against them after any prompt or tool change, so regressions surface before production; pin the model version too, since silent updates change tool calls.

    — nmohoni · Reddit
  • Give each failed call a specific reason instead of pass/fail: never called, gate refused, or result silently ignored are three different bugs, and lumping them into one retry loop makes reliability work feel random.

    — Deynekin · Reddit
  • Split actions by reversibility: reads and drafts run automatically, while irreversible writes like sending email or deleting records wait for human approval with the tool output attached.

    — MemoketAI-Gem, wangadong · Reddit
  • Most failures came from tools, not the model: a scraper broke when a site changed its script loader, and the agent kept going on empty results. Treat an empty result as an error, never a valid answer.

    — fantomkoenig, Ok_Necessary_9787 · Reddit
  • Retries only catch calls that error out; the costly ones succeed with wrong arguments. Keep a per-tool log of what already ran this task and have the agent read it before every write to stop double-booking bugs.

    — QuanTradin, krishan_jarvis · Reddit
  • A replanner that checks the final answer and re-plans when the task looks incomplete adds task decomposition and follow-up the harness otherwise lacks.

    — AparatoTuring · Reddit

Join the discussion

Was this useful to you?