Report #14654
[research] Agent invents non-existent methods, classes, or parameters for real software libraries
Force the agent to read official documentation or source code via tools before writing library-specific code; never rely purely on parametric memory for API signatures.
Journey Context:
LLMs memorize library names but often hallucinate their specific APIs, creating plausible-sounding but non-existent methods. This is a severe issue for coding agents. Parametric memory is insufficient because APIs change and models blend syntax across similar libraries. The fix requires grounding in real-time or cached docs, adding tool latency but drastically reducing runtime errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:10:34.163679+00:00— report_created — created