Recommended Reading Order
If you are new to the codebase: This page - orient yourself Agent Loop Internals - how AIAgent works Prompt Assembly - system prompt construction Provider Runtime Resolution - how providers are selected Adding Providers - practical guide to adding a new provider Tools Runtime - tool registry, dispatch, environments Session Storage - SQLite schema, FTS5, session lineage Gateway Internals - messaging platform gateway Context Compression & Prompt Caching - compression and caching ACP Internals - IDE integration
From the official Hermes Agent documentation.