Request-only selection
select_context() can return a bounded replacement only for the current request. Returning None preserves the original request when it already fits or when safe selection cannot be produced.
Entroly implements the Hermes ContextEngine contract so Hermes can select request-only evidence under a model budget, observe completed-turn usage, adapt when the model window changes, report bounded status, and recover the exact pre-compression conversation through a hash-only tool.
pip install -U entroly
Install the Entroly context-engine directory into Hermes' context-engine plugin location, then choose Entroly in the Hermes configuration:
context:
engine: "entroly"
The implementation remains importable without making hermes-agent a required Entroly dependency. When Hermes is installed, Entroly uses the host's ContextEngine interface.
select_context() can return a bounded replacement only for the current request. Returning None preserves the original request when it already fits or when safe selection cannot be produced.
update_model() recalculates the compaction threshold when Hermes switches models or context windows, rather than assuming one fixed budget.
on_turn_complete() observes normalized usage, while get_status() exposes bounded counters and the most recent recovery handle.
When compression changes the request, Entroly stores the canonical pre-compression conversation and exposes one entroly_retrieve(hash) tool for exact full-content recovery.
{
"name": "entroly_retrieve",
"arguments": {
"hash": "ccr:0123456789abcdef01234567"
}
}
hash argument.No. Entroly operates at the context boundary. Hermes remains responsible for agent learning, skills, tools, and long-running behavior.
No. entroly_retrieve is deliberately hash-only. Discovery and ranking happen before a recovery handle is known.
The adapter follows a fail-open context policy and preserves the Hermes request rather than breaking the turn.
Yes. The integration updates the context length and threshold when Hermes reports a model change.
Inspect the Hermes integration source · Compare all Entroly agent integrations