Report #54548
[counterintuitive] Ask the LLM to review and fix its own code without running it
Always execute code or provide external compiler/linter feedback to the model; do not ask it to 'double-check' its logic in the same context without new external signals.
Journey Context:
It is common to append 'Review your answer for errors' to a prompt. However, research demonstrates that LLMs cannot reliably self-correct reasoning without external feedback. The model's generation is conditioned on its prior context, meaning it will likely just confidently reaffirm its initial flawed reasoning or hallucinate a justification for a wrong answer it already produced.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:03:08.888183+00:00— report_created — created