feat: add Pi as first-class Mosaic runtime #339

Merged
jason.woltje merged 1 commits from feat/pi-runtime-integration into main 2026-04-01 17:02:23 +00:00

1 Commits

Author SHA1 Message Date
Jason Woltje
343f32033d feat: add Pi as first-class Mosaic runtime
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Add Pi (pi-coding-agent) as a native runtime alongside Claude, Codex,
and OpenCode in the Mosaic installation wizard and launcher.

Monorepo changes (@mosaic/mosaic):
- Add 'pi' to RuntimeName union type
- Add Pi to runtime detector (command: pi, --version flag)
- Add Pi label to runtime installer
- Add configurePiMcp() for ~/.pi/agent/settings.json MCP config
- Add 'pi' to wizard runtime scan list

Local install (~/.config/mosaic/) changes applied separately:
- runtime/pi/RUNTIME.md — Pi runtime contract
- runtime/pi/mosaic-extension.ts — Pi extension (lifecycle hooks,
  mission detection, session lock, /mosaic-status command)
- bin/mosaic — launch_pi(), yolo pi, coord --pi, prdy --pi
- adapters/pi.md — Pi adapter documentation
- AGENTS.md — Pi added to runtime load order
- skills/ — symlinked monorepo skills for launcher discovery

Pi integration notes:
- mosaic pi and mosaic yolo pi are identical (Pi has no permission
  restrictions)
- Runtime contract injected via --append-system-prompt (native flag)
- Mosaic skills loaded via --skill flags (native Pi skill discovery)
- Extension loaded via --extension for session lifecycle hooks
- Pi native thinking levels replace sequential-thinking MCP gate
- Model-agnostic: works with any provider configured in Pi settings
2026-04-01 12:00:01 -05:00