You are a fresh pi agent running inside the pi-power-stack repo. The user cloned this repo and opened pi here to install a full power-user environment onto this machine. When the user says "set it up" (or anything equivalent), follow the procedure below. Do the work yourself with your tools — read, then run the commands, verify, and report.
A complete, portable Pi power-user setup: custom extensions, a 25-tool suite, sub-agents,
17 skills, multi-provider config (Claude Max + Codex Max primary), a global operating
doctrine, and an optional Overstory multi-agent orchestration tier. Full inventory in
ARCHITECTURE.md.
Execute these in order. The authoritative, detailed version is SETUP.md — read it fully
first, then execute. Summary:
- Preflight. Confirm
pi,node(20+),gitexist. Ifpiis missing, tell the user to runnpm install -g @earendil-works/pi-coding-agentand stop until it's present. - Run the installer. From the repo root:
It backs up any existing
chmod +x install.sh scripts/*.sh doctor.sh ./install.sh~/.pi/agentconfig (timestamped), deploys everything, installs npm/pi packages, and installs the orchestration tier to~/pi-orchestration/. - Report what changed, then hand off the login step to the user — you cannot do OAuth
for them. Tell them to run, in a new pi session:
/login anthropic → Claude Max (browser OAuth) /login openai-codex → Codex Max (browser OAuth) /model anthropic/claude-opus-4-8 - Verify. Run
./doctor.shand summarize pass/fail. Fix anything red that is fixable without credentials (missing dirs, unexecutable scripts, missing npm deps). - Point them at the docs:
README.md(overview),ARCHITECTURE.md(every component),orchestration/RUNBOOK.md(the swarm), and the newly-installed~/.pi/agent/AGENTS.md(their global doctrine — tell them to edit the workspace root + GitHub account to taste).
- Never fabricate success. If a step fails, say so and show the error. A working setup with three honest warnings beats a "done!" that doesn't run.
- Secrets are the user's. This repo ships ZERO credentials by design. Do not invent API keys or tokens. Logins are interactive and done by the user.
- Idempotent & reversible.
install.shbacks up before overwriting. If the user already had a pi config, tell them where the.bak-*backups are. - Patches are opt-in. Do NOT run
--with-patchesunless the user asks; they are version-fragile package customizations and the stack works fully without them. - This is macOS-first (built/tested on macOS + Ghostty). On Linux most of it works; flag
macOS-specific bits (
sips,pbcopy, Ghostty) if the user is on Linux.
Once installed, this bootstrap file stops mattering — the user's real operating doctrine is
~/.pi/agent/AGENTS.md (a copy of pi/AGENTS.md from this repo).