[STUDY] Context compression — learn from Claude Code's compact system #155
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Epic: #154
Maps to: #92 (context compression)
Source Files
src/services/compact/compact.ts(60,755 bytes) — the main compaction enginesrc/services/compact/autoCompact.ts— automatic compaction triggerssrc/services/compact/grouping.ts— how messages get grouped for compactionsrc/services/compact/microCompact.ts— lightweight compaction variantsrc/services/compact/sessionMemoryCompact.ts— memory-aware compactionsrc/services/compact/postCompactCleanup.ts— cleanup after compactionsrc/services/compact/prompt.ts— the prompt sent to the compaction modelKey Patterns to Study
What to Document
Acceptance Criteria
services/compact/