Check API and method existence
Verify that every package and specific method the code calls actually exists as used.
GENERATED-CODE SANITY CHECK
Answer four verification questions about AI-generated code to score how likely it is to contain invented APIs or unsupported assumptions.
Planning guidance only. Validate important decisions with customer evidence and your delivery team.
YOUR INPUTS
Complete every field. The result updates only when you choose Calculate.
Verify that every package and specific method the code calls actually exists as used.
Actually running or compiling it catches many hallucinated imports and method signatures immediately.
Anything you don't recognize is worth a second look — the score weighs this in.
Continue learning: Reviewing AI-generated code safely
When an AI model generates a call to a package, method, or parameter that doesn't actually exist, based on plausible-looking but incorrect pattern completion.
Code can run without errors while still containing subtly wrong logic or a method call that happens to exist but doesn't do what was intended — running it rules out only the most obvious hallucinations.
Ask the model to cite documentation or explain its reasoning, or verify independently — an unfamiliar pattern isn't necessarily wrong, but it's exactly where hallucinations hide.
Each unverified check (API existence, method verification, running the code) adds a fixed risk amount; the count of unfamiliar patterns adds a smaller, capped amount on top.
| Feature | MVPHub | GitHub Copilot | Cursor |
|---|---|---|---|
| Structured verification checklist | Included | Not included | Not included |
| Weighted hallucination risk score | Included | Not included | Not included |
| No account required | Included | Not included | Not included |
| Vendor-agnostic — works on code from any source | Included | Not included | Not included |
Copilot and Cursor generate the code you're checking. This tool is a structured post-generation sanity check, independent of which tool produced the code.
Add this tool to your site with the canonical iframe below. It remains hosted and maintained by MVPHub.