Expand description
Pi coding-agent harness adapter.
Launches pi -p "<prompt>" in non-interactive print mode. The prompt is
POSITIONAL — -p is a boolean flag (not the prompt carrier, and not stdin
transport like Claude’s stream-json). --no-approve is always passed:
--approve trusts project-local extensions/skills/settings that execute
UNSANDBOXED (Pi ships no sandbox), and a fresh per-phase worktree establishes
no trust decision — that is a security boundary, not a convenience.
No --model/--provider wiring here: model/provider selection is the
AgentDriver contract’s job (Phase 37), and AgentAdapter has no config
surface to source it from. Pi uses its own defaults (provider google).
Note: Pi has NO -- end-of-options convention — passing -- is rejected as
an unknown option, so the prompt is passed raw. DevFlow’s own stage prompts
never begin with -, so the leading-dash hazard (a markdown - [ ] list) is
a Phase 37 concern, not something a -- can guard here.
Structs§
- PiAgent
- Legacy
AgentAdapterface for Pi (D-11 removal point). Delegates toPiDriver. - PiDriver
- The modular driver for Pi (37-03): print-mode
-plaunch,pi auth checkhealth, and the de-Claude-ified workflow-reference prompt. NO JSON unwrapper or monitor/CloseRuleintegration here — that is 37.1/38 (CONTEXT D-04).