agent-memory

Long-term memory runtime for AI agents: Markdown files as the source of truth, local ranked retrieval, and an independent sleep-time Manage layer — no API key required.

Stars
★ 4.3k
Last updated
11d ago
FARS reviewed
Nov 04, 2026
License
MIT
Primary language
Python

At a glance

Works with
Universal · cross-platformCodex · Claude Code
You'll need
Python 3.12+uvpproxy (Muse Code only)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
Developers who use Claude Code or Codex CLI daily and want architectural decisions and project conventions to persist across sessions without re-explaining them.
Main limitation
Not on PyPI yet: you clone the source and run uv sync --all-packages, which also pins you to Python 3.12+ and uv.
Maintenance
Commits in the last 30 dayslast commit 2026-11-12
Source review
60/100 · Some gaps

What does this agent do, and when should you use it?

agent-memory gives an agent memory that survives the end of a session. Markdown files in one store are the single source of truth, the SQLite index beside them is a cache you can delete at any time, and Claude Code, Codex CLI, Muse Code and anything else that can run a shell command share that store. Recall is local and ranked, and it answers with paths instead of pasted text so the agent opens each hit only as deep as the task needs. Writes fire at conversation boundaries and run as durable, retryable jobs rather than depending on the agent remembering to save anything. A separate sleep-time Manage layer consolidates and forgets on its own clock, with authority tiers: unattended passes may add and update, deletion only arrives as a proposal you confirm. The library ships no LLM client, so there are zero keys to install and every write stays visible in the host transcript.

Installation builds three entry points into .venv/bin: the mem CLI, the mem-mcp stdio MCP server, and mem-hook lifecycle hooks. mem init creates the store (default ~/agent-memory-store, overridable with AGENT_MEMORY_STORE) containing MEMORY.md (the only resident injection, one line per memory), config.toml, schemas/ (one file per memory type with its key fields and grouping), memories at <type>/<group>/<name>.md, archive/ for provenance and full session copies, dream-reports/, a rebuildable .index/, and runtime .state/. On the write side, SessionStart, Stop, SessionEnd and PreCompact hooks enqueue a distillation job; a worker runs the configured reasoner (host CLI or endpoint) over a three-tool MCP surface — recall, read, submit_operations — and failed or dead jobs are retried from the queue with JSONL traces under the job's state directory. On the read side, BM25 over an FTS5 index (optionally fused with a FastEmbed vector index via RRF) drives mem recall, which returns an L0 list of abstract, path, anchor and score; mem read --level abstract|outline|full, mem context, mem trace --pointer and mem recall --as-of <date> expand it rung by rung down to cited raw messages. On the manage side, mem sleep runs the T0/T1 pipeline, writes a Dream report and decision ledger, and files proposals that mem proposals and mem decide handle. mem setup --host … and mem doctor --host … probe the host, merge settings safely, install hooks and the skill, and only report status: READY after a live preflight.

  1. Developers who use Claude Code or Codex CLI daily and want architectural decisions and project conventions to persist across sessions without re-explaining them.
  2. Teams that alternate between Claude Code, Codex and Muse Code in the same day and need one memory store that what one host writes another host can find.
  3. Engineers with data-locality constraints who want memory as plain files they can inspect, grep and version, with an index they can throw away.
  4. Anyone wiring memory into scripts or pipelines, consuming results through mem --json recall or the mem-mcp tools such as memory_recall.
  5. Chinese-speaking teams whose queries must match Chinese memory bodies, using tokenizer = "cjk" with an optional Chinese vector model.
  6. Researchers studying write strategies, reusing the bundled LongMemEval runner and the mem-exp interop cross-host matrix.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Config files
config.toml
Runtime
Python 3.12

How do you install or deploy this agent?

Requirements are Python 3.12 or higher and uv. There is no PyPI release yet, so install from a checkout.

git clone https://github.com/tigerless-labs/agent-memory.git
cd agent-memory
uv sync --all-packages

That builds mem, mem-mcp and mem-hook into .venv/bin. Inside the checkout use uv run mem, or put the directory on PATH:

export PATH="$PWD/.venv/bin:$PATH"

Initialize the store:

