Report #46483
[agent\_craft] Context window exceeded when sending full codebase to coding agent
Use a repository map \(skeleton\) that sends full content only for active files and signatures/structure for passive files. Generate the map using ctags or tree-sitter to extract class/function signatures without implementations.
Journey Context:
Developers often dump entire file trees into the prompt, exceeding token limits or diluting attention. The alternative of sending only the 'current file' loses cross-file dependencies. The repo map \(popularized by Aider\) strikes a balance by sending structural metadata \(signatures, imports\) for all files and full text only for the active file. This mimics how human developers navigate codebases—knowing the shape of dependencies without holding every line in working memory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:29:51.901493+00:00— report_created — created