piagent_
← ~/map

$ cat ~/map/pi-memento.md

pi-memento

Nested context transactions for pi: commit, compact, squash, or revert an exploration without rewriting session history.

extensions✓ Oct 16

Facts

repository
github.com/thebabush/pi-memento ↗
GitHub Stars
★ 6
Forks
2
license
MIT
npm / mo
—
last push
Aug 29, 2026

install

./bin/memento

## TL;DR

Experimental pi extension for explicit, nested transactions over the agent's own model-visible context — commit, compact, squash, or revert a stretch of exploration without ever rewriting session history.

## Key points

## FAQ

Q Does revert undo file changes?

No. A transaction only affects conversational context — the projection is a view over append-only JSONL history, so files written, commands run, and other side effects are not rolled back. An open transaction is not a sandbox.

Q How is this different from forking or spawning a subagent?

Forking couples the context effect to a new execution loop with a boundary committed to up front; pi-memento provides the context effect alone, reactively, and nestable at any depth — and the two compose, since a subagent can use pi-memento internally.

## References

## Related entries

## Guides

Last updated: Aug 31, 2026