Your Agents Can Remember: ClawMem Now Supports Claude Code, Codex, and Hermes

Hazel
Hazel

TL;DR: ClawMem adds a persistent memory layer for Claude Code, Codex, and Hermes. Switch between agents without losing context. Your team can share knowledge even when everyone uses different agents. Step-by-step installation guides for each platform are included below.


Most developers aren’t using just one AI agent anymore. You might use Claude Code for active development, Codex for automation scripts, and Hermes for longer workflows. Each tool has its strengths. But there’s a problem: every time you switch agents, your context disappears. Whatever your agent learned in the last session is gone. You re-explain the same constraints, the same decisions, the same things that already didn’t work.

ClawMem already powers memory for OpenClaw. Today, we’re extending that to Claude Code, Codex, and Hermes. All four agents can now share the same memory layer. Knowledge you build in one agent is available in all the others.

And if you are working in a team, this matters even more. Your teammates might prefer different agents. With ClawMem, you can all tap into the same knowledge base. No more siloed context.

Why Memory Still Matters

As you get more comfortable with agents and start using more of them, the memory problem compounds. It’s not just about one agent remembering your preferences anymore. It’s about your entire workflow retaining context across tools, sessions, and team members.

Think about what happens on a team today:

This isn’t a failure of the agents. It’s a gap in the infrastructure: context gets trapped inside separate tools.

At team scale, every person ends up explaining the same project to a different agent. The knowledge exists, but it is fragmented across tools instead of compounding for the team. ClawMem fixes both problems at once.

How Each Agent Handles Memory (and Where ClawMem Fits In)

Each of these agents has thought about memory. They just approach it differently.

Claude Code: CLAUDE.md + Auto Memory

Claude Code gives you two mechanisms. CLAUDE.md is for persistent project instructions you write yourself. Auto Memory lets Claude jot down notes during sessions that get reloaded next time.

This works well for a lot of cases. But there are limits:

ClawMem sits alongside this. It gives you semantic retrieval (find memories by meaning, not just keywords), structured labels (filter by project, domain, or type), and team visibility (your team can browse and edit the shared knowledge base). You can use both CLAUDE.md for static project rules and ClawMem for evolving, searchable memory.

Codex: Memories (Opt-In)

Codex has a Memories feature you can enable in settings. It extracts context from past sessions and reloads it automatically. There’s also Chronicle, an experimental feature that uses screen context to build memory (macOS only, opt-in).

The catch:

ClawMem gives Codex users a memory layer that works the same way across all agents. Sessions are mirrored and archived. Memories are semantic and labeled. And if your team uses multiple agents, everyone can access the same knowledge base.

Hermes: Memory Provider Architecture

Hermes has the most flexible memory architecture of the three. It supports external memory providers out of the box, which is why building the ClawMem integration for Hermes was straightforward.

Hermes does have built-in memory files (MEMORY.md, USER.md), but they’re limited in size—around 2,200 and 1,375 characters respectively. For ongoing projects, that ceiling comes up fast. Once you hit it, older entries get compressed or dropped.

ClawMem plugs in as an external memory provider for Hermes. You get unlimited memory capacity, semantic retrieval, and the same cross-agent access as everyone else on your team.

What ClawMem Adds

Here’s what you get when you add ClawMem to your agent workflow:

Setup

Getting started takes a few minutes per agent. No API key or signup required—the plugins auto-register your agent identity on first use.

For team setups: after installing, create a shared memory repo and grant your teammates access. Everyone installs the plugin for their preferred agent, points to the same repo, and you are done.

Hermes

Requirements: Hermes installed (hermes version returns a version string), network access.

Terminal window
curl -fsSL https://raw.githubusercontent.com/clawmem-ai/clawmem-hermes-plugin/main/install.sh | bash

The script handles plugin installation, agent identity registration, config, and memory provider activation. Open a new Hermes session and ClawMem is running.

Verify:

Terminal window
hermes memory status

ClawMem should appear in the active provider list.

Upgrade: hermes plugins update clawmem (existing config and memory data are not affected).

Claude Code

Requirements: Claude Code installed, network access.

Terminal window
claude plugin marketplace add https://github.com/clawmem-ai/clawmem-claude-code-plugin
claude plugin install clawmem-claude-code-plugin@clawmem

Start Claude as normal. On first run the plugin bootstraps automatically, registers an agent identity, and saves routing config. Relevant memories are injected before each prompt. Sessions are archived on exit.

Verify: Ask Claude to call memory_recall and confirm it returns results.

Upgrade:

Terminal window
claude plugin marketplace update clawmem
claude plugin update clawmem-claude-code-plugin@clawmem

Codex

Requirements: Codex installed, Node.js installed, network access.

Step 1. Clone the plugin alongside ~/.agents/, not inside it. Placing it inside causes a plugin/read failed error in the Plugins UI.

Terminal window
git clone https://github.com/clawmem-ai/clawmem-codex-plugin ~/clawmem-codex-plugin

Step 2. Register it in ~/.agents/plugins/marketplace.json:

{
"name": "clawmem-ai",
"interface": { "displayName": "ClawMem" },
"plugins": [
{
"name": "clawmem",
"source": { "source": "local", "path": "./clawmem-codex-plugin" },
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
"category": "Productivity"
}
]
}

Directory structure:

~/.agents/plugins/marketplace.json ← manifest
~/clawmem-codex-plugin/ ← plugin (sibling of .agents)

Step 3. Restart Codex, open the Plugins UI, find ClawMem under the clawmem-ai marketplace, and install.

Step 4 (optional). Enable hooks for automatic recall and session mirroring. Add to ~/.codex/config.toml:

[features]
codex_hooks = true

Copy the hooks config:

Terminal window
export CLAWMEM_CODEX_PLUGIN_ROOT=~/clawmem-codex-plugin
cp "$CLAWMEM_CODEX_PLUGIN_ROOT/hooks/hooks.json" ~/.codex/hooks.json

Add the export to .zshrc or .bashrc. If ~/.codex/hooks.json already exists, merge the hooks.* arrays manually.

Verify: Check ~/.local/state/clawmem/debug/events.jsonl for recall_complete or mirror_complete entries.

The Knowledge Base That Compounds

Agents change. Models improve. The work stays continuous.

Most developers think they need a longer context window. What actually makes the difference is a knowledge base that accumulates across sessions and agents—one where every decision, every constraint, every lesson learned gets added to a shared foundation instead of disappearing when a session closes.

The stronger your agents get, the more a well-maintained shared knowledge base amplifies what they can do.


Get started at clawmem.ai

Have questions or feedback? Join our Discord community and chat with us there.