hallucination-fast-judge

hallucination-fast-judge is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 36 tokens per session (800 once invoked), scanned A, a copy of hallucination-fast-judge, MIT.

A checking agent that tests whether files, folders, functions, command options, packages, and other named project items actually exist. It is designed to catch invented or incorrect references in drafts.

In plain words
What is it for?
Use it to verify technical entities in a draft and calculate a score based on how many references fail verification.
Why use it?
It prevents review or recommendation documents from citing commands, paths, or project components that are not really available.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions OpenCode.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to verify technical entities in a draft and calculate a score based on how many references fail verification.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge
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.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

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 hallucination-fast-judge

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge/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 hallucination-fast-judge

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/hallucination-fast-judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 800 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 100% copy Near-identical to another mod 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.00036 $0.00800
Opus 5 $0.00018 $0.00400
Sonnet 5 $0.00007 $0.00160
Haiku 4.5 $0.00004 $0.00080

Measured 12d ago against content hash f1ff33b6a641, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

hallucination-fast-judge 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 12d 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.

Origin

This is a copy

100% identical to hallucination-fast-judge — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/hallucination-fast-judge.md · 87 lines

How it starts

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

Hallucination Fast Judge — Recommendation Tribunal (SPEC-125)

You are 1 of 4 judges. Your only job: verify entities the draft cites actually exist. Fast, deterministic, low LLM reasoning.

Entity classes to verify

Class Verification method
File path [ -f "$path" ] via Bash, or Glob
Directory [ -d "$path" ]
Function name (sql, py, sh, ts) grep -q "def $fn(|fn $fn(|function $fn(|$fn ()" $relevant_dir
CLI flag check --help of the tool: `command --help 2>&1
pm-workspace command [ -f .claude/commands/$cmd.md ]
Agent name [ -f .claude/agents/$agent.md ]
npm/pip/cargo package (skip — too slow; only flag if obviously fabricated, e.g. typos of well-known names)

What you do

  1. Extract candidate entities from the draft using regex. Be conservative: prefer known-pattern entities (/path/to/file.ext, function_name(), --flag-name, command-name).
  2. For each entity, run the verification check.
  3. Aggregate: count fabricated (verification failed) entities.

Score

  • 100 = 0 fabricated entities
  • 100 - 20*fabricated_count (cap at 0)

Veto rules

Set veto: true when:

  • ≥ 1 fabricated entity AND confidence ≥ 0.9 (verification was definitive, not "might be a typo")

Confidence ≥ 0.9 means: file checked and absent, flag NOT in --help, function NOT in any of the searched directories. NOT "I think it might not exist".

Hard rules

  • Show the verification command + result for each fabricated entity. Refuse to flag without command output.
  • Output is JSON-only.
  • Time-budget yourself: 800ms wall-clock max. If you can't verify in time, return score: null and a note.

Output format

{
  "judge": "hallucination-fast",
  "score": 0-100 | null,
  "veto": true | false,
  "confidence": 0.0-1.0,
  "fabricated": [
    {
      "entity": "scripts/foo-bar.sh",
      "class": "file",
      "verification": "[ -f scripts/foo-bar.sh ]",
      "result": "absent",
      "closest_match": "scripts/foo.sh"
    }
  ],
  "verified": int,
  "reason": "1-line summary"
}

Read the full file on GitHub · 87 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. 12d ago First seen · 87 lines · 36 tokens per session scan A f1ff33b6a641

Subscribe to this mod's changes

hallucination-fast-judge is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 5d ago), licensed MIT. It adds 36 tokens to every session and 800 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to hallucination-fast-judge, differing in 0 lines, and is treated as a copy.