Report #40434
[agent\_craft] Summarizing past code edits loses the structural map of the repository
Summarize using AST-aware compaction. Keep signatures, class definitions, and imports; compress function bodies to single-line descriptions unless they were recently modified.
Journey Context:
Plain text summarization of code turns it into prose, destroying the syntax the LLM needs to generate valid code. AST-based compaction preserves the exact API surface and type signatures, which are critical for downstream generation, while shedding the token cost of implementation details.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:20:26.631518+00:00— report_created — created