Skip to content
Mimir

Pi & Oh My Pi Session Capture

PiPiOh 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.

  1. OpenRouter route: The extension routes Pi’s OpenRouter provider through Mimir with exact session (x-mimir-session), repository (x-mimir-repo), and harness headers.
  2. Direct providers: For direct and subscription providers (Anthropic, OpenAI, etc.), it uploads bounded reconstructed completed turns, including tool execution results exposed by Pi.
  3. Memory skill: The mimir-use skill allows Pi to query Mimir directly for past sessions, prior decisions, and evidence.
Terminal window
mimir install --harness pi

This 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 is selected independently under the Pi group during setup.

  • 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.
Terminal window
mimir install --harness oh-my-pi

Restart omp after install or update.

When OMP has a nonstandard agent home directory, set the OMP_CODING_AGENT_DIR environment variable.