# AI Hallucination: What to Check in Agent Output

> Canonical: https://skillalmanac.com/learn/ai-hallucination-what-to-check | Updated: 2026-11-25 | Index status: index-eligible

What an AI hallucination is, and a checklist for reviewing agent output: claims, quotes, sources, and figures before you rely on them.

## Facts

- Checked 2026-11-25: Anthropic recommends explicitly allowing the model to admit insufficient information as one technique for reducing false claims (https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations)
- Checked 2026-11-25: For documents over about 20,000 tokens, Anthropic recommends extracting relevant verbatim quotes before analysis and grounding the analysis in them (https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations)
- Checked 2026-11-25: Anthropic says hallucination-reduction techniques do not eliminate errors and critical information still requires validation (https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations)
- Checked 2026-11-25: Anthropic citations can return cited text and valid locations in supplied documents, but the API does not guarantee every extracted value has a citation or that a cited passage semantically proves a claim (https://platform.claude.com/docs/en/build-with-claude/citations)

An AI hallucination is factual output that is incorrect or inconsistent with the context supplied to the model. Unsupported claims, invented citations, and incorrect tool-derived conclusions are practical warning signs. To review an answer, trace each material factual claim to a source or tool result you can inspect, and flag anything you cannot verify.

## What a hallucination is

A hallucination happens when a language model generates text that is false or inconsistent with the context it was given. Without retrieval or tools, a model does not independently look up current facts while generating its response. Even when a host supplies documents or tool results, the model can still misstate or misapply them, so a plausible date, citation, file path, or function name is not evidence by itself. In agent work the cost grows, because output often feeds the next step: an invented file path becomes a failed command, and an invented figure becomes a line in a report.

**Worked example.** You ask an agent to summarize a vendor contract. The summary says the contract renews automatically after 24 months. The clause says 12 months. Nothing in the summary signals doubt, so the error is caught only by reading the clause.

**What it is not.** An opinion or a disclosed rounding choice is not itself a hallucination. An outdated factual claim is still incorrect at response time and must be checked against a current source, regardless of whether its cause was stale knowledge or unsupported generation. No prompt removes the problem entirely. Anthropic's guidance says its techniques reduce hallucinations without eliminating them, and that high-stakes facts should always be validated.

## A verification routine for agent output

1. **Split the output into claims.** List every sentence that states a fact, number, name, date, path, command or quotation. Skip framing text.
2. **Note where each claim came from.** Tag it as coming from a document you supplied, a tool result, or the model's general knowledge. Claims from general knowledge get the strictest check.
3. **Ask for quotes first.** For document work, have the agent extract exact supporting passages before it writes anything. Anthropic's guidance recommends this for long documents and asks the model to base its analysis only on those passages.
4. **Use citations where available.** When enabled for supplied documents, Anthropic's citations feature can return cited text plus document locations. It guarantees valid pointers into those documents, not that every claim is cited or that the cited passage logically proves the claim. Treat uncited claims as unresolved and inspect cited passages yourself.
5. **Read the source yourself.** Open each quoted passage and confirm it says what the claim says. A real quote that does not support the claim is a common failure.
6. **Remove or flag what fails.** Delete any claim with no supporting quote, or mark the gap in the text so a reader can see it.
7. **Re-check the figures that matter.** For a high-stakes number, run a second, separate pass and compare the two results. Disagreement is a reason to look closer, not proof of either answer.

**Check that it worked.** For a quick spot check, pick three factual claims at random. Each should trace to an inspectable source, and that source should support the claim in context. Any failure means the output needs broader review. For high-impact decisions, do not rely on a three-claim sample: verify every material claim.

## Pitfalls

- **Invented quotes.** The model writes a quote that sounds right but does not appear in the document. Notice it by searching the exact words in the source. Fix it by requiring copied text and checking the copy with search.
- **Real quote, wrong claim.** The passage exists but covers a neighboring topic. Notice it by reading the sentences around the quote. Fix it by asking the agent to explain in one line how the quote supports the claim, then reading the passage yourself.
- **Confident tone treated as evidence.** Fluent, certain wording says nothing about accuracy. Judge each claim by its source, not its tone.
- **Old knowledge presented as current.** General knowledge can be out of date, and the output will not say so. Notice it by checking dates. Fix it by attaching a current source, or by labeling the claim with the date you checked it.
- **Drift in long documents.** Late sections may cite details that appear nowhere else in the document. Fix it by extracting quotes section by section.

## When to use a skill instead

An ad hoc "check your answer" prompt gives different checks each time you run it. A reusable skill fixes the steps, the output format and the checks, so each run follows the same routine. [claim-evidence-map](/skills/skill-almanac/claim-evidence-map) is a related skill on the site for linking claims to their evidence. [faithful-summary-writer](/skills/skill-almanac/faithful-summary-writer) fits the summary case, where you need each sentence to trace back to the original document. For a one-off question you can check in a few minutes, an ad hoc prompt is enough. Use a skill when the same check runs on many outputs.

## FAQ

### Can I stop an AI model from hallucinating?

Not completely. Anthropic's guidance says its techniques reduce hallucinations but do not eliminate them, so critical facts still need checking against sources.

### Does telling the model it can say "I don't know" help?

Anthropic's guidance says explicit permission to admit uncertainty can greatly reduce false information. Give the model a specific phrase to use when the material is insufficient, so it has a path other than guessing.

### Are quotes better than summaries for checking an answer?

For checking, yes. A summary removes the exact wording you need to compare against, while a quote lets you read the source directly. Anthropic's guidance recommends extracting quotes first on long documents, then basing the analysis on them.

## Related skills

- [claim-evidence-map](https://skillalmanac.com/skills/skill-almanac/claim-evidence-map.md): Platform Score 56/100 (provisional)
- [faithful-summary-writer](https://skillalmanac.com/skills/skill-almanac/faithful-summary-writer.md): Platform Score 55/100 (provisional)

## Related guides

- [What Is Claude Superpowers and What to Check Before Use](https://skillalmanac.com/learn/what-is-claude-superpowers.md)
- [MCP vs API: When an Agent Needs an MCP Server](https://skillalmanac.com/learn/mcp-vs-api.md)
- [What Is an AI Agent? The Model, Tools and Memory Loop](https://skillalmanac.com/learn/what-is-an-ai-agent.md)
- [What Is an LLM? The Facts Agent Users Need](https://skillalmanac.com/learn/what-is-an-llm-for-agent-users.md)
- [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations.md)

## Sources

- https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations
- https://platform.claude.com/docs/en/build-with-claude/citations

Platform Scores report our assessment under a published method. They are not a safety guarantee.
