Back to AI Q&A
How do you write AGENTS.md for Hermes Agent?

How do you write AGENTS.md for Hermes Agent?

AI Q&A Admin 166 views

Hermes Agent's AGENTS.md is used to tell the agent how the project works. The official Context Files documentation states that Hermes finds AGENTS.md in startup directories and subdirectories and injects them as project context.

The most practical way to write

Don't write slogans, write specific rules:

  • Project structure: where is the frontend, backend, script, tests.
  • Common commands: how to start, how to test, how to build.
  • Code specifications: what package manager, naming conventions, directory conventions to use.
  • Prohibited matters: Do not change the migration file, do not submit the key, and do not run the production script.
  • Critical paths: configuration files, entry files, API directories, test directories.

What to do with multi-catalog items

The root directory is placed in the general rules, and the subdirectory is placed in a more specific AGENTS.md. Hermes will gradually discover the context as it reads the relevant subdirectory files, avoiding cramming too much content at once.

In a word: AGENTS.md write enforceable project rules, not empty introductions.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More