Practical overview
When it fits
Use Agent Memory when an agent needs cross-session recall and you want the underlying knowledge kept in ordinary Markdown files, with local ranked search and documented host setup.
Who it is for
- Developers configuring persistent memory for coding agents.
- Users who want memory files to remain inspectable and portable rather than locked in an opaque store.
- People running supported agent hosts that can use the command-line runtime.
Documented uses
- Keep useful knowledge available after an agent session ends.
- Find relevant memories locally and open only the needed file or level of detail.
- Share a memory store across Claude Code and Codex CLI.
- Manage accumulated memories through a separate consolidation process.
Requirements & limits
The repository is public and lists an MIT license. The runtime is described as requiring no API key; use requires a local command-line setup and Python 3.12 or later.
- Markdown files are the source of truth; the SQLite index is a rebuildable cache.
- Retrieval returns paths and ranked results rather than automatically pasting full memory text into the agent context.
- The README documents lifecycle-hook setup for Claude Code, Codex CLI and Muse Code.
- A full session trace is copied before distillation, and deletion during sleep-time management is presented as a proposal for confirmation.
- Core retrieval is local; the README describes an optional vector plugin fused with BM25 using RRF.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up Agent Memory for an agent host
Initialize the store and configure a supported host integration.
Before you start
- Python 3.12 or later.
- A command-line environment with Agent Memory installed.
- A supported host: Claude Code, Codex CLI or Muse Code.
Steps
Run
mem initto initialize the store; it defaults to~/agent-memory-store.If using a different store location, set
AGENT_MEMORY_STOREto its absolute path in the environment where the agents run.Run
mem setup --host claude-code,mem setup --host codex, ormem setup --host muse-codeas appropriate; Muse Code setup may include a provider option.Run the corresponding
mem doctor --host ...command to inspect host, configuration, store, hook and reasoner status.
Expected outcome
The host setup process installs lifecycle hooks and the skill, configures host settings and performs preflight; a successful setup reports `status: READY`.
Guide limitations
- Setup and doctor perform a minimal live reasoner request by default;
--no-liveperforms offline inspection but reportsFAILEDbecause readiness was not proven. - Codex user hooks remain subject to its trust prompt.
Record a memory and rebuild its index
Create a Markdown-backed memory, retrieve it, and rebuild the local index.
Before you start
- Agent Memory installed in a command-line environment.
- An initialized store.
Steps
Run
mem recordwith a type, field, abstract and body to add a memory.Run
mem --json recallwith a query to retrieve matching results.Remove the store's
.indexdirectory and runmem rebuildto recreate the index from the Markdown files.
Expected outcome
The memory is stored as a file and can be found through local retrieval; the index can be regenerated from the file-based store.
Guide limitations
- The repository’s example demonstrates one memory and one query; it does not establish retrieval quality for other stores or workloads.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 9 October 2026
- Original website title
- tigerless-labs/agent-memory · Official homepage title · retained in its source language

