Agent claimed it saved a file without calling the tool: one dev's fix for action-hallucination

Stunning-Sherbet1853 · reddit · 2026-10-14

A developer building a local Windows agent hit a classic failure: a 4B model replied "Saved" with a file path, but the file-writing tool was never called and nothing existed at that path.

Root causes:

Fixes:

The author notes the same say/do mismatch appeared twice before ("I checked" with zero tool calls; 1 of 9 direct answers was a copy of an earlier reply), and asks whether verification belongs at the output gate, whether one generic rule (block claimed actions without a matching tool record) beats per-type checks, and whether strict verification ever discards good answers.

Original post →

More from coding & agent

coding & agent channel →