Hallucination & limitations
AI agents are powerful, but they are not infallible. Models can invent APIs, misremember your repo, or agree with a wrong assumption — all while sounding sure of themselves. This lesson explains what that looks like and how to verify agent output the way you would a teammate's PR.
What this page is for
Start with How AI models work if models and context are new to you. When you are ready to run agents, see Quickstart and Prompting.
Who this page is for
What hallucination means
Hallucination is when a model generates something that reads well but is not true — it guesses from patterns instead of checking facts.
Models rarely say "I don't know." They produce the most likely continuation. That is useful for drafting — dangerous if you merge without checking.
Tone does not indicate accuracy. Treat every suggestion as a draft until tools, tests, or your own reading confirm it.
Common limitations
Hallucination is the headline issue; these show up often too:
None of this means agents are useless — it means you stay in the loop. Same as code review for a human contributor.
How 4RGE helps
4RGE is built around inspectable work, not silent autopilot:
These reduce hallucination damage; they do not eliminate wrong suggestions. You still review before merge.
Habits that work
Practical patterns that match how strong teams use agents today:
- Ask for a plan first on non-trivial work — outline before wide edits.
- Scope one task — "fix this test" beats "clean up the whole service."
- Ground with context — paste errors,
@mention files, name the framework. - Use verifiable checks — linter, typecheck, or a single test that must pass.
- Read the diff — skim every file touch; do not only read the chat summary.
- Verify imports and APIs — if the editor or compiler complains, feed that back to the agent.
Every agent message is a starting point, not a shipped answer. That habit makes you faster over time — you catch issues early instead of debugging mystery code later.
When to push back
For prompting patterns, see Prompting. For tool approval behavior, see Tools.