feat: add Hermes Agent session collector#139
Open
goelahradhikami-cmyk wants to merge 4 commits into
Open
Conversation
Adds a new collector module for Hermes Agent (github.com/NousResearch/hermes-agent) that monitors Hermes sessions alongside Claude Code, Codex CLI, and OpenCode. Hermes collector discovers Hermes workers via process command-line scanning (--session-key flag), reads the SQLite state.db for session metadata and token counts, and maps running PIDs to DB sessions by session ID. Supported features: - Session discovery (running Hermes workers) - Token tracking (input, output, cache read/write) - Context window % via model lookup table (20+ models) - Status detection (Thinking/Executing/Waiting/Done) - Child process tracking - Cross-platform Windows/Linux/macOS support - Configurable via hidden_agents = ["hermes"] in config.toml The Hermes agent_cli identifier is "hermes" so users can hide Hermes sessions with: hidden_agents = ["hermes"]
…rmes messages table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new collector for Hermes Agent — an open-source AI agent framework by Nous Research. Hermes belongs to the same category as Claude Code, Codex CLI, and OpenCode.
How it works
python -m tui_gateway.slash_worker --session-key <id>to map PIDs → Hermes session IDs~/.hermes/state.dbor~/AppData/Local/hermes/state.dbon Windows desktop) for session metadata, token counts, model infoSupported features
Usage
Hermes sessions appear automatically with agent_cli
"hermes". To hide them:Cross-platform
Tested on Windows. Works on Linux and macOS via the same sqlite3 CLI approach used by OpenCodeCollector.
Closes #...