Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
pi
command
|
|
|
pi-acp-mock
command
Package main is a mock ACP server for testing pi-go's ACP integration.
|
Package main is a mock ACP server for testing pi-go's ACP integration. |
|
pi-mermaid
command
Command pi-mermaid renders Mermaid diagrams as terminal art.
|
Command pi-mermaid renders Mermaid diagrams as terminal art. |
|
pi-sandbox
command
|
|
|
hack
|
|
|
session-merge
command
Command session-merge folds a staged remote pi-go sessions tree into the local one without losing local data.
|
Command session-merge folds a staged remote pi-go sessions tree into the local one without losing local data. |
|
sopcheck
command
Command sopcheck validates the spec directories under specs/ against the SOP artifact contracts, without running /plan or /run.
|
Command sopcheck validates the spec directories under specs/ against the SOP artifact contracts, without running /plan or /run. |
|
test/mcp
command
The everything server implements all supported features of an MCP server.
|
The everything server implements all supported features of an MCP server. |
|
vulngate
command
Command vulngate turns govulncheck's JSON output into a gate that fails only on findings something can actually be done about.
|
Command vulngate turns govulncheck's JSON output into a gate that fails only on findings something can actually be done about. |
|
internal
|
|
|
a2a/server
Package server implements an HTTP/gRPC A2A (Agent-to-Agent) server for pi.
|
Package server implements an HTTP/gRPC A2A (Agent-to-Agent) server for pi. |
|
acp/client/agy
Package agy provides an ACP client for Google Antigravity via its standalone ACP server binary (`agy_acp_server`).
|
Package agy provides an ACP client for Google Antigravity via its standalone ACP server binary (`agy_acp_server`). |
|
acp/client/claudecode
Package claudecode provides an ACP client for Claude Code via the @agentclientprotocol/claude-agent-acp subprocess adapter.
|
Package claudecode provides an ACP client for Claude Code via the @agentclientprotocol/claude-agent-acp subprocess adapter. |
|
acp/client/copilot
Package copilot provides an ACP client for GitHub Copilot CLI via its `copilot --acp --stdio` subprocess.
|
Package copilot provides an ACP client for GitHub Copilot CLI via its `copilot --acp --stdio` subprocess. |
|
acp/client/cursor
Package cursor provides an ACP client for Cursor CLI via its `agent acp` subprocess (https://cursor.com/docs/cli/acp).
|
Package cursor provides an ACP client for Cursor CLI via its `agent acp` subprocess (https://cursor.com/docs/cli/acp). |
|
acp/client/gemini
Package gemini provides an ACP client for Google Gemini CLI via the Gemini CLI subprocess adapter.
|
Package gemini provides an ACP client for Google Gemini CLI via the Gemini CLI subprocess adapter. |
|
acp/server/adapter
Package adapter translates pi runtime (ADK) events into ACP session updates.
|
Package adapter translates pi runtime (ADK) events into ACP session updates. |
|
agent
Package agent sets up the ADK Go agent loop with tools, system prompt, and runner for the pi-go coding agent.
|
Package agent sets up the ADK Go agent loop with tools, system prompt, and runner for the pi-go coding agent. |
|
atif
Package atif provides ATIF (Agent Trajectory Interchange Format) v1.6 export support.
|
Package atif provides ATIF (Agent Trajectory Interchange Format) v1.6 export support. |
|
attest
Package attest verifies the Sigstore artifact attestations that pi-go's release workflow publishes.
|
Package attest verifies the Sigstore artifact attestations that pi-go's release workflow publishes. |
|
auth
Package auth implements OAuth PKCE and device-code flows for SSO login.
|
Package auth implements OAuth PKCE and device-code flows for SSO login. |
|
autocompact
Package autocompact installs pi-go's two-stage context compaction as a pre-turn hook: shed superseded tool results at the lower threshold, summarize at the upper one.
|
Package autocompact installs pi-go's two-stage context compaction as a pre-turn hook: shed superseded tool results at the lower threshold, summarize at the upper one. |
|
browser
Package browser opens URLs in whatever browser the user can actually see.
|
Package browser opens URLs in whatever browser the user can actually see. |
|
codex
Package codex implements a minimal client for the Codex CLI's app-server, which speaks JSON-RPC 2.0 over newline-delimited JSON on stdin/stdout.
|
Package codex implements a minimal client for the Codex CLI's app-server, which speaks JSON-RPC 2.0 over newline-delimited JSON on stdin/stdout. |
|
ctxwindow
Package ctxwindow resolves the context window of the model a session runs against, which is the denominator every compaction threshold is measured in.
|
Package ctxwindow resolves the context window of the model a session runs against, which is the denominator every compaction threshold is measured in. |
|
eval
Package eval measures a real /run end-to-end: the ATIF trajectories it wrote, the subagent concurrency it reached, and how efficiently its tools were used.
|
Package eval measures a real /run end-to-end: the ATIF trajectories it wrote, the subagent concurrency it reached, and how efficiently its tools were used. |
|
eval/scenarios
Package scenarios is the tool-coverage eval suite for the pi coding agent: one declarative scenario per tool family, each seeding a workspace and asking for something a competent agent does with specific tools, plus deterministic assertions over the trajectory and filesystem.
|
Package scenarios is the tool-coverage eval suite for the pi coding agent: one declarative scenario per tool family, each seeding a workspace and asking for something a competent agent does with specific tools, plus deterministic assertions over the trajectory and filesystem. |
|
extension
Package extension provides hooks (before/after tool call), skill loading, and MCP tool integration for the pi-go agent.
|
Package extension provides hooks (before/after tool call), skill loading, and MCP tool integration for the pi-go agent. |
|
gitroot
Package gitroot resolves the repository root that a sandbox should cover.
|
Package gitroot resolves the repository root that a sandbox should cover. |
|
guardrail
Package guardrail tracks daily token usage and enforces limits.
|
Package guardrail tracks daily token usage and enforces limits. |
|
httplog
Package httplog carries raw HTTP request/response traces from the provider transports to whichever sinks are active — the JSONL session log, OpenTelemetry span events, or both.
|
Package httplog carries raw HTTP request/response traces from the provider transports to whichever sinks are active — the JSONL session log, OpenTelemetry span events, or both. |
|
jsonrpc
Package jsonrpc implements a Unix socket JSON-RPC server for pi-go.
|
Package jsonrpc implements a Unix socket JSON-RPC server for pi-go. |
|
logger
Package logger provides session logging for pi-go.
|
Package logger provides session logging for pi-go. |
|
mermaid
Package mermaid renders Mermaid diagram syntax as Unicode (or ASCII) terminal art.
|
Package mermaid renders Mermaid diagram syntax as Unicode (or ASCII) terminal art. |
|
mermaid/diagram
Package diagram provides specialized diagram renderers that bypass the generic graph layout pipeline.
|
Package diagram provides specialized diagram renderers that bypass the generic graph layout pipeline. |
|
mermaid/graph
Package graph defines the core types for representing parsed Mermaid flowcharts.
|
Package graph defines the core types for representing parsed Mermaid flowcharts. |
|
mermaid/layout
grid.go implements the grid-based layout algorithm for flowchart diagrams.
|
grid.go implements the grid-based layout algorithm for flowchart diagrams. |
|
mermaid/parser
Package parser implements Mermaid diagram parsers.
|
Package parser implements Mermaid diagram parsers. |
|
mermaid/routing
Package routing provides A* pathfinding and edge routing for grid-based layouts.
|
Package routing provides A* pathfinding and edge routing for grid-based layouts. |
|
mermaid/textwidth
Package textwidth measures how many terminal columns a string occupies.
|
Package textwidth measures how many terminal columns a string occupies. |
|
notice
Package notice carries short, user-facing messages raised while pi-go starts up or reconfigures itself — a skipped MCP server, a rerouted docs source, a blocked skill, an OAuth re-login.
|
Package notice carries short, user-facing messages raised while pi-go starts up or reconfigures itself — a skipped MCP server, a rerouted docs source, a blocked skill, an OAuth re-login. |
|
otel
Package otel provides lightweight OpenTelemetry setup for pi-go, driven entirely by environment variables sourced from ~/.pi-go/.env so secrets never appear in the process environment.
|
Package otel provides lightweight OpenTelemetry setup for pi-go, driven entirely by environment variables sourced from ~/.pi-go/.env so secrets never appear in the process environment. |
|
pirpc
Package pirpc implements the stdio NDJSON RPC protocol spoken by upstream pi's `--mode rpc`, so that the `pi-acp` ACP adapter (https://github.com/svkozak/pi-acp) can drive pi-go unmodified.
|
Package pirpc implements the stdio NDJSON RPC protocol spoken by upstream pi's `--mode rpc`, so that the `pi-acp` ACP adapter (https://github.com/svkozak/pi-acp) can drive pi-go unmodified. |
|
procs
Package procs runs child processes so that canceling them actually stops them.
|
Package procs runs child processes so that canceling them actually stops them. |
|
provider
Package provider — Anthropic prompt-cache breakpoint helpers.
|
Package provider — Anthropic prompt-cache breakpoint helpers. |
|
ratelimit
Package ratelimit paces outbound provider requests so pi-go stays inside a published quota instead of discovering it by being rejected.
|
Package ratelimit paces outbound provider requests so pi-go stays inside a published quota instead of discovering it by being rejected. |
|
retry
Package retry classifies provider failures as retryable or terminal and paces the re-attempts.
|
Package retry classifies provider failures as retryable or terminal and paces the re-attempts. |
|
session
Package session — branch.go implements session branching.
|
Package session — branch.go implements session branching. |
|
sop/exec
Package exec supplies the executable NodeFactory the SOP compiler has been waiting for.
|
Package exec supplies the executable NodeFactory the SOP compiler has been waiting for. |
|
sop/specdoc
Package specdoc parses the Markdown artifacts a /plan session produces.
|
Package specdoc parses the Markdown artifacts a /plan session produces. |
|
sop/validate
Package validate checks the artifacts a /plan session produces against a machine-readable contract.
|
Package validate checks the artifacts a /plan session produces against a machine-readable contract. |
|
testenv
Package testenv holds small helpers that keep tests portable across operating systems.
|
Package testenv holds small helpers that keep tests portable across operating systems. |
|
tui
Package tui implements the interactive terminal UI using Bubble Tea v2.
|
Package tui implements the interactive terminal UI using Bubble Tea v2. |
|
tui/refs
Package refs implements context reference expansion for the TUI.
|
Package refs implements context reference expansion for the TUI. |
|
voice
Package voice holds the provider-neutral contracts for pi's live voice sessions in the web server.
|
Package voice holds the provider-neutral contracts for pi's live voice sessions in the web server. |
|
voicegemini
Package voicegemini implements the Gemini Live half of pi's web voice session: key/model verification, the BidiGenerateContent wire shapes, and the setup message the server-side relay opens every session with.
|
Package voicegemini implements the Gemini Live half of pi's web voice session: key/model verification, the BidiGenerateContent wire shapes, and the setup message the server-side relay opens every session with. |
|
webserver
Package webserver provides a web-based terminal interface for pi-go.
|
Package webserver provides a web-based terminal interface for pi-go. |
|
Package piagent embeds pi-go's coding agent in a third-party Go program.
|
Package piagent embeds pi-go's coding agent in a third-party Go program. |
|
Package pimodels builds LLM clients for the providers pi-go supports, for use from outside pi-go.
|
Package pimodels builds LLM clients for the providers pi-go supports, for use from outside pi-go. |
Click to show internal directories.
Click to hide internal directories.
