# recall · one memory for all your coding agents

recall reads the chats Claude Code, Codex, Cursor and other coding agents keep on your machine. Connected agents get search across them all, and notes that update overnight. Runs locally, with no model calls to index or search.

- Version 0.6.3: [what changed](https://rererecall.com/changelog/0.6.3/)
- Source: [github.com/alirng/recall](https://github.com/alirng/recall), MIT licence
- Package: [recall-agents](https://pypi.org/project/recall-agents/) on PyPI
- Works with Claude Code, Codex and Cursor, and 36 more coding agents: [the list](https://rererecall.com/agents/)
- The Mac app: [Recall](https://rererecall.com/desktop/)
- Side by side with Mem0, Zep, Supermemory and others: [recall, compared](https://rererecall.com/compare/)

## Overview

Coding agents forget everything between sessions, and none of them knows what you told the others.

recall gives your agents two things:

- **Search across every chat.** Any agent connected to recall can find a conversation, whichever tool it happened in.
- **Memory.** A few markdown notes, rewritten each night. Claude Code and Codex load them when a session starts; other connected agents look them up.

It runs locally. Search needs no model at all, and you choose the model that writes the notes.

## What it reads

recall doesn’t capture anything new. It reads the histories Claude Code, Codex, Cursor and most of the [other agents it works with](https://rererecall.com/agents/) already keep on disk, read-only: each chat is split into your turns and the agent’s, tool output and injected text are dropped (Figure 2), and secrets are redacted before anything is stored.

Clones and worktrees of one repo count as one project, keyed on its git remote.

## Search

Search is a full-text index on your machine, like the index at the back of a book: every chat with a message that matches a query word is a candidate (Figure 3). No language model is involved, so on my ~2,800 chats a query takes about **11 ms**, or 47 ms with the optional embedding model, embedding the query included (0.4.1, the median of 50 searches, run twice, on a laptop). Since 0.5.0, every agent’s recall server shares one copy of the vectors: five servers after two searches each take 428 MB, where they took 830 MB.

recall then ranks those matches five ways and fuses the rankings:

- **Best** · its best-matching message
- **Sum** · its best few messages, scored together
- **Title** · the title an agent gave it, which counts double for a short query and fades for a long one, such as a pasted issue
- **All** · one message holding every query word
- **Dense** · closest in meaning, when an embedding model is on

## Memory, overnight

Once a night, recall turns new chats into notes (Figure 4). Each run is one git commit, so you can see what changed and undo it. On a laptop running on battery, it waits and runs once you’re back on power.

1. **Digest.** Keep your words, plus the start and end of each agent reply.
2. **Extract.** A model reads each chat on its own and proposes preferences, facts, decisions, lessons and open threads, each with a quote from the chat. It decides first whether each one outlasts the task at hand.
3. **Consolidate.** Fold them into each project’s notes: create, update, supersede or discard.
4. **Commit.** Rebuild the indexes and commit.

Notes are plain markdown. Edit or delete one and the next run keeps your change.

Since 0.5.0, memory that loads by itself never tells an agent to act. A rule with a link, a command to run, a check switched off or data to send somewhere stays out of session start, though search still finds it; a prohibition such as “never force-push main” still loads.

## The ledger

recall keeps a local log of the memory it hands your agents. When a session starts, it records the agent’s session id and the notes and rules that session loaded, each rule with its version. When a note reaches an agent mid-session, because a prompt, a file it opened or a failed command matched it, the log records the rules that note carried. Calls to recall’s tools are logged with the agent’s session id too, where the agent exposes one, as Claude Code and Codex do.

`recall ledger` lays that log beside your chat index and looks at what each session did next: a tool failure within 15 minutes, a commit linked to the session within a day, a commit to the file that set off the note, or you correcting the agent within half an hour. It counts those for each note and for each way memory arrives.

The point is to see which memories get used and which just ride along. It only reads, and nothing an agent sees changes. There’s no comparison group, so the counts rank notes against each other; they don’t prove a note helped.

## Projects

A project is rarely one folder. It’s a repo cloned twice, a few worktrees, the path it had before you moved it, and chats with no folder at all.

recall follows all of them as one project (Figure 5), so an agent that starts in any of them gets the same notes. It also flags rules one agent reads and another never sees, like a Cursor rule Claude Code has never loaded.

Since 0.4.0, `recall why src/auth/session.py:42` follows a line back to the chat that wrote it, and recall tells an agent before it edits a file another chat has open changes to. In 0.5.0 that check takes about 40 ms an edit on a history of 1,200 chats (150 ms cold), down from 80 ms.

## Results

- **80%** new bug reports with the past fix in the top 5, on SWE-ContextBench
- **90%** of the coding conventions you set held in notes written by Claude Haiku 5.5, in their latest form, on MemoryCode
- **0** model calls to index or to search

recall finds where a bug was fixed before: for four in five new bug reports, the past fix is in its top five results, and it calls no model to get there: a call to its tools takes 65 ms at the median. Its nightly notes keep the conventions you set, so an agent starts each session knowing them (Figure 6).

Measured on SWE-ContextBench and MemoryCode, public benchmarks built from coding work. Every number reproduces with `recall eval`; how each release moved them is in the [changelog](https://rererecall.com/changelog/).

## How it compares

On coding work, recall finds the past fix more often than every memory product the benchmark’s authors tested, at each cutoff they report (Figure 7).

On the chat benchmarks memory products usually report, its retrieval is among the best published (Figure 9), and its answers score 88.4%, against 83.0% to 94.6% self-reported by memory products for individual developers (Figure 10).

One difference does compare cleanly: other memory systems call a model for every message they store. **recall calls none.** Each system side by side with recall, on cost, latency, privacy and the benchmarks they share: [recall, compared](https://rererecall.com/compare/).

## What’s next

With Claude Haiku 5.5’s notes loaded at session start, an agent follows the latest conventions on long MemoryCode histories **75%** of the time, against 32% with search alone, and holds steady on short ones (88.3% against 87.8%; 0.4.1, the same day, three runs each).

What MemoryCode doesn’t settle is real chats. On my own hand-labelled chats, notes written by gpt-6-luna find 69% of the memories I expect and Haiku 5.5’s find 57%, within noise of each other, so Haiku’s lead on MemoryCode doesn’t show there yet. Check the notes your model writes on your own history.

What changed in each release is in the [changelog](https://rererecall.com/changelog/).

## Get started

**Let your agent do it.** Paste this into Claude Code, Codex or Cursor:

```
Install recall for me: follow https://raw.githubusercontent.com/alirng/recall/main/INSTALL.md
```

**Or by hand.** macOS or Linux, Python 3.11 or later:

```
uv tool install 'recall-agents[embeddings]'
recall setup
```

Setup finds your agents, asks which model should write your notes, builds the index and schedules the nightly run.

**Sources**

- SWE-ContextBench · Zhu et al., arXiv:2602.08316
- MemoryCode · Rakotonirina et al., ACL 2025, arXiv:2502.13791
- LongMemEval · Wu et al., arXiv:2410.10813
- LoCoMo · Maharana et al., arXiv:2402.17753
- Reciprocal rank fusion · Cormack, Clarke and Büttcher, SIGIR 2009
- Method and other systems’ figures · [coding benchmarks](https://github.com/alirng/recall/blob/main/docs/research/coding-memory-hillclimb.md), [chat benchmarks](https://github.com/alirng/recall/blob/main/docs/research/retrieval-benchmarks.md)
