mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
215a3186ff
Rework compaction to match Pi's method: - Token-based cut point (KeepRecentTokens=20k) instead of fixed message count - Auto-trigger: contextTokens > contextWindow - reserveTokens (16k default) - Pi's structured summary prompt (Goal/Progress/Decisions/Next Steps format) - /compact [instructions] supports custom focus text - Force compaction on manual request (only gate: >= 2 messages) - Summary displayed in styled block with sky/cyan border and token stats - Spinner properly animated during compaction