Tools Runtime
Hermes tools are self registering functions grouped into toolsets and executed through a central registry/dispatch system. Primary files: Tool registration mode
Hermes tools are self-registering functions grouped into toolsets and executed through a central registry/dispatch system. Primary files: Each tool module calls at import time. is responsible for importing/discovering tool modules and building the schema list used by the model. Every tool file in calls at module level to declare itself. …
What this page covers
- Tool registration model
- How registry.register() works
- Discovery: discoverbuiltintools()
- Tool availability checking (checkfn)
- Toolset resolution
- How gettooldefinitions() filters tools
- Legacy toolset names
- Dispatch
- Dispatch flow: model toolcall → handler execution
- Error wrapping
- Agent-loop tools
- Async bridging
- The DANGEROUSPATTERNS approval flow
- Terminal/runtime environments
- Concurrency
- Related docs
Section outline mirrored from the official Hermes Agent documentation. Follow any heading to read the complete text on the source site.
More in Developer Guide
Contributing
Thank you for contributing to Hermes Agent! This guide covers setting up your dev environment, understanding the codebase, and getting your PR merged. Contribut
Architecture
This page is the top level map of Hermes Agent internals. Use it to orient yourself in the codebase, then dive into subsystem specific docs for implementation d
Agent Loop Internals
The core orchestration engine is 's class — a large file that handles everything from prompt assembly to tool dispatch to provider failover. Core Responsibiliti
Prompt Assembly
Hermes deliberately separates: cached system prompt state ephemeral API call time additions This is one of the most important design choices in the project beca
Context Compression and Caching
Context Compression and Caching Hermes Agent uses a dual compression system and Anthropic prompt caching to manage context window usage efficiently across long
Gateway Internals
The messaging gateway is the long running process that connects Hermes to 20+ external messaging platforms through a unified architecture. Key Files File Purpos