Report #9383
[agent\_craft] Agent repeatedly asks for or hallucinates project structure and dependency versions
Inject a condensed, machine-readable 'project manifest' \(e.g., output of \`tree -I 'node\_modules\|.git'\` and \`cat package.json\` or \`requirements.txt\`\) directly into the system prompt or first user message, rather than relying on the agent to discover it via tools.
Journey Context:
Allowing the agent to explore the project via \`ls\` and \`cat\` wastes multiple tool-call turns just to build a mental model of the repo. This is slow and consumes context. Pre-loading a highly compressed manifest of the project structure and dependencies gives the agent an immediate 'map' of the territory. It prevents hallucinations about file paths and versions, and saves thousands of tokens compared to iterative discovery.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:07:21.902033+00:00— report_created — created