| name | pi-integration |
| description | Pi Coding Agent integration. Generate multi-agent team/chain configs and damage-control safety rules. Triggers on: pi, Pi agent, multi-agent, chain config, damage control. |
| apex-version | 1.0 |
| apex-id | apex:pi-integration |
| apex-category | technique |
| apex-compatibility | ["superpowers","gsd"] |
| apex-lifecycle | {"phase":["plan","execute","verify"],"triggers":["user says: pi","user says: generate pi config","user says: multi-agent setup","user says: damage control","user says: agent chain"]} |
Pi Coding Agent Integration
Generate Pi Coding Agent configuration files from apex-discovery's agent definitions and safety rules.
Commands
| Command | Description |
|---|
apex pi setup | Generate all Pi config files |
apex pi team | Generate Pi agent-team config |
apex pi chain | Generate Pi agent-chain config |
apex pi damage | Generate Pi damage-control safety rules |
Usage
apex config --set ai.cli=pi
apex plan execute | pi
apex pi setup
pi -e extensions/agent-team.ts
pi -e extensions/agent-chain.ts
Multi-Agent Patterns
Agent Team (dispatcher)
Pi dispatches work to specialist agents defined in teams.yaml.
Agent Chain (pipeline)
Each agent's output becomes the next agent's input via $INPUT.
Damage Control (safety)
Blocks dangerous commands, protects sensitive files, enforces read-only paths.