Before adding another agent tool, define a checkable 'done' state — four disciplines to catch silent failures
Heavy-Confidence1826 · reddit · 2026-12-04
A developer describes a recurring pattern in agent projects: toolsets grow, but nobody defines a verifiable "done" state for existing tools, so failures surface as plausible-looking output instead of errors. His working practices:
- Write one script-checkable sentence per tool — "email drafted" isn't checkable; "draft exists in drafts folder with right recipient and attachment" is.
- Make the agent read back state after writing — a 200 response means the call was accepted, not that the intended state is true.
- Keep a log of "claimed done" vs "verified done"; the gap tells you more than any benchmark pass rate.
- On check failure, feed the failed check back to the agent as the next input instead of letting it summarize around it.
He admits it's ordinary test discipline applied to agents — but cheap, and it catches quiet failures first.
More from coding & agent
- Rex terminal hits general availability, pitched as a multiplexer for humans and agents — MxMnr · 2026-12-04
- 19 Search APIs Benchmarked: Parallel Fast Cheapest at 0.2¢ per Correct Answer — edwin · 2026-12-04
- Claude Code cites Keirolabs most but never recommends it: cited isn't recommended — edwin · 2026-12-04
- Cost prompts push agents to Brave, docs prompts to Exa, Tavily wins by default — edwin · 2026-12-04
- A bare 'pick one' prompt makes every coding agent choose Tavily — edwin · 2026-12-04
- 360 sessions tested: coding agents most recommend Tavily, but Exa's search API answers most accurately — edwin · 2026-12-04