Pi & Oh My Pi Session Capture
PiOh My Pi
Mimir integrates with both Pi and Oh My Pi to provide seamless session capture, liveness tracking, and memory recall.
The installer manages a global Pi extension and the shared Mimir skill.
How it works
Section titled “How it works”- OpenRouter route: The extension routes Pi’s OpenRouter provider through Mimir with exact session (
x-mimir-session), repository (x-mimir-repo), and harness headers. - Direct providers: For direct and subscription providers (Anthropic, OpenAI, etc.), it uploads bounded reconstructed completed turns, including tool execution results exposed by Pi.
- Memory skill: The
mimir-useskill allows Pi to query Mimir directly for past sessions, prior decisions, and evidence.
Installation
Section titled “Installation”mimir install --harness piThis installs ~/.pi/agent/extensions/mimir.ts (or $PI_CODING_AGENT_DIR/extensions/mimir.ts).
Restart Pi after install or update to activate the extension.
Oh My Pi (OMP)
Section titled “Oh My Pi (OMP)”Oh My Pi is selected independently under the Pi group during setup.
How it works
Section titled “How it works”- Mimir installs its adapter at
~/.omp/agent/extensions/mimir.ts(or the active OMP profile). - Activates exact lifecycle heartbeats on the first real turn.
- Captures OpenRouter plus bounded direct-provider evidence.
- Idle drafts do not create dashboard sessions.
Installation
Section titled “Installation”mimir install --harness oh-my-piRestart omp after install or update.
When OMP has a nonstandard agent home directory, set the OMP_CODING_AGENT_DIR environment variable.
