Skip to content

Context Files

Context files are the long-lived instructions Hermes can read when it enters a project. They are useful and sharp. Written well, they make the agent behave like a teammate who knows the project. Written poorly, yesterday’s temporary thought becomes today’s hidden policy.

Good context file content is stable, reusable, and relevant to most runs.

ContentFit
Project folder conventionsGood fit.
Coding style and test habitsGood fit.
Safety boundaries, such as directories to avoidGood fit.
A temporary plan for the current taskPoor fit; use an issue or task doc.
Raw research excerptsPoor fit; keep internal research notes elsewhere.
Unreviewed draftsPoor fit; they can pollute later output.

A good file is short, concrete, and maintainable. It is not a dump of chat history.

If the project already has AGENTS.md, use it for cross-agent project rules. Use .hermes.md for Hermes-specific behavior, such as preferred tools, session habits, or Hermes-only limits.

# Project rules
- Public docs live only in src/content/docs/.
- Research notes and topic decisions live in content-plans/.
- Unless explicitly requested, do not run test or build commands.
- When editing public pages, do not include internal planning fields.

Rules should tell the agent how to act. Avoid vague lines like “be professional” or “think carefully” when there is no way to check them.

Hermes can use SOUL.md or personality settings to shape voice. That is appropriate for personal preferences and interaction style. It is not the right place for project safety rules, deployment steps, or coding standards.

Keep style and rules separate. Style may vary by user. Project rules should be reviewable, versioned, and shareable by the team.

When a task needs a file, diff, URL, or folder, use an explicit reference rather than pasting a large block into the prompt. Hermes can locate the source more reliably, and temporary material is less likely to become permanent context.

This matters a lot for technical documentation projects. Public pages should answer reader questions directly; internal research, search intent, review questions, and competitor notes should stay in internal folders.

Check context files when:

  • Hermes keeps bringing back the same old assumption.
  • Public output contains private process language.
  • It repeatedly runs commands you no longer want.
  • It ignores new folder conventions or release habits.

Do not fight bad context with longer prompts. Fix or remove the source.