Context compression for long-running sessions #830

Closed
opened 2026-10-27 13:37:55 +00:00 by sam · 0 comments
Owner

Hermes config has compression enabled at 0.5 threshold, protecting first 3 and last 20 messages. Sam confirmed this is a must-have for long-running sessions. Without compression, context windows fill up and sessions degrade.

Scope:

  • Compression threshold (fraction of context window used)
  • Target compression ratio
  • Protect first N / last N messages from compression
  • Integrate with MemoryManager (pre-compress hook already defined: OnPreCompressProvider)
  • Use the existing StreamingContextScrubber for fence-stripping during compression

Imported from beads archie-core-1786637497638-298-6d3204b3 · GitHub #319 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08

Hermes config has compression enabled at 0.5 threshold, protecting first 3 and last 20 messages. Sam confirmed this is a must-have for long-running sessions. Without compression, context windows fill up and sessions degrade. Scope: - Compression threshold (fraction of context window used) - Target compression ratio - Protect first N / last N messages from compression - Integrate with MemoryManager (pre-compress hook already defined: OnPreCompressProvider) - Use the existing StreamingContextScrubber for fence-stripping during compression --- _Imported from beads `archie-core-1786637497638-298-6d3204b3` · GitHub #319 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumfeature labels 2026-10-27 13:37:55 +00:00
sam self-assigned this 2026-10-27 13:37:56 +00:00
sam closed this issue 2026-10-27 13:37:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#830