Report #60546
[agent\_craft] Agent hallucinates non-existent functions or imports because it lacks a global view of the project API
Generate and inject a compressed 'repo map' \(e.g., class and method signatures\) into the system prompt instead of loading entire files.
Journey Context:
Reading every file is impossible due to context limits. RAG only provides local context, missing the global architecture. A repo map provides global awareness \(what exists, where it is\) for routing, while reserving the full context window for the specific local code being edited.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:06:46.952416+00:00— report_created — created