Skip to main content

Module plugin_omp

Module plugin_omp 

Source
Expand description

Oh My Pi (OMP) integration (docs/API_AND_INTEGRATIONS.md §5, P0).

scc setup omp installs a native project-scoped integration with NO manual post-config:

  1. .omp/extensions/scc/index.ts + package.json — ONE native extension module that registers ALL ordering-dependent SCC lifecycle behavior (session_start, before_agent_start, tool_result, session_before_compact, session.compacting).
  2. .omp/mcp.json — merged (preserving existing servers) wiring the SCC MCP server (scc mcp) for manual semantic drill-down. The command honors SCC_BIN when set at setup time.
  3. .omp/skills/scc-system-context/SKILL.md — on-demand workflow guidance (no hard rules live only in the skill).
  4. AGENTS.md — SCC DURABLE RULES ONLY (never generated Atlas/Surface facts). Native .omp/AGENTS.md has higher provider priority than the standalone root AGENTS.md. The installer patches the winning existing file and never silently creates a shadowing .omp/AGENTS.md when only the root file exists.

The extension uses pi.exec(process.env.SCC_BIN ?? "scc", [...]) argument arrays (never shell interpolation), preserves arg boundaries, captures exit/stdout/stderr, catches errors, and never crashes the OMP session.

Functions§

cmd_setup_omp
scc setup omp — install the native OMP integration.
cmd_setup_pi