All plugins

context-tracker

A small titlebar ring for context headroom, with cumulative session input/output and explicit compaction in the pinned panel.

mu1ze1Desktopv1.2.0Updated 13 days ago

Hermes Context Tracker

See what fits now and what the conversation has used so far. A small ring in the top-left toolbar of Hermes Desktop follows the focused chat.

Pinned context and session usage in dark mode — synthetic data

  • Hover for context used, capacity and remaining tokens.
  • Click to pin the panel and see the current model and a split bar for session input versus output. Hover the readout or tab to it for exact token counts. Click the ring again, click outside, or press Escape to dismiss.
  • Use the chevron beside Context window to show estimated categories. The tracker remembers whether you left them open or closed. Use Compact session to summarize older context in that conversation.

The ring is current context occupancy. Session input/output are cumulative Hermes-reported counts across model switches, not context occupancy or a per-model bill. The current model label doesn’t attribute all those tokens to that model. ? means unavailable, not empty. The meter fill stops at 100%, but the panel still reports overages.

Install

In Capabilities → Plugins → Install from Git, paste https://github.com/mu1ze/hermes-context-tracker and choose Desktop. Or download a release ZIP and copy desktop/plugin.js into $HERMES_HOME/desktop-plugins/context-tracker/ (normally ~/.hermes/desktop-plugins/context-tracker/). If needed, use Reload desktop plugins in the command palette.

Requires Hermes Desktop 0.23.2 or later and a gateway with session.context_breakdown for categories and session.compress for compaction. No separate backend, account, or build step. Disable it in Capabilities → Plugins, or remove the manually installed folder.

Compaction and privacy

Compaction is explicit and only targets the focused session on its owning gateway. It may use model tokens and has no undo in this plugin. The button is disabled during turns, when the session gateway cannot be reached safely, and while compaction is pending or unconfirmed. The tracker does not auto-retry this action. If a request times out, check the conversation before retrying; reloading the plugin clears its in-memory guard.

The plugin reads usage metadata through the existing Desktop SDK. It only reads the focused session’s token and model metadata through Hermes’ gateway. It stores the breakdown’s open/closed preference locally; it does not persist conversation contents, read credentials, call third-party services, or send telemetry. It runs no shell commands or background processes. As with other Desktop plugins, it runs with app authority.

Tests

With Node.js 22+: npm ci, npx playwright install chromium, then npm test. Linux CI uses npx playwright install --with-deps chromium.

Tests run the plugin with React, React Query, Radix and a small SDK fixture. They cover the compact overview, disclosure, live and unknown states, overages, focus and gateway isolation, compaction responses, and light/dark contrast. Screenshots and compaction responses in tests are synthetic, not live account data.

MIT · Independent community plugin. Model-family symbols are adapted from Lobe Icons (MIT), bundled locally without network requests. Unknown models keep their names without a logo.

README from the reviewed commit dacc415; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section