omp
๐ Pi Plugin Compatibility
Golden baseline for running legacy Pi-named plugins under the OMP runtime.
Many plugins still say Pi because they target the upstream Pi plugin API. In this workspace, OMP is the runtime; keep the PI_* knobs those plugins actually read.
Golden baseline#
/home/mc/.env = Pi-plugin compatible config
/home/mc/.local/bin/omp-plugin-env = Pi spawn โ OMP bridge
/home/mc/.omp/agent = OMP agent state
Required habits#
- Keep
PI_*environment names unless plugin docs explicitly supportOMP_*. - Force spawned child sessions through
/home/mc/.local/bin/omp-plugin-env. - Pin session state with
PI_CODING_AGENT_DIR=/home/mc/.omp/agent. - Use explicit env-file paths when supported.
- Restart OMP after config changes.
- Check whether saved plugin config overrides environment config.
- Avoid plugin source patches unless the plugin is actually broken.
- Keep secrets out of docs, logs, Discord, and commits.
Fast fix matrix#
| Symptom | Cause | Fix |
|---|---|---|
Plugin tries to run pi |
Default spawn command | Use /home/mc/.local/bin/omp-plugin-env. |
| Launcher says no secret | Env missing at process boot | Set launcher secret in env, then restart OMP. |
/new opens wrong runtime |
Spawn command wrong | Set OMP wrapper as spawn command. |
| Child session loses config | Wrong CWD/env | Use --allow-home and explicit env-file path. |
| Config changes ignored | Plugin read config once | Restart OMP. |
Security minimum#
A private Discord bot and minimal allowlists are mandatory. If external access is required, put it behind HTTPS, auth, and a launcher secret.
Sources: docs/omp-pi-plugin-cheatsheet.md, docs/omp-coms.md.