Report #50471
[agent\_craft] Agent lacks global project structure awareness, leading to duplicated code or reinventing existing utilities
Inject a compressed, dynamically updated repo map \(e.g., classes, methods, and signatures using tree-sitter\) into the system prompt, rather than trying to load entire files.
Journey Context:
You cannot fit a whole repo in context. If you only load the file being edited, the agent does not know what utilities exist. A repo map gives the agent a table of contents to navigate. It can then specifically request the full implementation of only the classes or methods it needs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:11:51.041209+00:00— report_created — created