---
name: hallucinated-dependency-check
description: "Check dependency manifests offline and flag package names that look hallucinated or suspicious before installing. Uses local heuristics and a bundled data file only; makes no network calls. Use when an agent added dependencies or a package name looks unfamiliar."
---
# Hallucinated dependency check (Lite)
Offline review of dependency manifests before `install`. Use it on your own code only.
## When to use
- An agent added or changed dependencies.
- A package name looks plausible but unfamiliar.
- Right before running an install command.
## Agent flow
1. Find the manifests: package.json, requirements.txt, Cargo.toml.
2. Run `sh scripts/check-all.sh <project-dir>`.
3. Read each finding, printed as `file:line: RULE message`, with its reason.
4. Ask the human to confirm every flagged name. Do not install anything.
5. Suggest the closest well-known package.
6. Deliver a short report.
## Scripts
They need only `sh`, `grep`, `sed` and `awk`, and make no network calls.
- `scripts/check-all.sh <dir>`: runs the two checks on every manifest.
- `scripts/r01-filler.sh <manifest>...`: SK095-R01, unknown name with a filler pattern.
- `scripts/r03-lock.sh <manifest>`: SK095-R03, dependency without a lockfile entry.
- `scripts/names.awk`: helper that lists dependency names.
Exit codes: 0 no findings, 1 findings, 2 usage error.
## Limits
Lite covers R01 and R03 with a short known list. Put one dependency per line in
package.json. Findings are hints, never proof. See `references/checklist.md`.
— ‹guest · 2026-12-03› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.