piagent_
← ~/map

$ cat ~/map/pi-mm.md

pi-mm

Persistent long-term memory for pi: recall before each turn, judged capture after it settles.

extensions✓ Oct 20

Facts

repository
github.com/tty-pt/pi-mm ↗
GitHub Stars
★ 0
Forks
0
license
BSD-2-Clause
npm / mo
—
last push
Nov 29, 2026

install

git clone https://github.com/tty-pt/site .pi/extensions/pi-mm

## TL;DR

Persistent memory extension for the pi coding agent: a hybrid lexical and vector search injects relevant memories before each turn, an agent-settled judge decides what to remember, update, or skip, and storage, indexing, and optional embeddings all run locally.

## Key points

## FAQ

Q How is pi-mm installed?

The README documents cloning the tty-pt/site monorepo into the project .pi/extensions/pi-mm directory or the global ~/.pi/agent/extensions/pi-mm directory, or loading a checkout for one run with pi --extension.

Q What happens when the judge endpoint is offline?

pi-mm marks the session degraded and falls back to deterministic local sentence heuristics rather than crashing pi; judgeMode can also be set to heuristic or off outright.

Q Where do memories live?

Under the directory configured by memDir, .pi/mm by default, as local memory databases and logs written by the compiled-C storage layer.

## References

## Related entries

Last updated: Nov 29, 2026