# What your agent learns stays with you.

> Your coding agent saves preferences, decisions and fixes in one file on your machine and gets relevant ones back via associative recall, shared hook + MCP dedup, branch cues and fix matching. See, edit and delete everything.

Saved once, recalled in every session.

Memory lets your coding agent save preferences, decisions and fixes in one SQLite file on your machine. The relevant ones return at session start, on every prompt, and after build or test failures—without repeating anything twice.

[Turn on Memory](#start) · [Read the numbers](#recall)

one local file · no account · no telemetry

## How a memory is saved and recalled

### Compact startup pack

Sends your latest handoff, `binding` rules, `project-context` and active branch/worktree decisions—zero unrelated preference noise.

### Associative & error recall

Blends hybrid vectors, 1-hop PageRank over shared files/issues and failed-command fingerprints inside one shared hook + MCP turn budget.

### In-session save & auto-anchors

No second model reads your chat. Agents save directly, receive `possible_supersedes` warnings above `0.80` cosine, and auto-anchor files, symbols & `#NNN`.

### On-demand & joined lookup

Capture immediately via `/remember` or Quick Palette (`Ctrl+Shift+Space`), build 1–2 KB subagent packets (`footnote pack`), or query Memory + Library + Code together.

Hooks + MCP auto-install:

Claude Code, Codex CLI, Antigravity CLI (agy and T3 Code), Grok, DeepSeek Harness, and any MCP stdio host including Gemini CLI.

## See it, change it, delete it

Control is the reason to trust it, so it comes first. A global preference saved by an agent waits for your review before any agent sees it, and `personal` memories remain completely isolated from project search and hooks.

### List & isolate scopes

Run `footnote memory-list` to inspect every record, or pass `--project personal` for private-life notes that never cross into work queries.

### Review pending & stale anchors

`footnote memory-review` surfaces pending global rules; `footnote memory-clean --stale-anchors` flags renamed files with reversible `--reanchor`, `--supersede` or `--archive`.

### Delete or restore anytime

`footnote forget <id>` removes a memory or rejects a pending preference; `footnote memory-restore <id>` approves or restores an archived record.

### Skills sync, outcomes & visual timeline

Auto-discover local agent skills with `footnote skills sync` (or Launcher Skills prerequisites), track read/script outcomes across Claude Code, Codex and Antigravity `transcript.jsonl`, and review weekly memory merges.

## Recall quality (M1, MEM-24, MEM-25, MEM-31)

Measured on LongMemEval-S (500 questions, session-level retrieval) and our frozen 150-query FR & FR/EN code-switching developer evaluation (25 Nov 2026). These numbers measure finding the right memory; whether an agent writes the right things unprompted has no benchmark yet.

LongMemEval-S session retrieval (500 questions, 25 Nov 2026 post-#681): Footnote reaches 0.978 any@5, 0.910 all@5, 0.941 nDCG@10 versus ICM keyword-only 0.952 any@5, 0.820 all@5, 0.875 nDCG@10

| Tool / Run | any@5 | all@5 | any@10 | all@10 | nDCG@10 |
|---|---|---|---|---|---|
| Footnote (25 Nov post-#681) | 0.978 | 0.910 | 0.992 | 0.970 | 0.941 |
| Footnote (14 Nov baseline) | 0.978 | 0.908 | 0.992 | 0.970 | 0.939 |
| ICM, keyword-only | 0.952 | 0.820 | — | — | 0.875 |

FR and FR/EN code-switching memory recall baseline (MEM-31, 150 queries, 25 Nov 2026): Hybrid reaches any@1 0.7917 (+97.9% vs lexical 0.4000), any@5 0.9250 (+23.3% vs 0.7500), all@5 0.8250 (+33.8% vs 0.6167), nDCG@10 0.8433 (+43.7% vs 0.5867), with 13.68 ms p50 latency and 0/150 scope or superseded leaks

| Slice / Check | Sample | Hybrid score | Key comparison / note |
|---|---|---|---|
| `fr_en_code_switch` (MEM-31) | 45 q | 1.0000 any@5 | 0.9746 nDCG@10 |
| `fr_pure` (MEM-31) | 30 q | 0.9667 any@5 | 0.9546 nDCG@10 (vs 0.5892 lex) |
| `fr_en_multi_hop` (MEM-31) | 20 q | 0.9500 any@5 | 0.6500 all@5 · 0.8231 nDCG@10 |
| `fr_cross_lingual_en_mem` (MEM-31) | 25 q | 0.7200 any@5 | 0.4895 nDCG@10 (vs 0.2098 lex) |
| 1-hop associative PPR (MEM-25) | 4 clusters | 1.000 all@4 | up from 0.000 (+1.58 ms lexical p50) |
| Bi-temporal & prior activation (MEM-24) | 10 synth | 0.700 any@1 | up from 0.500 (1.000 any@3) |

**Caveats (M1, M6):** Every LongMemEval-S difference against ICM keyword-only has a 95% confidence interval excluding zero. We did not run ICM's local hybrid mode locally; against ICM's own published hybrid run on different hardware/software (`M6`), Footnote ranks higher on `all@10` and `nDCG@10` and ties on `any@5`, `all@5` and `any@10`. Document search benchmarks live on [Library results](https://footnote-alpha.johanproust.workers.dev/library.md#quality).

## What stays on your machine

### One local SQLite file

Warm Windows hooks complete in **16.4 ms** (`hook.recall`) and **19.3 ms** (`hook.context`) p50 by reading `.git` natively in Rust with zero `git.exe` spawns and zero telemetry.

### Zero background network calls

Hook recall, MCP search, and `usage` (bundled LiteLLM pricing) open no outbound connection. Only explicit `models install`, `usage --sync-prices`, and `docs`/`crawl` touch the network — or set `library.crawler_enabled = false` for offline mode.

### Pure-Rust SQLCipher v4

Compile with `--features encryption` for AES-256 encrypted storage on both Windows and Linux with zero OpenSSL, Perl or NASM build dependencies (still opt-in).

**Important boundary:** The memories injected into a prompt appear inside your agent's context, so the agent's own session transcripts keep them in plain text. Encryption protects Footnote's local database file, not what third-party agent runtimes log to disk.

## Turn on Memory.

You need Footnote installed first: see [install](https://footnote-alpha.johanproust.workers.dev/index.md#install). The command backs up each settings file it edits and leaves your existing entries intact.

### Turn on

Registers Memory, hooks and `/remember` in every supported agent found.

```sh
footnote install --memory
```

### Turn off

Removes the hooks and MCP server. Your memories and backups stay safe.

```sh
footnote uninstall --memory
```

---

Page: https://footnote-alpha.johanproust.workers.dev/memory
Source: https://footnote-alpha.johanproust.workers.dev/llms.txt lists every page.
