One turn through Hermes Agent

    architecture node:

    Representation at this boundary

    Source modules

      Loop map

      One pass — CLI/gateway input → turn lease → preflight compaction check → prompt assembly with tool search → conversation_loop model call → tool dispatch with approvals → guardrailed answer. The lease serializes turns; the loop never overlaps itself.
      Two learning timescales — after the turn, a background review distills what worked into candidate skills, and a curator promotes the keepers. The harness gets better at its job without a human editing prompts.
      Preflight, not just prompt — before each turn, compaction state is checked and the tool surface is searched — the model only sees the tools this turn needs. Approvals gate dispatch; guardrails shape the answer. The next user message re-enters at step 1.