pi

package
v0.34.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 10 Imported by: 0

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

func NewAgent(command string) *Agent

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL