Hermes Agent reads the project code, and the key is to launch it from the correct project directory. hermes you run in any directory, it will use that as the current working context and can read the project content through the File tool, search tool, and filename reference.
Recommended Usage
- Go to the project root:
cd your-project. - Run
hermes. - Ask it:
先阅读 package.json 和 src/main.ts,告诉我项目结构. - Let it search for key files for large projects first, don't stuff the entire repository at once.
Make it more project-aware
Put AGENTS.md or .hermes.md in the project root directory and write down the architecture, commands, test methods, and prohibitions. The official Context Files documentation states that Hermes automatically discovers these context files.
In a word: Start the Hermes Agent from the project root and control the context with filename and AGENTS.md.
Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.