Skip to main content

Membrick: evidence-aware memory for AI agents

Latest GitHub release PyPI version Monthly PyPI downloads Apache-2.0 license

Documentation · Quickstart · Agent integrations · Benchmarks · Discussions

  • MCP Registry name: mcp-name: io.github.RooAGI/membrick

Membrick: persistent memory for AI coding agents

One memory for every agent. 75% fewer tokens.

8 agent harnesses. 1 shared project memory. No embedding, database, or server setup.

Membrick is open-source, local-first AI agent memory for Claude Code, Codex, Gemini CLI, Antigravity, Muse Code, OpenClaw, Hermes, and RooAGI AgentFlow. It remembers your project's decisions, sessions, docs, and code across sessions, and gives your agent the current answer instead of a stale one. One memory, shared by every agent, stored locally in your project. No hosted cloud, no data leaves your machine.

The problem: your project changes its mind

Monday's doc says gateway timeout retries are 5. Friday's says 2. Both are still in the repo, and a normal search returns either one and leaves the model to guess.

Membrick keeps 2 as the current answer and 5 as history. That is the whole point: memory that knows what is still true.

It works anywhere project truth changes over time: architecture decisions, API contracts, config values, runbooks, ownership, terminology, plans.

What it does

  • Remembers sessions, decisions, docs, and code across sessions
  • Ranks current evidence ahead of superseded guidance, with sources
  • Answers "is this still true?" instead of just "is this similar?"
  • Catches contradictions, stale claims, terminology drift, and orphan pages
  • Stays local and inspectable: a dashboard shows what is in memory

Quickstart

cargo install --git https://github.com/RooAGI/Membrick
membrick install claude /path/to/project
membrick query "what is the current retry policy?" /path/to/project

See the CLI reference and full quickstart for Docker, HTTP, Python, Rust, and MCP setup.

Agent integrations

Integration Project memory Lifecycle capture MCP tools Replay
Claude Code Yes Yes Yes Yes
Codex Yes Yes Yes Yes
Gemini CLI Yes Yes Yes —
Antigravity CLI / AGY Yes Yes Yes —
Muse Code Yes Yes Yes —

Plus OpenClaw, Hermes, and RooAGI AgentFlow: all eight share the same .membrick/memory/ store, so a decision recorded by one agent is visible to the others.

Lifecycle capture saves every transcript message into searchable turn documents (Claude Code and Codex; other agents save what their payloads provide), plus the session summary. Capture is verbatim: no observer LLM compresses your sessions. record_session is separate, an opt-in replay log.

membrick install also installs 20 skills (.claude/skills/, .agents/skills/), including membrick-search and membrick-memory, which enforces MCP-first search. They wrap the MCP tools; they do not learn new skills on their own. The learning signal that exists is the search-feedback loop, reviewed in the dashboard.

All agents share one project store: /path/to/project/.membrick/memory/. Legacy per-provider stores are migrated on first run.

Dashboard

The local server serves a read-only dashboard at /dashboard. Find its URL in .membrick/server.toml (dashboard_url). Four views: Overview, Index, Providers, Search reviews. Data refreshes every five seconds.

Membrick dashboard overview

See observability.

Benchmarks

LongMemEval-S, 500 questions, 2026-10-16, heuristic backend, no embeddings: any-hit Recall@5 / @10 / @20 96.6% / 98.8% / 100.0%, MRR 88.85%, NDCG@10 87.91%, mean search 3.48 ms. Details

LoCoMo agentic evaluation, 1,540 questions, reader and judge both Muse, up to 5 search rounds: 78.5% overall (single-hop 86.4%, multi-hop 60.6%, temporal 80.7%, open-domain 54.2%). Not directly comparable to Letta's 74.0% or Mem0's 92.5%, which use different readers, judges, and protocols. BEAM has not been run. Details

Retrieval cost, same 1,540 questions, k=3: about 1,196 tokens per search (chars/4 estimate; median 1,198, p95 1,647), about 6,948 per question at ~5.8 searches each. Mem0 reports ~6,956 tokens per query on LoCoMo, so per search we run ~6x lighter; per question it comes out about even.

Token savings, same routing-decision-supersession scenario, diagnostics not guarantees: Claude, 3 runs per setup, fresh input tokens 128 → 32 (-75.0%), overall tokens 2,884,478 → 605,686 (-79.0%), tool calls 65 → 14, recall 9/9. Codex, 1 run per setup, overall tokens 313,066 → 196,102 (-37.4%), tool calls 7 → 4, recall 3/3. No single token-savings headline: the figures differ by provider and run count. Claude · Codex

How it works

Sessions, docs, code, and traces go in. Facts, entities, symbols, and time come out. Links, ownership, and supersession connect them. Search returns ranked, sourced, current context.

Search is keyword-based plus entity and graph signals. No embeddings, no vector database, no neural reranker. Follow-up questions inside a session get reranked by default. Chunking is heading / line based, with a symbol index; not AST-aware. Details

Use it from your stack

# CLI
membrick query "what is the current retry policy?" /path/to/repo

