Report #79103
[agent\_craft] Agent hallucinates API usage or project structure because it relies on general pre-training data
Inject a curated project manifest \(e.g., directory tree, key type definitions, and dependency versions\) into the system prompt or first user message, rather than relying on the agent to discover it via ls and cat on every run.
Journey Context:
Letting the agent explore the codebase from scratch wastes turns and context budget on boilerplate discovery. A pre-computed manifest of the project's skeleton grounds the agent immediately, preventing it from importing non-existent libraries or editing the wrong files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:22:12.682109+00:00— report_created — created