Dehalucinate

Catches AI-invented packages before they ship.

#What Dehalucinate does

Validates AI-generated code against reality: imports checked against the npm and PyPI registries, paths and syntax sanity-checked.

  • Registry-verified imports. Every package import checked against npm and PyPI — a dependency that does not exist is flagged before it becomes a build error or an attack surface.
  • Path & syntax checks. Relative imports verified against the actual file tree, plus syntax heuristics that catch the classic hallucination patterns.
  • A tool the AI calls on itself. sstm_dehalucinate_verify lets your MCP-connected AI validate its own output before proposing it — self-review as a tool call.
  • Guards the Build flow. Sits naturally after generation and before deploy — the checkpoint between "the AI wrote it" and "it runs on your account".

#On the MCP surface

The module that keeps every AI honest — including your own: it can call sstm_dehalucinate_verify on its drafts and hand you code that survived contact with reality.

Tools (write):

  • sstm_dehalucinate_verify

Resources (read):

    Full definitions live in the MCP reference.