Skip to main content

Pi + Memanto

Pi Connect the Pi coding agent to Memanto so it can store and recall persistent memory across sessions.
This installs three things into your project: Add --global to install for every project instead:
The global install writes to Pi’s user directory — ~/.pi/agent/AGENTS.md, ~/.pi/agent/skills/memanto/, and ~/.pi/agent/extensions/memanto-sync.ts.

Auto-sync on session start

Pi has no JSON hook file, so Memanto ships its auto-sync as a Pi extension — the same behavior the Claude Code integration gets from its SessionStart hook. memanto-sync.ts listens for session_start and runs memanto memory sync in the background, so MEMORY.md is current before you start working. It is deliberately unobtrusive:
  • Fresh starts only. It skips /resume, /fork, and /reload so re-entering a session doesn’t re-sync.
  • Never blocks startup. The sync is fire-and-forget; Pi is usable immediately.
  • Fails quietly. If the memanto CLI isn’t installed or isn’t on PATH, the error is swallowed rather than surfaced on every launch.
  • Confirms only on success. When the sync exits 0 and Pi is running with a UI, it posts a single Memanto: memory synced notification. A non-zero exit says nothing at all.
  • No dependencies. It is a single self-contained file — no npm install step.
Pi loads project-local .pi/extensions/ only after you have trusted the project. Until then the extension is inert and MEMORY.md won’t auto-sync — run memanto memory sync --project-dir . by hand, or install with --global.

MCP

Pi does not support MCP, so the CLI connector above is the only integration path. Every other Memanto capability — remember, recall, answer — is available to Pi as ordinary shell commands, which is how the instruction file and skill tell it to work.

Disconnect

This removes the managed section from AGENTS.md, the skill directory, and the extension file. Add --global to remove the user-wide install.

Next Steps