@aeondave/pi-persona-mind
v0.9.7
Published
Local memory for Pi with pi-persona — durable project and persona facts, session notes, bounded retrieval, and supervised automatic consolidation.
Maintainers
Readme
Local memory for Pi and pi-persona. Save a decision once and recall it the next time you open the repository. Keep temporary constraints on the current session branch and carry personal preferences across projects with the same persona.
Features
| What you can do | How it works | |---|---| | Choose who remembers | Save a fact for one session branch, one repository, one persona across projects, or explicitly share it across personas. | | Recover context after compaction | After Pi compacts a tool loop, Mind refreshes the supervisor’s reference from the active branch and scoped stores. It can include a fact saved moments earlier. | | Find and inspect a decision | Search by words, code identifiers, tags or paths. Press F10 to browse complete records, see the last context Mind prepared, or read the active-branch timeline. | | Give workers relevant context | Delegated workers get a short memory selection alongside their assigned skills. The supervisor keeps the session notes and memory-writing tools. | | Pick up unfinished work | Save a handoff with the goal, progress, next step and references. Open it in a later session with the same project and persona. | | Defer a task | Add it to the project backlog with a reminder. Pi notifies you while it is open without waking the model. | | Maintain saved knowledge | Consolidate related facts, inspect the history of a changed decision, or review a fact against evidence you select. |
Quick start
Mind requires Pi 1.7.0, Node.js 22.19.0+ and a compatible pi-persona 1.18.1+ release loaded in the same Pi instance. Install the current companion release for this Pi version. pi-persona releases
pi install npm:@aeondave/pi-persona
pi install npm:@aeondave/pi-persona-mindRestart Pi or run /reload. For an existing installation, run pi update <source> for each
package, using the same npm: sources shown above. Mind stores project, persona and shared facts
in the active Pi profile, selected by pi --agent-dir <dir> or PI_CODING_AGENT_DIR.
Try this in a repository:
- Ask “Save this as a durable project decision: every database schema change needs a migration.”
- Open a fresh Pi session in the same repository and ask “What did we decide about schema changes?”
- Press F10 → Memories to read the full saved record. Context shows which excerpts Mind
selected for the turn. Use
/mind doctorto inspect the active settings or a storage warning.
Choose what persists
Automatic capture turns strong cues such as “remember this” into provisional session notes. Repeating the same capture reuses the existing note on that branch. Session notes survive compaction and resuming the saved branch. A new session starts with its own notes.
For durable memory, name the destination when asking the agent to save a fact. Project keeps a repository decision available across personas. Persona carries a preference across projects. Shared makes a fact available across personas. These facts have no automatic expiry. Mind selects relevant excerpts within a context budget and sends them to the session model. Ask for the complete record when you need an exact command or the conditions under which a workaround applies.
Working project memory and backlog items expire after 48 hours by default. A reminder set
for a later date extends the item's expiry. For longer work, ask the agent to save a handoff.
Use /mind handoff list and /mind handoff show <id> to consult it when you return.
Maintenance and model usage
Browsing, recall and full-record reads use local data and need no additional model call.
Automatic consolidation is on by default. After eligible saves and once the foreground settles,
a visible Persona worker can use the current session model to consolidate saved facts.
Use /mind optimize auto status to check or /mind optimize auto off to disable it for this session.
Set PI_PERSONA_MIND_OPTIMIZE=off to start with it disabled.
Explicit consolidation and evidence-grounded review also use the current model. Use
/mind optimize history to inspect consolidation changes. Guarded undo restores them when conflict
checks pass. Explicit fact replacements retain a before/after history for inspection. To check
a fact against trusted repository files or recent user messages, start /mind review in the TUI,
choose the evidence and approve any proposed correction before it is applied.
