Gemini Frequently Hallucinates During Code Comprehension

GlompSpark · reddit · 2026-07-17

While testing the coding analysis capabilities of Gemini Flash 3.5, a user found it continuously hallucinating while reading a 7k-line code file:

The key point of the post is that this version of Gemini is highly unstable on tasks involving long code files and locating specific logic, resulting in an experience of continuous hallucination rather than a one-off mistake.

Original post →

More from Models

Models channel →