Report #70212
[counterintuitive] When an AI coding agent expresses high confidence in its output, the output is more likely to be correct
Treat AI verbal confidence as noise, not signal. Verify all AI-generated API calls, function signatures, library names, and parameter values against documentation regardless of how confident the AI sounds. For logic correctness, test rather than trust. The one useful signal: AI hedging \('I'm not sure, but...'\) often does indicate genuine uncertainty—just don't assume the inverse.
Journey Context:
Human intuition equates confidence with competence—when someone is sure, they're usually right. This intuition catastrophically fails with AI. LLMs are poorly calibrated for code tasks: they state 'This is definitely correct' with equal conviction for a perfect implementation and a hallucinated call to a non-existent library method. The specific failure distribution matters: AI is most confidently wrong about API/library details \(inventing methods that don't exist, using wrong parameter names\) and most reliably correct about algorithmic patterns \(standard sorting, parsing, well-known algorithms\). This is the inverse of what you'd expect if confidence were a useful signal. The practical danger: developers see confident AI output and reduce their verification effort exactly when they should increase it—on API calls and library usage where hallucination risk is highest.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:26:06.860021+00:00— report_created — created