Report #13963
[research] Hallucinating non-existent third-party package names in import statements
Never generate \`pip install\` or \`npm install\` commands for unknown packages from parametric memory. Always cross-reference package names against a live registry via tool-use before suggesting installation.
Journey Context:
LLMs frequently generate plausible but non-existent package names \(e.g., \`python-ffmpeg\` instead of \`ffmpeg-python\`\). If a user runs the hallucinated install command, they risk installation failures or installing malicious typosquatted packages. Verification against the actual registry is a critical safety guardrail that overrides the model's fluent but ungrounded token prediction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:17:18.476326+00:00— report_created — created