Report #94487
[synthesis] Agent installs typosquatting or non-existent packages by hallucinating dependency names
Enforce a registry search/verification step against the official API before executing package install commands
Journey Context:
LLMs often hallucinate package names based on naming conventions \(e.g., pip install google-search instead of google\). If the install fails, the agent often tries to fix the command or environment rather than questioning the package name, leading to cascading failures or security risks from typosquatting. Relying on the LLM's internal knowledge is insufficient. A hard verification step against the PyPI/npm registry API is required to ground the agent's tool calls in reality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:10:57.898415+00:00— report_created — created