agent-ops-patterns / gallery / Hermes Agent map / how it decides

How Hermes Agent decides

In Hermes Agent, on a normal step the configured main model proposes tool calls or a text answer; code checks an answer before accepting it and can send the model back, for example up to twice for a short reply that only announces a next step. Code applies the limits, among them a step allowance per turn, automatic compression as the prompt nears the window, and an optional time budget that can warn near the end but does not itself stop the run.

From NousResearch/hermes-agent at source version b200f5bc, mapped 2026-11-03. Each answer links the place in the code where that decision is made; the full map has the rest.

What it does without asking you

How it decides it is done

Limits and memory

Other judgments

Three problems in the code

  1. 1. A run budget can warn near the end but does not enforce a deadline

    With --run-budget or agent.run_budget_seconds set, once 80% of the time has passed Hermes adds a one-time wrap-up notice to a tool result when it can, and it can shorten a default wait on a silent model call. The setting does not itself stop the run when the time is up, although the option's help text says it is intended for runs with a hard ceiling. An open pull request proposes stopping the model at the deadline.

    Reported; a fix is proposed, not merged (#127780), checked 2026-11-15.

    Where: conversation_loop.py:126-158, chat_completion_helpers.py:678-687, _parser.py:300-306. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in three rounds; every sentence it found too wide was narrowed or removed.

  2. 2. Subagent calls over the limit in one reply are dropped without telling the model

    When a model reply has passed Hermes' tool-call checks and asks for more delegate_task calls than delegation.max_concurrent_children (10 by default), Hermes drops the calls over the limit before the reply goes into the conversation. The cap itself only logs a warning, and the model gets no result for the dropped calls. An open report in Hermes' tracker describes this.

    Already tracked upstream (#30405), checked 2026-11-15.

    Where: run_agent.py:1182-1200, turn_tool_round.py:96-113. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in three rounds; every sentence it found too wide was narrowed or removed.

  3. 3. A /loop ends when its finishing line appears anywhere in a reply

    A /loop ends as done when a reply has a line that is only LOOP_COMPLETE. The check matches such a line anywhere in the reply, not only at the end as the function's own description says, so a reply with that line in the middle also ends the loop.

    No tracker issue found, checked 2026-11-08.

    Where: loops.py:33-37, loops.py:370-372, loops.py:562-565. How we checked: the code was re-read at the source version named above; the sentences were checked by an independent AI reviewer from another company (OpenAI Codex, read-only) on 2026-11-08, in three rounds; every sentence it found too wide was narrowed or removed.

See the full map →

This card was taken from the published map of Hermes Agent at one commit and covers only decisions shown there; that map leaves out the desktop and terminal interfaces, packaging, and optional plugins that are off by default, except where they answer a question the agent asks, and no Hermes code was run to make this card.

Map: edition without a gap list or coverage figure, all 279 cards shown (published 2026-11-03) · taken from the full map · card data: gallery/cards/hermes.json. Found something wrong? Use the correction form.