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:
- First, it falsely claimed that a certain logic was inside the realm class
- Then it fabricated non-existent header files and functions
- Even after being reminded, it continued to generate plausible but incorrect explanations
- Finally, it even admitted it hadn't actually seen the relevant code and was just "pretending to understand"
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.
More from Models
- Gemini 3.6 Flash appears live in Studio with $1.50 input pricing — ivan_bezdomny · 2026-07-21
- Artificial Analysis ranks Gemini 3.6 Flash at 50 on its updated intelligence index — Angaisb_ · 2026-07-21
- Google appears to have quietly shipped Gemini 3.6 Flash, with lower pricing and better agentic scores — xiaohu · 2026-07-21
- Google ships three more Gemini variants while 3.5 Pro slips again — Miserable-Archer-631 · 2026-07-21
- Google Quietly Launches Gemini 3.6 Flash: Cheaper, Stronger, and Agentic-Focused — OwariDa · 2026-07-21
- A user says 10–12 hours with Claude equals 3–4 hours with Grok Build — Daniel_Farinax · 2026-07-21