
Ghost Import Hunter
Catch AI hallucinations before they break your build.
7 followers
Catch AI hallucinations before they break your build.
7 followers
AI coding tools are fast β but they hallucinate imports. Ghost Import Hunter v4.0 is a zero-config CLI that detects phantom imports, wrong exports, and ghost dependencies before they crash your build.





π Hey Hunters! I built Ghost Import Hunter because I was burning hours debugging import errors that AI coding tools confidently hallucinated into my codebase.
Here is the complete journey of how it evolved:
π£ v1.0 β Basic Regex scanner. Simple, lightweight, effective.
π§ v2.0 β Switched to the TypeScript Compiler API for deep, accurate analysis. No more false positives and deep export analysis.
π v3.0 β Added fully automated fixes (`--prune`, `--fix`, `--interactive`, `--uninstall-self`).
π οΈ v4.0 β Total Control: Added `.ghostrc` configuration support for custom exclude paths and rule tuning.
I wanted to make a tool that requires absolutely ZERO config out of the box, but gives you power when you need it. You can run it right now on any project:
`npx ghost-import-hunter`
It's completely open-source, free, and takes about 10 seconds to try. I'd love to hear your feedback and what features you'd like to see next! π