I recently switched my daily AI agent from OpenClaw to Hermes Agent. After using it for a while, the difference is obvious, and it's not just about features. It's more about design philosophy.
Hermes is the first thing that made me feel an AI agent's "smarts" may not depend on how strong the underlying model is, but on how well its memory architecture is designed.
Hermes is clearly better than OpenClaw on several dimensions.
1. Fast replies. This isn't magic. Hermes's frozen snapshot mechanism keeps the system prompt unchanged for the whole session, which makes direct use of the LLM's prefix cache. Each round of inference doesn't have to reprocess a changing context prefix, and users can feel the time saved.
2. Clean permission boundaries. Which tools are available, which commands need approval, what a subagent's permissions cover: Hermes makes all of these explicit configuration instead of implicit default behavior. As someone who is fussy about security, that makes me much more comfortable using it.
3. Strong observability. Token usage per session, cost estimates, when compression kicks in, memory usage: all of this data is transparent. I know exactly what the agent is doing, how much it's spending, and whether its memory is almost full.
4. Simple multi-agent setup. With subagent delegation and isolated sessions, you can have several agents work on different tasks in parallel. The setup cost is much lower than OpenClaw's.
There are pitfalls, of course. The gateway sometimes drops the connection out of nowhere, and I have to restart the gateway process by hand. That kind of stability problem still hurts the day-to-day experience. I hope later versions fix it.
But what really made me think Hermes is worth studying in depth isn't these surface-level differences. It's the memory system.
Five layers of memory
Hermes's memory isn't a simple "the more you store, the better" system. It's designed as five layers, each solving a different problem.
Layer one: Memory Store. Two Markdown files: MEMORY.md holds the agent's understanding of the environment (2,200 characters), and USER.md holds the agent's understanding of you (1,375 characters). Under 4,000 characters combined.
That capacity limit is deliberate.
Layer two: Sessions Database. The full history of every session, stored in SQLite with an FTS5 full-text index. When you say "we talked about this before," the agent searches past sessions, pulls the relevant excerpts, and has an auxiliary model generate a summary. It's not a replay of the original text, it's "reconstructive recall."
Layer three: Context Compression. It triggers automatically when the conversation reaches 50% of the model's context window. It protects the first and last messages, compresses the middle, and clears out stale tool output.
Layer four: Skills (procedural memory). Skill files live on disk and load on demand. Every 15 tool calls, the agent runs a self-evaluation to decide whether the current experience is worth turning into a skill. Existing skills get patched and improved automatically as they're used.
Layer five: External Memory Providers. 8 optional external memory extensions, including Mem0 (vectors + knowledge graph), Honcho (dialectic user modeling), Letta/MemGPT (OS-level paging), and others.
These five layers aren't just piled on top of each other. They have a clear division of labor: core memory is small and precise, episodic memory is unlimited but retrieved on demand, procedural memory evolves on its own, and external extensions are pluggable.
Consolidating memory in "sleep"
The design in this memory system that impressed me most is the Frozen Snapshot Pattern.
The logic is simple: when a session starts, it reads MEMORY.md and USER.md from disk and injects them into the system prompt, and then the snapshot doesn't change for the rest of the session. If the agent learns something new during the conversation and writes it to disk, those updates only take effect in the next session.
Your first reaction might be: isn't that a bug? Why not update in real time?
But think it through, and it's exactly the right design.
First, there's the engineering reason: the LLM's prefix cache depends on a stable system prompt. If every memory update changed the system prompt, the cache would be invalidated and every round of inference would have to recompute the prefix, which hurts both speed and cost.
The deeper reason is cognitive consistency. If an agent keeps rewriting its own "worldview" within a single conversation, its behavior becomes unpredictable. The frozen snapshot guarantees the agent has a consistent cognitive foundation within a session.
This reminded me of how the human brain consolidates memory. Neuroscience research shows that long-term memory consolidation in humans happens mainly during sleep: events from the day are held temporarily by the hippocampus and only transferred to the cortex to form long-term memories during slow-wave sleep at night. We don't keep reorganizing our memories while awake. That would lead to distraction and cognitive confusion.
Hermes's frozen snapshot essentially simulates the same pattern: stay cognitively stable while online, and consolidate memory while offline (in the gaps between sessions).
The wisdom of limited capacity
MEMORY.md is capped at 2,200 characters, about 800 tokens. That number is unsettlingly small, given that today's models routinely support 200K context windows. But looking back, this constraint is exactly what makes Hermes distinctive. Compared with OpenClaw, which often burns tokens it doesn't need to, Hermes's "lean" and "restrained" approach turns out to be more efficient.
Human working memory is also astonishingly small. George Miller's classic 1956 paper proposed the "7±2" rule, and Nelson Cowan's 2001 research later revised it to about 4 chunks. Our brains didn't get dumber because of the small capacity. Quite the opposite: limited capacity forces the brain to "compress information and set priorities."
Hermes's character limit creates the same pressure. When memory is almost full, the agent has to make decisions: what can be merged? What's outdated and can be dropped? What should move from Memory into Skills?
That process is itself a kind of training in metacognition.
By contrast, the idea of "giving the agent unlimited memory" is actually the problematic one. Unlimited memory means never having to make eviction decisions, which also means the agent never learns what "really matters." The signal-to-noise ratio keeps getting worse over time.
Good memory isn't remembering everything. It's knowing what's worth remembering.
Procedural memory vs. declarative memory
Cognitive science divides human memory into declarative memory (knowing what) and procedural memory (knowing how). The two are stored in completely different parts of the brain: declarative memory depends on the hippocampus and temporal cortex, procedural memory on the basal ganglia and cerebellum.
Hermes's architecture maps onto this split perfectly:
- MEMORY.md + USER.md = semantic memory within declarative memory (environment facts, user preferences)
- Sessions Database = episodic memory within declarative memory (recollection of past experiences)
- Skills = procedural memory (how to do things)
Why does this split matter? Because it lets Skills grow without limit, independently of Memory. An agent's core memory can stay lean (under 4,000 characters), while its skill library can hold dozens or even hundreds of skill files. Skills load on demand and don't take up the context window when they're not in use.
This matches how human experts think: an experienced doctor doesn't have to keep every disease's diagnostic procedure in mind at all times, but when a specific case comes in, the relevant procedural knowledge activates automatically.
The self-improvement loop
Every 15 tool calls, Hermes triggers a Self-Evaluation Checkpoint. The agent pauses its current task and asks itself four questions:
- What did I accomplish in these 15 steps?
- Which approaches worked, and which failed?
- Is there a reusable workflow worth turning into a skill?
- Are there environment facts or user preferences that should be written to memory?
This mechanism corresponds directly to metacognition in cognitive science, the monitoring and regulation of one's own thinking. Research shows that metacognitive ability is one of the key factors that separate novices from experts. Experts don't just "know more," they're better at reflecting on their own decision process.
Feedback from community users backs this up: after a month with Hermes, the same task went from 25 tool calls down to 8-10. That's not the model getting stronger. It's accumulated skills cutting out repeated exploration.
I haven't experienced this self-improvement loop deeply myself yet. I haven't used it long enough, and I haven't built up many skills. But looking at the mechanism design, it's a flywheel pointed in the right direction: use → reflect → capture → faster next time → more use.
My take
After digging into Hermes's memory architecture, I came away with a few new beliefs about AI agent products.
Memory architecture matters more than model capability. The same underlying model, paired with a good memory system, can perform qualitatively differently. Hermes supports seamless switching between 200+ models, but whichever model you use, the value of the memory architecture is still there.
Memory updates should be asynchronous. Syncing memory in real time looks "advanced," but in practice it makes the agent contradict itself within a single conversation. The frozen snapshot is the better pattern. Just as sleep matters to people, AI needs time for Dreaming too.
Limited capacity is a feature, not a limitation. Giving an agent unlimited memory isn't good design. Constrained memory forces the agent to learn prioritization and information compression, and that's a higher form of intelligence.
Procedural knowledge and factual knowledge have to be kept apart. The former can grow without limit and load on demand. The latter has to stay lean and always online. Managing them together is doomed to fail.
In the end, competition among AI agents won't be about whose model has more parameters. It'll be about whose cognitive architecture fits the nature of intelligence better. Hermes has gone further in that direction than most of its competitors.
References
- NousResearch/hermes-agent, GitHub repository: github.com/NousResearch/hermes-agent
- Hermes Agent official docs, Memory: hermes-agent.nousresearch.com/docs/user-guide/features/memory
- Marco Rodrigues, "How The Hermes Agent Memory Really Works" (2026.4.15): blog.dadhalfdev.com/p/how-the-hermes-agent-memory-really
- DeepWiki, NousResearch/hermes-agent Memory and Sessions: deepwiki.com/NousResearch/hermes-agent/4.3-memory-and-sessions
- Packer et al., "MemGPT: Towards LLMs as Operating Systems" (2023, UC Berkeley): arxiv.org/abs/2310.08560
- Honcho by Plastic Labs, Dialectic User Modeling: honcho.dev
- Miller, G.A., "The Magical Number Seven, Plus or Minus Two" (1956), Psychological Review
- Cowan, N., "The Magical Number 4 in Short-Term Memory" (2001), Behavioral and Brain Sciences
- Hermes Agent, Self-Improving AI Guide: hermes-agent.ai/blog/self-improving-ai-guide
- OpenClaw official docs: docs.openclaw.ai