mem init

The store defaults to ~/agent-memory-store. To use another location, export AGENT_MEMORY_STORE everywhere your agents run, not just in one shell:

export AGENT_MEMORY_STORE=/absolute/path/to/store

How do you use this agent?

Write one memory, find it again, then delete the index and prove nothing was lost:

mem record --type decision --field project=agent-memory \
  --abstract "Markdown files are the single source of truth" \
  --body "Indexes are rebuildable caches."
mem --json recall "source of truth"
rm -rf ~/agent-memory-store/.index && mem rebuild

Wire it into a host — setup probes, initializes the store, merges settings, installs hooks and the skill, then runs preflight:

mem setup --host claude-code
mem setup --host codex
mem setup --host muse-code --provider openrouter --mcp
mem doctor --host codex

Read at the depth the task needs, then let it consolidate:

mem recall "why files instead of a database" --limit 20
mem read <name> --level outline
mem context "why files instead of a database"
mem trace <name> --pointer 'sessions/<session>#<start>-<end>'
mem sleep --if-due
mem proposals
mem decide <id> --accept

Optional: enable CJK tokenization and vector recall in the store's config.toml.

[index]
tokenizer = "cjk"
vector_enabled = true
vector_model = "BAAI/bge-small-zh-v1.5"

Optional: also install the stdio MCP server, exposing memory_recall, memory_read, memory_trace, memory_record, memory_correct, memory_supersede, memory_merge, memory_delete and memory_feedback.

mem setup --host claude-code --mcp

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Plain Markdown is the truth and every index is a rebuildable cache: rm -rf .index/ && mem rebuild loses zero knowledge, enforced by a test, and memory stays greppable, git-able and portable off the system.
  • The read path calls no model and crosses no network: BM25 over FTS5 is the baseline, an optional vector index is fused by RRF, and on the fixed 120-query acceptance set Recall@5 went from 79.0% to 86.6% while median latency went from 5.1ms to 139.2ms.
  • Write coverage is the system's job: boundary hooks enqueue durable jobs, the full trace is archived first, and leases, backoff, retries and JSONL traces make a failed distillation recoverable.
  • A real Manage layer on its own clock, separate from the write path: unattended passes may only add and update, deletion arrives as a confirmed proposal, and recall --as-of answers as of a date.
  • One store shared across hosts — README reports all 9 ordered writer/reader pairs across Claude Code, Codex CLI and Hermes passing, with pooled net contribution over no memory of 2/36 → 13/36 (p=0.0074).
  • No LLM client inside the library: zero keys to install, no billing surface, and writes stay visible in the host's own transcript.
Limitations
  • Not on PyPI yet: you clone the source and run uv sync --all-packages, which also pins you to Python 3.12+ and uv.
  • Write and manage paths borrow reasoning from an external host CLI; without Claude Code, Codex, Hermes or Muse Code installed, there is no write path.
  • Vector recall is off by default, needs agent-memory-core[vector] plus a model download, and multiplies retrieval latency; README states the answer-level experiments do not establish an end-to-end accuracy improvement.
  • MCP is not the full surface: context, sleep and the proposal ledger have no MCP tool and remain CLI-only.
  • Host-side constraints are real: Codex needs the store covered by sandbox_workspace_write.writable_roots or launched with --add-dir, and under Muse's default sandbox mem record from its shell cannot write an external store; Muse 1.4.3 lacks the toolset selection native Write needs.
  • It is version 0.1.0 with a large configuration surface across [executor], [executor.write], [executor.manage], [manage], [index] and [write.jobs], and several paths (Native Manage, contributor-tier Hermes models) are explicitly experimental.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
agent-memory This agent 60 · Some gaps — ★ 4.3k 11d ago Python Codex · Claude Code
LycheeMemory 52 · Major gaps CLIFree + model costs ★ 1.1k 4mo ago Python Claude Code · OpenAI API
Remnic Agent Memory 73 · Some gaps CLIFree + model costs ★ 235 today TypeScript ChatGPT · Codex · Claude Code · OpenAI API
Emulo 76 · Good Agent plugin / skillFree + model costs ★ 306 1mo ago HTML Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
60/ 100 5-point scale 3.0 / 5
Trust 17/29
Reliability 8/14
Adaptability 12/18
Convention 10/18
Effectiveness 9/13
Verifiability 4/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

