Custom Compaction Plugin (migrated from Pi ecosystem custom-compaction.ts).
Overrides default context compaction with a tiered summarization strategy:
- Condenses messages into an architectural milestone summary.
- Retains key decisions, modified files, and active goals.
- Can route compaction summaries to a lightweight model (e.g. Gemini Flash) rather than consuming expensive primary reasoning tokens.
Summary
Functions
Builds a distilled milestone summary from a list of conversation entries.