How it runs
A dedicated LXC on the AI VLAN runs thehermes gateway daemon under systemd
(Restart=on-failure). The gateway drives the built-in cron scheduler and the
Kanban task board, so the agent keeps working unattended — no laptop, no cloud.
- Brain: an always-on local GPU model (OpenAI-compatible), so the agent never depends on an external API or a sleeping laptop. The brain is a single resident model served behind the router and selected at runtime from an OpenBao value, so re-pointing it needs no rebuild and no agent restart. It runs with thinking ON and carries sampling guardrails for quantized brains.
- Memory: the built-in
MEMORY.md/USER.md, stored under$HERMES_HOMEon a dedicated volume that is snapshotted and replicated off-node, plus the Hindsight provider (knowledge-graph recall) — a separate self-hosted service the agent reaches over the network rather than an in-process store. - Containment: the LXC is the blast-radius boundary — Hermes profiles isolate agent state, not OS access — with deliberately narrow egress.
Reaching it
Headless: SSH in and runhermes for the terminal UI, drive it through its gateway,
or talk to it in Slack — the wired-in messaging gateway (Socket Mode), and the
sole chat platform in front of it today. Multi-agent profiles + Kanban teams can
be layered on later — the agent home is already provisioned for them.
The optional Web Dashboard runs as a separate service. It is published only through
the homelab’s TLS reverse proxy and uses the same single-sign-on provider as the
other browser UIs. Keep webhook and API paths separate from the interactive route:
those machine clients use their own signed or bearer credentials.
Configuring it
Everything is in$HERMES_HOME/config.yaml (secrets in .env), set non-interactively
with hermes config set <key> <value>:
hermes model; check memory with hermes memory status.
Deployment is fully IaC — a Terraform-managed container plus an Ansible hermes_agent
role install and configure it, with updates managed declaratively through Ansible to prevent configuration drift.
Reliability: long-generation timeouts
Agentic tool calls can generate for many minutes. A timeout anywhere in the request path that fires before the model finishes kills the stream mid-tool-call, and the truncated response surfaces as an “invalid tool call” with empty content — a transport failure that masquerades as a model bug. The fix is a nested timeout chain where the client is the sole decider: each outer layer is configured to outlive the inner one, so only the innermost (the agent client) ever decides to give up.Queue recovery
Hermes keeps scheduled work on its Kanban board. If the scheduler queue wedges, the recovery path archives active incident cards, rebuilds enabled schedules, and verifies the gateway and watchdog services. Archiving preserves the task history for review while giving the scheduler a clean queue. Recovery never deletes the board or runs garbage collection. After recovery, operators verify the rebuilt schedule count and service state. They then wait for a normal scheduled delivery before declaring the incident resolved. This last check proves the complete scheduler-to-messaging path rather than only proving that configuration rendered successfully.LLM knowledge base (second brain)
The Hermes agent runs the bundledllm-wiki skill to build and maintain an interlinked Markdown knowledge base from raw sources. It ingests URLs, PDFs, and notes into an immutable raw/ layer, then synthesizes curated entities, concepts, comparisons, and queries pages. These pages use YAML frontmatter, [[wikilinks]], and a tag taxonomy for structure.
The system keeps an index.md catalog and an append-only log.md, and lints for orphans, broken links, stale content, and source drift (tracked via SHA256 hashes). The wiki lives on the agent’s persistent, snapshotted storage, with a nightly job running lint and health checks. “Compile knowledge once, reuse often” — providing inspectable Markdown instead of opaque memory.
Autonomous documentation contributor
The agent can read public repositories and open documentation pull requests on its own as a dedicated GitHub App bot identity. Key properties of this workflow include:- Commits are cryptographically verified/signed, authored via the GitHub API’s commit-on-branch flow as the App, satisfying a “require signed commits” branch protection rule.
- PRs are opened as drafts and the bot has no merge authority. A human always reviews and merges; organization rulesets block the bot from self-merging.
- Guardrails: The workflow enforces one focused change per PR, source attribution, per-repo daily caps, duplicate detection, secret redaction, and a strict public/private routing rule so sensitive material never lands in a public PR.
Tool integrations (MCP + skills)
The Hermes agent fan-out connects its LLM routing brain to multiple internal and external capabilities:- Splunk MCP: The
mcp_servers.splunkentry connects to the Splunk MCP Server app (Splunkbase 7931) at${SPLUNK_MCP_URL}(which MUST be the management base plus the/services/mcppath) usingAuthorization: Bearer ${SPLUNK_MCP_TOKEN}. Tokens are not generic Splunk JWTs; the app strictly accepts tokens minted by its ownGET /services/mcp_token?username=<user>&expires_on=+90dendpoint. These minted tokens have anmcpaudience, are RSA-encrypted, and enforce encryption by default (require_encrypted_token). OpenBao is the sole machine-secret source for this shared connection. Hermes and Nix-managed workstation harnesses use the same Splunk service identity. - Context7 MCP: A hosted MCP connection at
https://mcp.context7.com/mcpfor up-to-date library/framework documentation. An API key (raising rate limits) is now supplied from the shared secrets engine on the generic AI credential path, so every harness that reads that path gets the same keyed access; the auth header is only rendered when a key is present. - GitHub issues/projects: The agent interacts with GitHub via a custom skill (REST for issues, GraphQL for Projects v2, with guardrails). This is powered by a scoped, short-lived GitHub App installation token for issues and Projects v2 — no personal access token remains anywhere in this system — minted from the shared OpenBao GitHub service engine.
- Codex escalation: For tasks beyond the local brain’s reach, the agent can escalate to an external frontier coding model (Codex). Its credential is bootstrapped once from the shared secrets engine into the agent home on first converge (create-only — an existing session is never overwritten), so the capability materializes without hand-placing secrets on the host.