compache for Hermes
Long sessions get cheaper. This context engine leaves out of each request what later turns rarely need, by a policy fitted to conversations like yours, and only once the prompt cache has expired: then the history has to be paid for in full anyway. The conversation Hermes keeps is untouched, and the model fetches a trimmed part back with a reopen tool.
Set up
hermes plugins install BarendPotijk/compache/integrations/hermes
compache default --model claude-sonnet-5-5 -o ~/.hermes/compache.json
echo "COMPACHE_POLICY=$HOME/.hermes/compache.json" >> ~/.hermes/.env
# ~/.hermes/config.yaml
context:
engine: compache
prompt_caching:
cache_ttl: 5m # or 1h, where the policy was fitted for one-hour entries
compache default is a start. Fit your own to save more.
What it touches
| Reads | The policy file in COMPACHE_POLICY, and prompt_caching.cache_ttl in Hermes' configuration |
| Writes | Nothing, unless COMPACHE_RECORD names a folder. Then sizes, times and token counts of every turn, never text |
| Network, telemetry, shell, background work | None |
| Model calls, credentials | None of its own. When a conversation outgrows the model, it hands the model route Hermes gave it to Hermes' own compressor |
| Tools | reopen, while a policy is set. It returns trimmed text of the same conversation |
| Installs | compache from PyPI, which has no dependencies |
Needs Hermes 0.23 or later. Other ways in, with keep-warm pings and a policy learned from your own sessions: compache proxy.
README from the reviewed commit 10ea507; it updates when the author re-pins.

BarendPotijk