Skip to content

Oh My Pi

Oh My Pi uses a managed Signet runtime extension installed by @signetai/connector-oh-my-pi. The extension forwards lifecycle events to the daemon and injects hidden Signet context into the session when needed.

File Description
PI_CODING_AGENT_DIR/extensions/signet-oh-my-pi.js Managed extension bundle when PI_CODING_AGENT_DIR is set
~/.omp/agent/extensions/signet-oh-my-pi.js Managed extension bundle in the default Oh My Pi agent directory

During setup or connect, the connector writes a bundled signet-oh-my-pi.js file into the Oh My Pi extensions directory. If PI_CODING_AGENT_DIR is set, Signet uses that agent directory. Otherwise it writes to ~/.omp/agent/extensions/. The file can contain the configured Signet API key, so Signet writes it with mode 0600 and resets a broader mode on every setup or sync run.

The install path is idempotent and only manages signet-oh-my-pi.js. Older Signet-managed .mjs installs are removed automatically on the next setup or sync run.

  • Existing unrelated Oh My Pi extensions are left untouched.
  • Signet refuses to overwrite a colliding unmanaged signet-oh-my-pi.js.
  • Daemon or network failures are fail-open, so prompt handling, compaction, session switches, and shutdown continue even if Signet is unavailable.
  • The extension persists hidden session-context and recall injections through before_agent_start, marks them with attribution: "agent", and keeps them out of transcript reconstruction so memory-backed answers remain attributable without consuming user-attributed Copilot requests.
  • Prompt-submit starts on input without delaying input acceptance and is awaited once in before_agent_start; a failed or timed-out request is not retried for the same prompt. SIGNET_PROMPT_SUBMIT_TIMEOUT sets its wait budget in ms (default 5000).
  • It does not currently add /remember or /recall tools, and it does not sync AGENTS.md into Oh My Pi.
Hook Supported
session-start yes
user-prompt-submit yes
pre-compaction yes
compaction-complete yes
session-end yes