Context files are project-specific instruction files that Hermes automatically loads when you run it in a directory. They let you embed permanent project context — coding standards, architecture notes, deployment procedures — directly in your repository.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NousResearch/hermes-agent/llms.txt
Use this file to discover all available pages before exploring further.
What context files are
When Hermes starts, it walks up the directory tree looking for files namedAGENTS.md, CLAUDE.md, or similar. Any files found are injected into the agent’s context at the start of the conversation.
This means every conversation you have in a project directory automatically includes your project’s rules and context — without you needing to repeat them.
Supported file names
Hermes looks for these files (in this order):AGENTS.mdCLAUDE.md
~/projects/myapp/ is loaded when you run Hermes anywhere inside that directory tree.
What to put in context files
Good context file contents:- Project structure: which directories contain what, how the codebase is organized
- Coding standards: language version, linting rules, naming conventions, file structure
- Development workflow: how to run tests, build the project, deploy
- Architecture decisions: why certain choices were made, what to avoid
- External services: which APIs are in use, where credentials come from
- Known issues: gotchas the agent should be aware of
Example AGENTS.md
Deployment
Deploy via GitHub Actions — don’t push tomain directly.
Staging: push to staging branch.
Production: create a PR, get one review, merge.
Known issues
- The
authmodule has a circular dependency issue being tracked in #234 — don’t add imports to it - Database migrations must be run manually:
pnpm migrate