AX
Artifex.
GitHub
← All tools
🧠AI Safety

HalluCheck

Catches AI hallucinations in code diffs before they merge.

HalluCheck reviews AI-generated code diffs for hallucinated APIs, non-existent methods, wrong signatures, and fabricated dependencies — before they make it into your codebase.

View on GitHub ↗
$pip install hallucheck
hallucheck — zsh
hallucheck --diff pr_456.diff

/ the problem

AI coding assistants hallucinate. Confidently. At merge time.

Copilot and Claude suggest code that looks right but calls methods that don't exist, uses APIs with wrong signatures, or imports packages with fabricated names. HalluCheck catches these before they hit CI — or worse, production.

/ how it works

Four steps. One command.

1
📋

Parse the diff

Extracts every function call, import, and API reference from the AI-generated changes

2
🔍

Verify against reality

Cross-checks each reference against actual installed packages and language specs

3
⚠️

Flag hallucinations

Surfaces non-existent methods, wrong argument counts, fabricated imports with confidence scores

4

Explain and fix

Claude explains what was hallucinated and suggests the correct real-world alternative

/ use cases

When to reach for HalluCheck

AI-assisted PR review
Copilot code validation in CI
New codebase exploration with LLMs
Code generation quality gate

Ready to use HalluCheck?

MIT licensed. One command install. Works in CI today.

$pip install hallucheck
Full docs on GitHub ↗

/ stay in the loop

New tools ship weekly.

Get notified when new tools land, features ship, or a tool reaches 1k stars. No noise. Unsubscribe any time.