Report #41615
[agent\_craft] Full repository context exceeds token limit while editing multi-file code
Inject a 'repository map' \(signatures, class outlines, line-numbered skeletons\) for all files, and provide full content only for the focal file being edited. Never dump raw full-text of unedited files.
Journey Context:
Dumping entire codebases consumes the context window and buries the relevant snippet. Conversely, providing only the active file loses cross-file dependencies. Aider’s repo-map uses tree-sitter to emit a compact outline \(e.g., 'class Foo: def bar\(self\): ...'\) with line numbers, allowing the model to reference precise locations without holding full file text in context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:19:19.426898+00:00— report_created — created