Documentation
¶
Overview ¶
Package pi implements AgentAdapter for the pi.dev coding agent. pi is MCP-native and maps cleanly onto the engine's InvokeRequest: the MCP config, skills, and system prompt all become native CLI flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// Command is the CLI executable name. Defaults to "pi".
Command string
}
Agent implements adapter.AgentAdapter for pi.dev.
func NewAgent ¶
NewAgent creates a pi.dev AgentAdapter. command overrides the CLI binary name (default: "pi").
func (*Agent) Capabilities ¶
func (a *Agent) Capabilities() adapter.Capabilities
Capabilities reports pi's supported features: MCP, headless autonomous runs, repeatable skills, and an appended system prompt.
func (*Agent) Invoke ¶
func (a *Agent) Invoke(ctx context.Context, req adapter.InvokeRequest) (*adapter.InvokeResult, error)
Invoke spawns pi for a build session. Interactive (default) inherits stdio and blocks until exit; headless runs `-p --mode json` autonomously. Progress is reconciled by spec-cli from the node ledger after pi exits, so the result is empty either way.