sam
b261ee4b91
feat: context compression for long-running sessions
CompressionConfig with threshold-based triggering (default 50% of 128k window).
Protects first 3 and last 20 messages. Truncated middle replaced with statistical
summary (turns, tokens removed, topic range). CompressHistory() returns
CompressedView with before/after token counts. Integrated into Telegram
LLMResponder — fetches 100-message window, compresses before LLM call.
Matches Hermes config: threshold=0.5, protect_first=3, protect_last=20.
All 38 packages pass with -race.
Closes abg.33.
2026-07-26 10:36:24 +10:00
..
2026-07-26 09:53:33 +10:00
2026-07-26 10:34:26 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 10:05:44 +10:00
2026-07-26 10:25:07 +10:00
2026-07-26 10:05:44 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 10:05:44 +10:00
2026-07-26 10:36:24 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 10:05:44 +10:00
2026-07-26 10:33:13 +10:00
2026-07-26 10:05:44 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:38 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 10:25:07 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00
2026-07-26 09:53:33 +10:00