Skip to main content

Crate harness_compactor

Crate harness_compactor 

Source
Expand description

Five-stage progressive compaction (DESIGN.md §9), borrowed from Claude Code.

DefaultCompactor is purely structural — it doesn’t call a model. Stage 3 (Microcompact) and Stage 5 (AutoCompact) would normally invoke a cheap LLM; here we collapse content into terse summaries so the framework can run offline. Wire a ModelBackedCompactor later if you want semantic summaries.

Structs§

DefaultCompactor
Heuristic compactor — operates on the structure of the context only.
ModelBackedCompactor
Compactor that calls an LLM for the inferential stages and falls back to DefaultCompactor’s structural strategies for the computational ones.