README states deletion only arrives as a user-confirmed proposal, auto-dream can be rolled back via manage.auto_dream=false, and indexes are rebuildable without knowledge loss; Hermes contributor-tier data use requires explicit host_allow_data_training=true, native Manage tools are bounded to list_proposals/read_evidence/submit_verdicts, and red-team tests cover injection and path traversal. Deductions: dependency security shows only loose version constraints in pyproject and a uv workspace with no lockfile or audit evidence; source attribution rests on README self-description with no independently checkable provenance chain.

Reliability8 / 14 · 2.9/5

README gives concrete failure layering (host/config/Store/hook/reasoner), doctor diagnostics, no transport fallback on failure, and backlog retention for retry; CI runs ruff, mypy, and pytest on ubuntu/windows with an 85% coverage gate. Deductions: no PyPI release, install requires a source checkout, and dependency availability depends on uv plus local workspace packages with no pinned-version evidence.

Adaptability12 / 18 · 3.3/5

Targets multiple hosts (Claude Code, Codex CLI, Muse Code, Hermes) with both CLI and MCP surfaces; capability boundaries (MCP lacks context/sleep/proposal ledger) and trigger points (SessionStart/Stop/SessionEnd/PreCompact) are documented, and environment fit covers WSL, Windows symlinks, and Codex sandbox writable roots. Deduction: several advanced paths (native Manage, Muse 1.4.4+) are marked experimental with uneven maturity.

Convention10 / 18 · 2.8/5

README is well structured with install, quick start, host wiring, config examples, and known limitations (absolute scores not comparable, bounded haystack, raw-session evidence boundary); LICENSE is MIT and matches the pyproject declaration. Deductions: version is only a 0.1.0 badge with no CHANGELOG; naming stability is at risk given early version and experimental switches; maintenance responsibility points only to Tigerless Labs and Issues, and publisher identity is unverified by the FollowAgents registry, which is unknown rather than suspicious.

Effectiveness9 / 13 · 3.5/5

Output returns path, abstract, anchor, and score with tiered reads, avoiding pasted text and controlling context cost; the bounded LongMemEval-S study reports comparisons against MemCore and a no-memory baseline with paired tests. Deduction: the experiment uses a self-defined protocol with a bounded haystack, so external transferability of marginal value is unverified.

Verifiability4 / 8 · 2.5/5

README points the protocol, ledger, and raw run records to docs/experiments.md and experiments/, and separates fact from inference (e.g., stating the system-to-system comparison licenses no attribution to either half). Deduction: those files are not included in this evidence set, so claim_traceability and cross_source_corroboration rest on README self-description and cannot be cross-checked.

Risks and how to mitigate them
  • Publisher identity is unverified by the FollowAgents registry and should be independently confirmed, along with the update path, before adoption.
  • Dependency constraints are loose and no lockfile is shown; pin versions and audit dependencies before production use.
  • Native Manage and Muse native mode are marked experimental and behavior may change across versions.
  • The docs/experiments.md and experiments/ referenced by README are not included in this evidence set, so experimental claims cannot be cross-checked.
  • Enabling the Hermes contributor model permits data use for training and requires explicit consent; use a non-contributor model for sensitive sessions.
Evidence confidence: Low Reviewed Nov 04, 2026 Reviewed revision 12824950a631
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/agent-memory.svg)](https://followagents.com/en/agents/agent-memory)
<a href="https://followagents.com/en/agents/agent-memory"><img src="https://followagents.com/badge/agent-memory.svg" alt="FARS review"></a>

FAQ

Is agent-memory open source?
Yes. The source code is on GitHub (tigerless-labs/agent-memory) under the MIT licence.
Is agent-memory safe to use?
FollowAgents' FARS review (Nov 04, 2026) scored agent-memory 17/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is agent-memory still maintained?
Yes. The latest commit on GitHub is from 2026-11-12, within the last 30 days.
Who makes agent-memory?
agent-memory is published on GitHub by the account tigerless-labs. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts