Install
Install with PiG
pig install npm:pi-satoriInstall with Pi
pi install npm:pi-satoriPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.
pi-satori
Memory for Pi that works like Claude Code's auto memory, plus full-text search over every Session Pi has recorded. The agent writes memory files itself, so "remember this" takes effect at once. An offline Dreaming pass then fills in what the agent missed, merges duplicates, and fixes notes that newer history contradicts.
Install
pi install npm:pi-satori
Restart Pi or run /reload. On first start Satori records an install watermark. Sessions from before it are never dreamed automatically, so installing does not trigger LLM costs over your existing history.
History search uses ripgrep. Satori uses the copy Pi downloads to ~/.pi/agent/bin/rg, otherwise rg on PATH.
What the agent gets
- A memory prompt. Each Session starts with the paths of the current Project's memory directory and the Global one, the note format and rules, and both
MEMORY.mdindexes, capped at about 300 tokens. The agent reads and edits notes with its normal file tools. history_search. Finds Events in past Sessions, side branches included, that contain every word of a query. Each hit has an address, its kind, time, and Project or Global.history_read. Expands an address into the Event with context from the same branch.
A Project is a git repository: every worktree and subdirectory of the same repository shares one Project's memory. Sessions outside any repository only use Global, and the agent writes Global only when you ask it to.
Dreaming
Once a day, when an interactive Session starts, Satori dreams in the background and shows what changed. Only one run happens at a time, and if the agent edits a note while Dreaming is thinking, the agent's version wins. Dreaming reads the new Events and the current notes, then writes or deletes notes, keeps each MEMORY.md in sync, and replaces secret values the agent may have written down. Every change goes to ~/.satori/dream.log with the previous content of any note it replaced, so you can undo a bad change by hand.
/satori dreamruns it now./satori dream <session>dreams one Session by file name, path or session id, including Sessions from before installation./satori statusshows how many Sessions and Events are waiting.
Dreaming uses Pi's current model. In ~/.satori/config.json, {"dreamModel": "<provider>/<model id>"} picks another one {"dreamEveryHours": 24} sets the interval, and {"autoDream": false} turns off the automatic run. /satori dream runs it any time.
Your data
Everything lives under ~/.satori (override with SATORI_HOME): global/ and projects/<main worktree path, non-alphanumerics replaced by ->/, each with MEMORY.md and one <name>.md per note. Edit or delete them freely. Known secret formats (sk-…, AKIA…, ghp_…, github_pat_…, Bearer …, *_KEY/TOKEN/SECRET/PASSWORD=…, PEM private keys) are replaced with [REDACTED_SECRET] before anything reaches the Dreaming model, and in the notes Dreaming covers. Notes should record where a secret lives, never its value.
Upgrading from 0.1: the old notes/ and candidates/ directories are no longer read. Move any notes you want to keep into the new directories.
License
MIT. Source and design notes: https://github.com/iefnaf/satori