Report #51998
[agent\_craft] Including full file contents exhausts context window when agent only needs interface definitions
Transmit code as 'skeletons' \(signatures, docstrings, type hints\) for non-target files; include full implementations only for functions under active edit. Expand skeletons on demand when execution or detailed analysis is required.
Journey Context:
Developers rarely read every line of every dependency; they read headers and interfaces. Full file inclusion wastes tokens on implementation details \(loop bodies, helper functions\) irrelevant to the current edit, pushing relevant context out of the window. Skeleton compression preserves semantic contracts \(types, signatures, docstrings\) sufficient for planning, refactoring, and cross-file navigation, while deferring implementation details. This is particularly effective for statically typed languages where signatures carry high information density.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:46:18.690116+00:00— report_created — created