# Docker / HTTP (team server: self-hosted, token or JWT auth)
export SERVER_TOKEN=local-dev-token
docker compose up --build -d
curl http://127.0.0.1:8080/health
import membrick
memory = membrick.Memory(path=".")  # this project's resident
memory.add([{"role": "user", "content": "Docker runs on Ubuntu hosts"}], user_id="user-1")
print(memory.search("docker ubuntu", user_id="user-1", top_k=5))
# Remote server: membrick.Memory(base_url="http://127.0.0.1:8080", api_key="local-token")
use membrick::{MemoryService, PipelineOptions};
let mut memory = MemoryService::in_memory(PipelineOptions::default());
// upsert documents, refresh, search_with_filters — see docs/memory-service-api.md

See the HTTP server guide and full quickstart.

Project status

Current release: v0.10.1, published on crates.io, npm, and PyPI. Apache-2.0.

Membrick is under active development. The release query path uses the heuristic backend; experimental model-backed query semantics stay separate.

License

Apache-2.0

Metadata

Release files for membrick 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for membrick 0.10.2
File Size Uploaded Provenance Actions
membrick-0.10.2.tar.gz 4.2 MB With provenance Details for membrick-0.10.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for membrick 0.10.2
File Actions
membrick-0.10.2-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for membrick-0.10.2-cp38-abi3-win_amd64.whl
membrick-0.10.2-cp38-abi3-manylinux_2_39_x86_64.whl CPython 3.8 abi3 Linux glibc 2.39+ x86-64 Details for membrick-0.10.2-cp38-abi3-manylinux_2_39_x86_64.whl
membrick-0.10.2-cp38-abi3-manylinux_2_39_aarch64.whl CPython 3.8 abi3 Linux glibc 2.39+ ARM64 Details for membrick-0.10.2-cp38-abi3-manylinux_2_39_aarch64.whl
membrick-0.10.2-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for membrick-0.10.2-cp38-abi3-macosx_11_0_arm64.whl
membrick-0.10.2-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details for membrick-0.10.2-cp38-abi3-macosx_10_12_x86_64.whl

Total release size: 100.8 MB

Release files / membrick-0.10.2.tar.gz

Download URL membrick-0.10.2.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a82bd6e28ccc2b6fe878b6a8398c225ec2516bd234783333f37259bc6b4cde9e
BLAKE2b-256 checksum
How to use checksums
fcbd4515d649221128d71ebdbb3658b7c2327860ee55597b3cafed6eb92cb319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / membrick-0.10.2-cp38-abi3-win_amd64.whl

Download URL membrick-0.10.2-cp38-abi3-win_amd64.whl
Size 18.2 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cf03bd16681c1f085edc555d9ba27cd9ceeedfb825e495384c43792acf10eaf2
BLAKE2b-256 checksum
How to use checksums
eca8d5684f8d40c7d5064e5c4ff121b7fd0116b5519653feebb8837792d4a114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / membrick-0.10.2-cp38-abi3-manylinux_2_39_x86_64.whl

Download URL membrick-0.10.2-cp38-abi3-manylinux_2_39_x86_64.whl
Size 20.3 MB
Tags CPython 3.8 Linux glibc 2.39+ x86-64 abi3
SHA-256 checksum
How to use checksums
5827ac3f452d8594ca2fc660bc3eaa202bdcc1f498cf1c08986fb988d95cfc3f
BLAKE2b-256 checksum
How to use checksums
b2fdb8d3f5ee0cabe70f7a17944c7bac905010cd3952e1a7523071821b8ad0fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / membrick-0.10.2-cp38-abi3-manylinux_2_39_aarch64.whl

Download URL membrick-0.10.2-cp38-abi3-manylinux_2_39_aarch64.whl
Size 20.0 MB
Tags CPython 3.8 Linux glibc 2.39+ ARM64 abi3
SHA-256 checksum
How to use checksums
049a16deedefa5b2dbf92a5e16d461ddbe1059612fe7e975b8797a2392130857
BLAKE2b-256 checksum
How to use checksums
d9cdbfab0a898ef03ad399188ecc94cbed31f414760aaced8e170b3fec759ed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / membrick-0.10.2-cp38-abi3-macosx_11_0_arm64.whl

Download URL membrick-0.10.2-cp38-abi3-macosx_11_0_arm64.whl
Size 18.5 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5baa94169465077b3a8b956319cecd2c324b64ba315d2731301595f30972a454
BLAKE2b-256 checksum
How to use checksums
562c6db8f1eb191e69462d3375195c53d5099ecdb4025c8a220b55044427b7e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / membrick-0.10.2-cp38-abi3-macosx_10_12_x86_64.whl

Download URL membrick-0.10.2-cp38-abi3-macosx_10_12_x86_64.whl
Size 19.5 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d0c2211d705028e8f140395b81b28d2b2cc09f2f20bd9d23cc913edf86c06360
BLAKE2b-256 checksum
How to use checksums
546f7529332f82156fd6eb92475f1a06deef2033df5a0f24c5b0dd8fab36514b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for membrick 0.10.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for membrick-0.10.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page