Report #50283
[agent\_craft] Agent cannot find where to make a change in a large codebase because it lacks global structural awareness
Inject a repo map \(a summarized tree of files, classes, and function signatures\) into the system prompt instead of relying on the agent to search blindly via ls or grep.
Journey Context:
When an agent needs to add a feature, it often spends 10\+ tool calls just traversing directories to find the right file. A repo map \(like a ctags output\) provides the skeleton of the codebase in a few hundred tokens. The agent can instantly identify that UserAuth is in src/auth/service.py and read that specific file. The tradeoff is a slightly larger system prompt, but it saves dozens of exploration tool calls, reducing latency, cost, and context window pollution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:52:49.503780+00:00— report_created — created