internal/

directory
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT

Directories

Path Synopsis
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`).
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.
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.
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).
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.
server/adapter
Package adapter translates pi runtime (ADK) events into ACP session updates.
Package adapter translates pi runtime (ADK) events into ACP session updates.
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.
Package atif provides ATIF (Agent Trajectory Interchange Format) v1.6 export support.
Package atif provides ATIF (Agent Trajectory Interchange Format) v1.6 export support.
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.
Package auth implements OAuth PKCE and device-code flows for SSO login.
Package auth implements OAuth PKCE and device-code flows for SSO login.
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.
Package browser opens URLs in whatever browser the user can actually see.
Package browser opens URLs in whatever browser the user can actually see.
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.
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.
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.
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.
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.
Package gitroot resolves the repository root that a sandbox should cover.
Package gitroot resolves the repository root that a sandbox should cover.
Package guardrail tracks daily token usage and enforces limits.
Package guardrail tracks daily token usage and enforces limits.
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.
Package jsonrpc implements a Unix socket JSON-RPC server for pi-go.
Package jsonrpc implements a Unix socket JSON-RPC server for pi-go.
Package kagent implements the parts of the kagent runtime contract that a non-ADK harness must satisfy to run behind the kagent A2A gateway.
Package kagent implements the parts of the kagent runtime contract that a non-ADK harness must satisfy to run behind the kagent A2A gateway.
Package logger provides session logging for pi-go.
Package logger provides session logging for pi-go.
Package mermaid renders Mermaid diagram syntax as Unicode (or ASCII) terminal art.
Package mermaid renders Mermaid diagram syntax as Unicode (or ASCII) terminal art.
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.
graph
Package graph defines the core types for representing parsed Mermaid flowcharts.
Package graph defines the core types for representing parsed Mermaid flowcharts.
layout
grid.go implements the grid-based layout algorithm for flowchart diagrams.
grid.go implements the grid-based layout algorithm for flowchart diagrams.
parser
Package parser implements Mermaid diagram parsers.
Package parser implements Mermaid diagram parsers.
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.
textwidth
Package textwidth measures how many terminal columns a string occupies.
Package textwidth measures how many terminal columns a string occupies.
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.
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.
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.
Package plugin installs and tracks pi-go plugins — bundles of skills published through a Claude Code-compatible plugin marketplace.
Package plugin installs and tracks pi-go plugins — bundles of skills published through a Claude Code-compatible plugin marketplace.
Package procs runs child processes so that canceling them actually stops them.
Package procs runs child processes so that canceling them actually stops them.
Package provider — Anthropic prompt-cache breakpoint helpers.
Package provider — Anthropic prompt-cache breakpoint helpers.
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.
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.
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.
specdoc
Package specdoc parses the Markdown artifacts a /plan session produces.
Package specdoc parses the Markdown artifacts a /plan session produces.
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.
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.
refs
Package refs implements context reference expansion for the TUI.
Package refs implements context reference expansion for the TUI.
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.
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.
Package webserver provides a web-based terminal interface for pi-go.
Package webserver provides a web-based terminal interface for pi-go.

Jump to

Keyboard shortcuts

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