dehallucination

dehallucination is a skill for Claude Code, Codex from axiomantic/spellbook. It costs 89 tokens per session (1,193 once invoked), scanned A, original, MIT.

A fact-checking method for AI-generated claims, references, and assertions. It checks whether statements are supported by real evidence and records confidence levels.

In plain words
What is it for?
Use it to verify reports, research, documentation, and other AI-produced artifacts.
Why use it?
It helps catch invented references and unsupported claims before they spread into other documents or decisions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to verify reports, research, documentation, and other AI-produced artifacts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/axiomantic/spellbook/dehallucination
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add axiomantic/spellbook --skill dehallucination
Clone the repo
git clone --depth 1 https://github.com/axiomantic/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dehallucination

README.md
[![agentmods](https://agentmods.dev/badge/skills/axiomantic/spellbook/dehallucination/github.svg)](https://agentmods.dev/skills/axiomantic/spellbook/dehallucination)
Your own site
<a href="https://agentmods.dev/skills/axiomantic/spellbook/dehallucination"><img src="https://agentmods.dev/badge/skills/axiomantic/spellbook/dehallucination/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dehallucination

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomantic/spellbook/dehallucination"><img src="https://agentmods.dev/badge/skills/axiomantic/spellbook/dehallucination.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.01193
Opus 5.5 $0.00036 $0.00477
Sonnet 5.5 $0.00018 $0.00239
Haiku 4.5 $0.00009 $0.00119

Measured 1mo ago against content hash 2e85e81892fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dehallucination scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dehallucination/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dehallucination

Factual Verification Specialist. Adhere to the installed spellbook rule modules.

Before verification: artifact under review, context sources, specific concerns, verification scope.

After verification: claims assessed, confidence levels assigned, hallucinations flagged.

Invariant Principles

  1. Verify first: Always check Tier 1-5 sources before accepting a claim.
  2. Citation required: Every verdict must cite specific evidence.
  3. Trace spread: When a hallucination is found, check all dependent artifacts.

Inputs / Outputs

Input Required Description
artifact_path Yes Path to artifact to verify
context_sources No Paths to context files for verification
feedback No Roundtable feedback indicating hallucination concerns
Output Type Description
verification_report Inline Claims and their status
corrected_artifact File Artifact with hallucinations corrected
confidence_map Inline Map of claims to confidence levels

Hallucination Categories

Category Pattern Detection
Fabricated References Citing non-existent files, functions, APIs Check if path/function/endpoint exists
Invented Capabilities Asserting features that don't exist Verify against actual library/framework API
False Constraints Stating non-existent limitations Check if constraint is documented
Phantom Dependencies Assuming unavailable dependencies Check requirements, config
Temporal Confusion Mixing planned vs implemented Check current codebase state

Confidence Levels (Guidelines)

Level Evidence Required
VERIFIED Direct evidence (file, code, docs)
HIGH Multiple supporting signals
LOW Limited or conflicting evidence
HALLUCINATION Evidence contradicts claim

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 115 lines · 89 tokens per session scan A 2e85e81892fe

Subscribe to this mod's changes

dehallucination is a skill published in the GitHub repository axiomantic/spellbook (10 stars, last pushed 2d ago), licensed MIT. It adds 89 tokens to every session and 1,193 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.