🪽Hermes Context Compression
Also known as Hermes /compress, Hermes compression threshold, Hermes context summary
How Hermes shrinks a long chat. It sums up old turns at half the window.
Think of it like
It is like telling a long story again in a few lines. Then there is room to talk.
Example
Sara's chat with Hermes runs all afternoon. At half the window, the morning's turns become one short summary, and the chat keeps going.
Why it matters
Without it, a long chat hits the window limit and fails. With it, a session can run for hours.
Definition
Example code
yaml
compression:
enabled: true
threshold: 0.50
protect_last_n: 20Common mistake
Key takeaways
- 1Half full. The default trigger is 50 percent.
- 2Recent stays. The last turns are kept word for word.
- 3Memory first. Facts are saved before the summary.