Hermes Agent Lab

Hermes Agent Blog — Practical Guides & Insights

Latest articles and insights.

A gateway restart used to erase your subagent — now it keeps a record and picks itself back up

One restart, one power cut, and a 40-minute refactor becomes "unknown": no summary, no diff, no idea which of the twelve files were touched. Every subagent now keeps a durable record in the profile state.db, its worktree is pinned, resume_mode says why it stopped and what continuing needs, delegate_task can continue it by hand, and delegation.auto_resume lets the gateway resume the right ones on its own every 15 seconds.

Read more

Your backup models may all be dead — and nothing tells you until the outage

The moment the primary model gets rate-limited, you find out the first fallback provider rotated its key last month and the second one renamed its model two releases ago. Hermes now ships hermes fallback check: no agent session, every chain entry checked for config and credentials, --live sends one real minimal request, and it exits 1 when anything is not ready so cron and CI can gate on it.

Read more

Your prompt cache expires quietly. Hermes now shows you when

Hermes used to guess prompt-cache expiry separately in every place that cared, and on Nous Portal it kept asking for a one-hour cache the Portal throws away after five minutes. One clock now records what each request asked for and what the provider proved, and /context prints warm until, may still be warm until, or expired — with a confidence label.

Read more

The 420-second wall: why long Hermes commands died before their own timeout

You set timeout: 600 on a terminal call, Hermes promised a 600-second foreground cap, and the call still came back at 420 seconds with an error, no output and no exit code. A generic per-tool deadline was firing first, in 153 calls across 128 sessions on one install. Tools can now declare how long one call legitimately blocks, and the generic deadline moves out of the way.

Read more

The folder was deleted, so every command after it failed — with a permission hint

When a terminal session working directory disappears (a pruner, a removed worktree, an rmdir), every later command used to fail without running, forever, and the hint blamed file permissions. Hermes now runs the next command in the nearest folder that still exists, tells the model it moved, and refuses a workdir you typed wrongly instead of running one level up.

Read more

Restarting the gateway used to freeze it for 30 minutes — and then kill your work

Ask Hermes to restart and it entered a draining state immediately: new messages were refused, follow-ups queued and never ran, background notices were dropped, and at the 30-minute cap it killed whatever was still working. Restart now waits for idle while serving normally, and the cap only warns and names what is still running.

Read more

Your backup failed and the error blamed the wrong provider

A configured fallback provider keeps long tasks alive when the primary login expires — until the backup fails too. Then the only error you see is the backup's, so you top it up and nothing changes. The real cause was the primary, and that fact was dropped at the moment routing switched.

Read more

Read-only at 10:00, write-capable at 10:01: why the MCP trust gate has to decide twice

Mark an MCP server as trust: untrusted and every write call asks you first. But the decision rests on the readOnlyHint the server itself reported — and that annotation is re-sent on reconnect, lazy start and token refresh. The old code used the value from before the reconnect, so a tool that was cleared as read-only went out as a write.

Read more

One command froze the whole gateway for 49 seconds: the regex trap inside the dangerous-command check

How does Hermes decide whether a command needs approval? With a set of regular expressions. One of them grew cubically with the number of blank lines: 400 blank lines took about 1.4 seconds, 1000 took about 49. And re.search holds the GIL while it runs, so a single terminal command can pin every session the gateway serves.

Read more

The sign-in code stops leaving your chat: Hermes now answers 2FA prompts on Telegram, Slack and Discord

A site texts you a six-digit code in the middle of a login, and the agent can only ask you on a local screen — that was one of the most common dead ends. Hermes now posts a card in chat, deletes your reply on receipt, and types the code into the page. It never becomes a chat message, a log line, or model context.

Read more

Plugins Can Now Copy the Agent Into the Background: fork_session and Idle Tasks

Before this, a plugin that wanted background work after a turn had to count tool calls, spawn threads and guard re-entry inside a hook — a second, worse copy of what core already did. Two APIs merged on November 13 hand plugins the real thing: ctx.fork_session for a bounded background copy of the session agent, and ctx.register_idle_task for work with no turn to hang off.

Read more

An MCP Tool Returning 1KB Doubled Your Token Bill: One Result Sent Twice

FastMCP and the official Python SDK put str and list returns in both content and structuredContent. Hermes did not recognise the second copy as a wrapper of the first, so the same payload reached the model twice — and the fix merged on November 14 also explains why spill files held only half the data.

Read more

Bot Replying to Every Side Comment? One Hermes Setting Fixes It

In free-response Slack channels and WhatsApp groups, colleagues talk to each other and Hermes answers each message with a "model returned only a silence marker" notice. The allow_silence setting merged on November 14 turns silence on per platform, with per-room overrides — plus display.suppress_warning_notifications to hide the notice itself.

Read more

Hermes Closed 31 Credential Leaks Overnight: Another User on Your Box Could Read Your API Key

Between the night of November 13 and the small hours of the 14th, Hermes merged 31 security-hardening PRs: config.yaml kept its world-readable mode, backup zips were 0644, --redact only scrubbed chat messages, secrets in model reasoning hit the database, and webhook subscribe printed the HMAC secret. Here is what each one was, how far it reached, and what to check today.

Read more

15 Profiles, One Gateway: Every MCP Server Got Started 15 Times

A multiplexed gateway serving 15 profiles also starts each profile's stdio MCP servers separately. Fifteen copies of one chatty server ate 7.5 cores, the event loop spent 69% of its time waiting for the GIL, and /health went silent for 30 seconds.

Read more

Your Memory Notes Got Pasted Into an Email: Hermes Closes a Silent Recall Leak

Every turn, Hermes injects recalled memory as a fenced memory-context block. Models sometimes echo that block into their answer, and while streamed replies were scrubbed, the completed reply was not — so non-streaming channels like email sent memory notes and credentials verbatim.

Read more