Hermes Context Manager
eas4ai/hermes-context-manager
Silent context compression plugin for Hermes Agent that shortens tool output and removes repeated work
Hermes Context Manager is a plugin for the Hermes Agent gateway that compresses tool outputs, removes repeated work and summarizes finished phases, so the main model sees a shorter conversation. It runs alongside Hermes's built-in ContextCompressor instead of replacing it.
What Hermes Context Manager does
The plugin, called HMC, is a port of the pi-dynamic-context-pruning plugin with additions. It works in two tiers. Single-message strategies, which include short-circuits for known success output, a code filter and truncation, run on every tool call. Full-list strategies, deduplication and error purging, run on each user turn and at session end. The main model is never told that compression happened.
The code filter strips function, class and struct bodies from source in tool output while keeping signatures, imports and docstrings, and supports Python, Rust, Go, JavaScript and TypeScript. Duplicate calls collapse to one result, with write_file and patch always protected. When context crosses a configurable threshold, an auxiliary model summarizes finished work ranges into a searchable per-session index. Extras include an opt-in localhost dashboard, SQLite token-savings analytics, an hmc_control tool and an /hmc slash command.
Key features
- Code-aware compression for Python, Rust, Go, JavaScript and TypeScript output
- Short-circuits that collapse pytest, cargo, git and JSON success output
- Deduplication that always protects write_file and patch
- Background summaries by an auxiliary model, never the main model
- Opt-in localhost dashboard with live event log
- SQLite analytics and an hmc_control tool with an /hmc slash command
When to use it
- Keeping long agent loops with large tool outputs inside the context window
- Measuring how many tokens compression saves per session or project
- Running a manual or per-turn sweep when automatic compression needs overriding
Who it is for: Hermes Agent gateway users whose sessions fill the context window with verbose tool output.
How it fits with Hermes Agent
A Hermes Agent plugin that layers on top of the built-in ContextCompressor and is installed with the hermes plugins command.
How to install Hermes Context Manager
These commands are copied from the project's README. Check the repository for the latest steps before you run them.
hermes plugins install entrepeneur4lyf/hermes-context-manager
hermes gateway restartNote: The README's install commands point to entrepeneur4lyf/hermes-context-manager rather than to this repository's own owner name.
FAQ
What is Hermes Context Manager?
Hermes Context Manager is a Hermes Agent plugin that quietly compresses tool outputs, deduplicates repeated calls and summarizes completed phases to keep the model's context short.
Does Hermes Context Manager work with Hermes Agent?
Yes. It is built for the Hermes Agent gateway and runs together with Hermes's own ContextCompressor, so both are active.
How do I install Hermes Context Manager?
Run hermes plugins install entrepeneur4lyf/hermes-context-manager and then hermes gateway restart, as shown in the README. A local clone can also be installed with a file:// URL.
Similar plugins for Hermes Agent
All pluginsFive-layer skill retrieval plugin for Hermes Agent: triggers, FTS5, synonyms, embeddings and RRF fusion
aliasocracy Hermes Tool SlimmerHermes Agent plugin that sends only the relevant tool schemas with each model request
Xquik-dev Hermes TweetHermes Agent plugin for X (Twitter) search, monitoring, follower exports and approval-gated actions
Sahil-SS9 Hermes Multichannel Prompt OptimizerRetired Hermes plugin that rewrote prompts before they reached the model; archived and unmaintained
clearmud Hermes Chat BubbleBeta Hermes Dashboard plugin that adds a draggable floating TUI chat panel
outsourc-e HermesWorld Dashboard PluginDashboard plugin that adds a HermesWorld tab to the Hermes Agent sidebar
Related guides: How to install Hermes Agent · How to run Hermes Agent securely