A maintained, git-installable Pi adapter for Compound Engineering.
EveryInc/compound-engineering-plugin is the source of truth for Compound Engineering, and it already ships a Pi target. Today that Pi target is still experimental for serious day-to-day use:
- upstream conversion currently drops important agent
modelmetadata - the upstream Pi compatibility extension shells subagents without
--model,--provider, or--thinking - users who want Pi need an easier install/update path than manually reworking upstream assets every release
This repo fixes that without attempting a risky v1 rewrite.
This package focuses on three things:
- easy install/update from git
- automated upstream sync from Compound Engineering releases
- model-aware subagents for Pi
It does not try to replace upstream Compound Engineering as the source of truth, and it does not implement a full Pi-native runtime rewrite in v1.
Upstream content lives in:
EveryInc/compound-engineering-plugin
This repo regenerates Pi-facing assets from a pinned upstream tag recorded in upstream.lock.json.
Install globally from git:
pi install git:github.com/ThewindMom/compound-engineering-pi@v2.66.1Or install from a local checkout while iterating:
pi install /absolute/path/to/compound-engineering-piIf your package source is not pinned, Pi can update it normally:
pi updateIf you pin a specific tag, reinstall or change the tag explicitly:
pi install git:github.com/ThewindMom/compound-engineering-pi@v2.66.1v1 intentionally supports global-only model configuration.
Copy ce-models.json to:
~/.pi/agent/compound-engineering/ce-models.jsonThen edit it to set:
- global defaults
- role-level overrides (
research,review,workflow, etc.) - specific agent overrides
Resolution order in v1:
- explicit global agent override
- explicit global role/default override
- upstream agent metadata when present
- adapter defaults
- Pi's normal default model
See docs/model-config.md.
extensions/compound-engineering-compat.ts— maintained Pi adapter extensionskills/— copied upstream skills plus generated agent skillsprompts/— generated prompt wrappers for upstream CE skillspi-resources/compound-engineering/agent-metadata.json— generated upstream metadata used for model routingscripts/build-from-upstream.mjs— deterministic asset regenerationscripts/sync-upstream.mjs— detect new upstream release and regenerate assetsscripts/release-from-merge.mjs— prepare release tag/release notes metadata
Two GitHub Actions workflows are included:
.github/workflows/upstream-sync.yml- cron + manual dispatch
- checks latest upstream release
- rebuilds generated assets
- opens or updates an automated PR
.github/workflows/release.yml- runs on merge to
main - creates a
vX.Y.Ztag and GitHub release when that tag does not already exist
- runs on merge to
See docs/automation.md.
Before any validation that touches the real ~/.pi, make a complete backup first.
See docs/validation.md.
Rebuild from a local upstream checkout:
node scripts/build-from-upstream.mjs --source /path/to/compound-engineering-pluginDry-run upstream sync logic:
node scripts/sync-upstream.mjs --forceRun tests:
npm test