Hermes Agent
Hermes Agent
Production agent framework by NousResearch. The core class is AIAgent in run_agent.py (~10,700 lines).
Key Characteristics
- Multi-provider: supports OpenAI-compatible, Codex/Responses, and native Anthropic APIs via a mode abstraction
- Two entry points:
agent.chat()(returns string) andagent.run_conversation()(returns full dict with messages, metadata, usage) - Concurrent tool execution: multiple tool calls dispatched via
ThreadPoolExecutor - Interruptible: API calls run in background threads; can be abandoned without polluting history
- Budget-aware: parent agents default 90 turns; subagents capped at 50
- Session-persistent: messages saved after each turn; compression generates new lineage ID
Core Loop
See Hermes Agent Loop for the full turn lifecycle.
Related Pages
- NousResearch — the organization
- Hermes Agent Loop — loop mechanics
- Source - Hermes Agent Loop (Nous Research Developer Guide)