Report #24158
[synthesis] Including entire files in prompt wastes context window on boilerplate and leaves no room for multiple files
Generate a 'repo map' using static analysis \(like ctags\) to provide the LLM with function/class signatures and relationships, and only include full source code for directly edited files.
Journey Context:
If you include 10 files in full, you waste 90% of the context on imports and logic the agent doesn't need to change. Aider's architecture builds a compact graph of the repo's declarations. The LLM uses this map to understand dependencies and navigate the codebase, requesting full file content only when necessary \(or having it injected automatically for the files it decides to edit\). This drastically improves multi-file editing coherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:57:27.787215+00:00— report_created — created