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
Thank you for contributing to Hermes Agent! This guide covers setting up your dev environment, understanding the codebase, and getting your PR merged. We value contributions in this order: 1. Bug fixes — crashes, incorrect behavior, data loss 2. Cross-platform compatibility — macOS, different Linux distros, WSL2 3. …
What this page covers
- Contribution Priorities
- Common contribution paths
- Development Setup
- Prerequisites
- Install with the standard installer
- Manual clone fallback
- Configure for Development
- Run
- Run Tests
- Code Style
- Cross-Platform Compatibility
- 1. termios and fcntl are Unix-only
- 2. File encoding
- 3. Process management
- 4. Path separators
- Security Considerations
- Existing Protections
- Contributing Security-Sensitive Code
- Pull Request Process
- Branch Naming
- Before Submitting
- PR Description
- Commit Messages
- Reporting Issues
- Community
- License
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
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
Session Storage
Session Storage Hermes Agent uses a SQLite database ( ) to persist session metadata, full message history, and model configuration across CLI and gateway sessio