This document pins the exact legacy environment used for extension reference captures and lists the commands to reproduce runs.
Local snapshot: legacy_pi_mono_code/pi-mono/
Commit: df5b0f76c026b35fdd7f0fb78cb0dbaaf939c1b5
Verify:
git -C legacy_pi_mono_code/pi-mono rev-parse HEADNode engine requirement: >=20.0.0 (from package.json).
Dependency lock: package-lock.json (use npm ci for reproducibility).
Workspace packages: packages/* plus extension examples in
packages/coding-agent/examples/extensions/*.
Install/build (from repo root):
cd legacy_pi_mono_code/pi-mono
npm ci
npm run build
npm run checkrequiresnpm run buildfirst.
Convenience wrapper:
./pi-test.shThis executes:
npx tsx packages/coding-agent/src/cli.tsNo‑env mode (clear API keys for deterministic tests):
./pi-test.sh --no-envLoad a single extension via CLI:
./pi-test.sh --extension packages/coding-agent/examples/extensions/permission-gate.tsAuto‑discover by copying into extensions dir:
cp packages/coding-agent/examples/extensions/permission-gate.ts ~/.pi/agent/extensions/
./pi-test.shRepo‑local extensions (already present):
legacy_pi_mono_code/pi-mono/.pi/extensions/
Install packages with extensions/skills/prompts/themes:
./pi-test.sh install npm:@foo/pi-tools
./pi-test.sh install npm:@foo/pi-tools@1.2.3
./pi-test.sh install git:github.com/user/repo
./pi-test.sh install git:github.com/user/repo@v1Packages install to:
~/.pi/agent/git/ (git)
~/.pi/agent/npm/ (npm)
For project‑local installs:
./pi-test.sh install -l npm:@foo/pi-tools- Ensure pin: checkout the exact commit and run
npm ci. - Select extension: from
examples/extensions/or.pi/extensions/. - Run with deterministic env: prefer
--no-envunless API keys are required. - Record outputs: capture stdout/stderr and any session JSONL outputs.
Example capture command:
./pi-test.sh --no-env --extension packages/coding-agent/examples/extensions/permission-gate.ts- The example extensions list and descriptions live at:
packages/coding-agent/examples/extensions/README.md - For extension docs, see:
packages/coding-agent/docs/extensions.md