Awesome Hermes Plugins › Hooks & Observability

alexgreensh/token-optimizer

⭐ 2936 Python added to this list on 2026-09-21 repository created 2026-02-26

Token Optimizer is a token-usage and context-management tool originally built for Claude Code and now ported across nine different AI coding assistants (Claude Code, OpenCode, OpenClaw, Codex, Hermes, GitHub Copilot, Cursor, Google Antigravity, and Grok Build). Its dedicated hermes/ plugin directory packages this functionality as a native, installable Hermes Agent plugin distinct from the other hosts' adapters: a plugin.yaml manifest declares four Hermes hooks — pre_llm_call, post_api_request, on_session_finalize, and on_session_end — and __init__.py implements them using only Hermes's own read-only state.db, with no dependency on Hermes internals beyond an optional, fail-open read of agent.usage_pricing for live cost estimates. Installed via the bundled install.sh --hermes script (or measure.py hermes-install), the plugin captures per-turn input, output, cache-read, cache-write, and reasoning token counts into an in-process tally, injects a one-line warning into the next turn once estimated context fill crosses roughly 70% of the model's window (fired once per session to avoid repetition), and rolls up each finished session into Token Optimizer's shared trends.db with a double-rollup guard so both end-of-session hooks cannot double-count. It also adds a /token-optimizer slash command for an in-chat token and cost summary and a hermes token-optimizer CLI subcommand that opens the shared dashboard (Overview, Quality, Waste, Sessions, Daily tabs) at localhost:24844. The installer's hermes-doctor subcommand verifies HERMES_HOME resolution, required files, hook registration, the plugins.enabled activation entry, state.db readability, and dashboard port availability. The project reports zero third-party dependencies and no telemetry; it must be explicitly allow-listed in Hermes's plugins.enabled configuration before it activates.

https://github.com/alexgreensh/token-optimizer

observabilitytokenscost-trackingdashboardhookscontext-management

Also in Hooks & Observability

rullerzhou-afk/clawd-on-desk

Clawd on Desk is a pixel desktop pet that reacts to your AI coding agent's activity in real time, offering visual feedback for various states and supporting numerous AI agents including Hermes.

lennney/stop-that-shit

A cross-harness task-boundary guard that ships a Hermes Agent plugin, blocking an AI coding agent from mutating files, dependencies or hashes outside the mode the user asked for.

8bit64k/cronalytics

Cronalytics is a Hermes Agent plugin providing detailed analytics and observability for scheduled agentic automations, tracking costs, tokens, and performance.

rarf/hermes-quota-plugin

A Hermes Desktop plugin showing live model-provider quota as a status-bar chip and sidebar pane, fed by a local cache that a Python backend refreshes across eight providers.

kaishi00/hermes-conduit-notifier

Hermes plugin that observes lifecycle hooks and pushes approval, clarification, completion and failure notifications to the companion Hermes Conduit iOS app via a self-hostable relay.

Adolanium/hermes-resetwatch

Hermes Desktop plugin showing live remaining-quota bars and reset timers for Claude, Codex, Cursor, and a dozen other AI provider plans on one page inside the app.

briancaffey/hermes-otel

An OpenTelemetry plugin for Hermes Agent that exports LLM tool calls, model invocations, and API requests as OTel spans to various tracing backends like Phoenix, Langfuse, SigNoz, and Jaeger.

oslook/hermes-desktop-plugin-office-3d

Hermes Desktop plugin drawing every configured profile as a person at a desk in an isometric office, showing busy/idle/offline state plus aggregate tokens and cost.