Report #3864
[agent\_craft] Context window overflow when sending entire codebase or irrelevant full files to the agent
Implement a 'repo map' summarization layer: send file signatures/imports \(skeleton\) for all files, and full content only for retrieved/selected relevant files
Journey Context:
Dumping whole files wastes tokens and dilutes attention. Truncation loses critical context. The proven pattern \(used by Aider, Cursor\) is hierarchical: a static map of the repo structure \(signatures, classes, functions\) provides global context, while a working memory of full file content is swapped in as needed based on the task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:21:05.647695+00:00— report_created — created