ctx-monitor
A Hermes Agent desktop plugin: a
permanent status bar chip showing, at a glance and live:
- CTX % — how full the focused session's context window is (streamed during
the turn, no RPC), with a tooltip breaking down used/max tokens; - MEM % — how full the agent's persistent memory stores are
(MEMORY.md/USER.mdchars vs the configured limits), refreshed every 15 s.
The chip turns accent-colored once either metric reaches 85%, so you can see a
session approaching compression — or memory approaching its consolidation point —
before it becomes a problem.
Install
hermes plugins install brunomalveira/hermes-ctx-monitor
Pin an exact commit for a reproducible install:
hermes plugins install brunomalveira/hermes-ctx-monitor --ref <40-char-sha>
Then:
- Enable the backend —
--enableskips the confirmation prompt; otherwise
answer it (this adds the plugin toplugins.enabledin the active profile's
config.yaml). The gate is per profile: repeat
hermes config set plugins.enabled '["ctx-monitor"]'with that profile's
HERMES_HOMEto enable it there too. - Show the chip — restart the desktop app (the shell lifts the desktop half
at startup), then check Settings → Plugins if it does not appear. The chip is
app-level: it renders once, regardless of which profile a chat uses.
What it reads
Only the character counts of the active profile's memories/MEMORY.md and
memories/USER.md against the configured memory.memory_char_limit /
memory.user_char_limit. The counts are served by the plugin's own backend
(dashboard/plugin_api.py) over /api/plugins/ctx-monitor/stats, which only the
local gateway serves, authenticated — never the conversation contents, and
nothing leaves the machine.
Disclosure
- Reads outside the plugin's own data: file sizes of the two memory files
(contents are never returned, stored, or sent anywhere). - Network calls: none.
- Credentials: none. No env vars, no OAuth, no telemetry.
- Background processes: none; the backend is a read-only endpoint inside the
Hermes gateway process.
Requirements
- Hermes Agent
>= 0.23.4with the desktop app (the chip uses the desktop
plugin SDK's live usage stream; there is no CLI/TUI surface).
License
MIT
README from the reviewed commit 5de23e3; it updates when the author re-pins.

brunomalveira