How memory works
There are two memory files, both stored in~/.hermes/memories/:
| File | Purpose |
|---|---|
MEMORY.md | The agent’s personal notes — environment facts, project conventions, tool quirks, things learned |
USER.md | Your profile — name, role, preferences, communication style, workflow habits |
§ (section sign) and have character limits to keep the system prompt compact.
Memory locations
Periodic memory nudges
Hermes proactively notices when important information should be saved. After a conversation where you share preferences or the agent discovers something worth keeping, it will offer to write a memory entry. You can also trigger this manually:memory tool directly:
FTS5 session search
Past conversations are stored in a SQLite database with FTS5 full-text search. Thesession_search tool lets the agent search across all past sessions by keyword, summarize results with an LLM, and surface relevant context from previous work.
You can trigger a search from a slash command or by asking the agent:
Honcho dialectic user modeling
Honcho is an AI-native memory system that builds a persistent model of who you are across sessions using dialectic reasoning — it asks clarifying questions and refines its understanding of your preferences, goals, and context over time. To enable Honcho:- Set the
HONCHO_API_KEYenvironment variable in~/.hermes/.env - Honcho tools (
honcho_context,honcho_profile,honcho_search,honcho_conclude) activate automatically
MEMORY.md/USER.md system — they can be used together.
SOUL.md
~/.hermes/SOUL.md is the agent’s persona file. It defines Hermes’s character, communication style, and behavioral defaults. Edit it to adjust how the agent presents itself:
hermes claw migrate can import your existing SOUL.md.
Memory best practices
- Do save: preferences, environment facts, project conventions, corrections, tool quirks
- Don’t save: session outcomes, completed-work logs, temporary task state (use
session_searchto recall those) - For procedures: use skills instead of memory
- For user identity: prefer USER.md over MEMORY.md
/insights command
Run /insights (or /insights --days 30) to see usage analytics for your sessions — turn counts, tool usage frequency, session lengths, and more. This helps you understand how you’re using the agent and identify patterns.
All memory data is stored locally in
~/.hermes/. Nothing is sent to external servers unless you explicitly enable Honcho, which uses the Honcho API. The HERMES_HOME environment variable lets you relocate the storage directory.