Repository navigation
Releases
Remembrancer v0.1.0-alpha
Memory for a team's AI agents. Remembrancer reads your git history, distills it into notes that cite the commits behind them, and serves those notes to agents over MCP. Each caller reads only the notes their access allows.
It is for a team that wants its agents to answer "who is on call for this service?", "what did we decide about the webhook API?" or "what changed last week?" from the team's own record, on the team's own machines. It needs no account and no LLM: distillation is deterministic, and an LLM endpoint is optional. It reaches the network only when you configure it to. It mirrors a repository that config.json names by URL, or as owner/name with no local clone, and each repository of an organisation named in git_org. With an LLM key set, it sends the commits it distills to that endpoint.
Alpha: v0.1.0a0. Tested on Linux with Python 3.12, and in Docker. v0.1 ingests git only, keeps its memory as plain files next to the code, and has no command yet to approve the notes it holds for a human. Limits lists the rest. Commands, files and settings may change before 1.0.
How it works
- Ingest,
ingest/: one connector per source turns its records into events of one shape. An event's id is its dedup key, so a re-run adds nothing twice. - Distill,
distill/andgovern.py: clusters events into typed notes. Each cluster gets one action: create, update, link, supersede or ignore. Replaying the same events changes nothing. - Lint,
lint/: finds orphan notes, links to missing notes, superseded notes and contradictions, and writescontext/_lint_report.md. - Retrieve,
retrieve/: reads the index first, then ranks notes with BM25, filtered by the caller's labels. - Serve,
mcp/server.py: the MCP server, over stdio or streamable HTTP.
remembrancerlib/ is the shared core: events, notes, cursors and access checks. AGENTS.md is the operating spec for agents and contributors; the distiller reads its conventions block at run time. scripts/run.py runs ingest, distill, lint and index in order, and make help lists the same steps one by one.
An LLM is optional. With one, distill can also judge which events belong together and draft the notes. Set REMEMBRANCER_LLM_API_KEY and REMEMBRANCER_LLM_MODEL for any Anthropic-compatible endpoint, plus REMEMBRANCER_LLM_BASE_URL when it is not Anthropic's own. The other settings, from the timeout to the fan-out, are REMEMBRANCER_LLM_* variables listed in distill/llm_env.py.
Tools
The server offers the tools that mcp.tools in config.json lists. The example config lists all eight:
remembrancer_searchranks the notes the caller may read for a question.remembrancer_get_notereturns one note in full, with the events behind each claim.remembrancer_timelinelists one entity's dated history, newest first.remembrancer_recent_git_activitylists recent commits by author, read from the events, so it does not wait for distillation.remembrancer_digsearches the raw events when the notes come up short. Its answers are unverified candidates.remembrancer_confirm_answerqueues adiganswer the user confirmed, with its citations, to become a note.remembrancer_rememberrecords a fact a person states, or proposes a correction to a note.remembrancer_whoamisays which identity the session reads as.
Limits of v0.1
- Git is the only source. The event contracts for other sources ship; their connectors do not.
- Held notes have no approve command. Decisions and the other notes
govern.pyholds wait instate/approval_queue.jsonl, out of search, and v0.1 has no command or MCP tool to approve them. To admit them asproposedinstead, setgovernance.admission_modetoautomaticinconfig.json. - Machine-written notes start
proposed. The example config turns off the gate that hides unverified notes (trust.hide_verification_failures: false); without aconfig.json, search shows no machine-written note at all. AGENTS.md describes verification and approval. - Answers are only as good as your commit messages. Without an LLM, a note holds its commits' subjects and the files they touched, and search ranks those words. Notes distilled from git carry no people or component tags.
- Tested scale: flask's whole history, 3,834 commits once merges are skipped, became 1,588 notes in one run of 146 s with 100 MB peak memory, on a 16-core AMD Ryzen 9 7950X shared with other work. A query then took 0.3 s. Measured 2026-11-11 at flask
49943b5a. - Memory is plain files in
events/,context/,state/andregistry/, next to the code, and one pipeline runs at a time. v0.2 moves storage to a database: SQLite by default, Postgres for a team.
Get started
Start with the quick start, then connect an agent or serve a team over HTTP.
Contributing
CONTRIBUTING.md says what a pull request needs: tests with every change, one change per pull request, and a DCO sign-off (git commit -s) on each commit. Run the tests with pip install pytest, then python -m pytest -q.
Ask questions and report bugs in GitHub issues. Report a security problem privately, as SECURITY.md describes, never in a public issue.