Harness-mem
Local project memory for AI coding sessions — a continuity runtime for Claude Code, Codex, Cursor, and Hermes.
Harness-mem keeps one local SQLite memory per project, so the next agent opens on the thread you were already working on instead of a blank slate. Claude Code and Codex get first-turn continuity; Cursor and Hermes can join the same memory lane through MCP and MemoryProvider integrations. ~5ms MCP cold start. Local-first by default.
English | 日本語
Table of Contents
What changes
30-second version
Harness-mem gives your AI coding tools the same local project memory. Claude Code and Codex get the strongest continuity path: a fresh session can start from the chain you were already working on. Cursor can join through user-scoped hooks and MCP search. Hermes can join through MCP tools and an optional MemoryProvider plugin, so the command tower can see the same developer-workflow memory without replacing its own built-in memories.
Why people install it
- Resume the actual thread: the next Claude Code or Codex turn can start from the current project chain, not a generic memory dump.
- Share one memory lane across agents: Claude Code, Codex, Cursor, OpenCode, and Hermes can read the same project-scoped observations through one daemon.
- Keep memory local: project data stays in local SQLite unless you explicitly configure an external integration.
- Use local LLMs safely: fact extraction defaults to
heuristic; when you opt into LLM extraction, Ollama is loopback-only by default and cloud providers require an explicit allow flag plus credentials.
- Stay honest about scope: Claude Code + Codex are Tier 1; Cursor is Tier 2; Hermes and OpenCode are experimental / opt-in paths.
3-minute setup path
Run the same command on every supported shell. No client names or flags need editing.
npx -y --package @chachamaru127/harness-mem harness-mem setup
- Choose a language. Setup checks for client commands and configuration paths without launching apps.
- Select clients by number. Enter accepts detected Codex, Claude Code and Cursor candidates. With no detected candidates, choose explicitly.
- Choose optional migration and automatic updates, then review the install plan. Type
y at the final confirmation to configure and install.
- Check the setup result, start a fresh conversation in a selected client, and verify that a saved marker can be found in the same project.
Run this in an interactive terminal. Non-interactive setup requires an explicit --platform; an implicit all is no longer applied.