Directories
¶
| Path | Synopsis |
|---|---|
|
pi: agent.ts — stateful wrapper around the low-level agent loop.
|
pi: agent.ts — stateful wrapper around the low-level agent loop. |
|
harness
pi: harness/context.ts — telemetry-context propagation helpers.
|
pi: harness/context.ts — telemetry-context propagation helpers. |
|
harness/agentharness
Package agentharness corresponds to pi's packages/agent/src/harness/agent-harness.ts.
|
Package agentharness corresponds to pi's packages/agent/src/harness/agent-harness.ts. |
|
harness/compaction
pi: src/harness/compaction/branch-summarization.ts — summarization of abandoned session branches before navigation.
|
pi: src/harness/compaction/branch-summarization.ts — summarization of abandoned session branches before navigation. |
|
harness/env
Package env corresponds to pi's packages/agent/src/harness/env.
|
Package env corresponds to pi's packages/agent/src/harness/env. |
|
harness/reducer
Package reducer corresponds to pi's packages/agent/src/harness/reducer.ts — pure lane-state reconstruction and record-log validation over bounded recovery slices.
|
Package reducer corresponds to pi's packages/agent/src/harness/reducer.ts — pure lane-state reconstruction and record-log validation over bounded recovery slices. |
|
harness/session
pi: harness/session/commit.ts — transaction write materialization and validation shared by every storage backend.
|
pi: harness/session/commit.ts — transaction write materialization and validation shared by every storage backend. |
|
harness/session/jsonl
pi: harness/session/jsonl/codec.ts — header parsing/validation for both the current format-4 header and the legacy v3 session header.
|
pi: harness/session/jsonl/codec.ts — header parsing/validation for both the current format-4 header and the legacy v3 session header. |
|
harness/session/testing
pi: harness/session/testing/conformance/session-repo.ts — SessionRepo conformance case groups (lifecycle, ownership, messages, forks, fork coordination).
|
pi: harness/session/testing/conformance/session-repo.ts — SessionRepo conformance case groups (lifecycle, ownership, messages, forks, fork coordination). |
|
harness/tools
pi: src/harness/tools/bash.ts — the bash tool.
|
pi: src/harness/tools/bash.ts — the bash tool. |
|
harness/utils
Package utils corresponds to pi's packages/agent/src/harness/utils.
|
Package utils corresponds to pi's packages/agent/src/harness/utils. |
|
search
Package search ports pi's packages/agent/src/search — the session search service contract.
|
Package search ports pi's packages/agent/src/search — the session search service contract. |
|
pi: src/compat.ts — the api-provider registry (registerApiProvider / getApiProvider / getApiProviders / unregisterApiProviders / clearApiProviders / registerBuiltInApiProviders).
|
pi: src/compat.ts — the api-provider registry (registerApiProvider / getApiProvider / getApiProviders / unregisterApiProviders / clearApiProviders / registerBuiltInApiProviders). |
|
api
pi: api/anthropic-messages.ts — the workload identity federation half of the createClient path (#10242).
|
pi: api/anthropic-messages.ts — the workload identity federation half of the createClient path (#10242). |
|
auth
pi: auth/oauth/device-code.ts.
|
pi: auth/oauth/device-code.ts. |
|
compat
Package compat corresponds to pi's packages/ai/src/compat.
|
Package compat corresponds to pi's packages/ai/src/compat. |
|
providers
pi: providers/all.ts.
|
pi: providers/all.ts. |
|
scripts/generatemodels
command
ai/scripts/generatemodels/ai_gateway_pricing (pi: packages/ai/scripts/ai-gateway-pricing.ts, S17 943a10e74) — converts Vercel AI Gateway pricing to ModelCost.
|
ai/scripts/generatemodels/ai_gateway_pricing (pi: packages/ai/scripts/ai-gateway-pricing.ts, S17 943a10e74) — converts Vercel AI Gateway pricing to ModelCost. |
|
types
Package types is the canonical home of pi's message model, stream event protocol, provider/model/compat types, and image-generation types (pi: src/types.ts).
|
Package types is the canonical home of pi's message model, stream event protocol, provider/model/compat types, and image-generation types (pi: src/types.ts). |
|
utils
pi: utils/diagnostics.ts.
|
pi: utils/diagnostics.ts. |
|
cmd
|
|
|
pig
command
pi: src/main.ts + src/cli.ts — the coding agent CLI entry points.
|
pi: src/main.ts + src/cli.ts — the coding agent CLI entry points. |
|
pi: src/config.ts — install/package detection, package asset paths, app config constants, and user config paths.
|
pi: src/config.ts — install/package detection, package asset paths, app config constants, and user config paths. |
|
assets
Package assets embeds the coding-agent binary assets (pi: files shipped next to the Bun-compiled binary — theme/ etc.; pig embeds them so the single static binary is self-contained).
|
Package assets embeds the coding-agent binary assets (pi: files shipped next to the Bun-compiled binary — theme/ etc.; pig embeds them so the single static binary is self-contained). |
|
cli
pi: src/cli/args.ts — CLI argument parsing and help display.
|
pi: src/cli/args.ts — CLI argument parsing and help display. |
|
client
Package client corresponds to pi's packages/coding-agent/src/client.
|
Package client corresponds to pi's packages/coding-agent/src/client. |
|
core
pi: src/core/agent-session.ts — AgentSession, the core abstraction for agent lifecycle and session management shared between all run modes (interactive, print, rpc).
|
pi: src/core/agent-session.ts — AgentSession, the core abstraction for agent lifecycle and session management shared between all run modes (interactive, print, rpc). |
|
core/compaction
Package compaction corresponds to pi's packages/coding-agent/src/core/compaction.
|
Package compaction corresponds to pi's packages/coding-agent/src/core/compaction. |
|
core/exporthtml
ansi_to_html.go (pi: core/export-html/ansi-to-html.ts, v0.86.0)
|
ansi_to_html.go (pi: core/export-html/ansi-to-html.ts, v0.86.0) |
|
core/tools
pi: src/core/tools/bash.ts — the coding-agent shell tool (shared by bash and powershell via createShellToolDefinition).
|
pi: src/core/tools/bash.ts — the coding-agent shell tool (shared by bash and powershell via createShellToolDefinition). |
|
extensions
Package extensions corresponds to pi's packages/coding-agent/src/extensions.
|
Package extensions corresponds to pi's packages/coding-agent/src/extensions. |
|
modes
Package modes corresponds to pi's packages/coding-agent/src/modes.
|
Package modes corresponds to pi's packages/coding-agent/src/modes. |
|
modes/interactive
chat_viewport.go (pi: modes/interactive/chat-viewport.ts, v0.85.1) — shared fullscreen transcript and fixed input-dock layout.
|
chat_viewport.go (pi: modes/interactive/chat-viewport.ts, v0.85.1) — shared fullscreen transcript and fixed input-dock layout. |
|
modes/interactive/components
armin.go (pi: components/armin.ts) — "Armin says hi!" easter egg with animated half-block XBM art and 7 random effects.
|
armin.go (pi: components/armin.ts) — "Armin says hi!" easter egg with animated half-block XBM art and 7 random effects. |
|
modes/interactive/theme
fs_watch.go (pi: src/modes/interactive/theme — theme file watching).
|
fs_watch.go (pi: src/modes/interactive/theme — theme file watching). |
|
modes/rpc
Package rpc corresponds to pi's packages/coding-agent/src/modes/rpc.
|
Package rpc corresponds to pi's packages/coding-agent/src/modes/rpc. |
|
server
Package server corresponds to pi's packages/coding-agent/src/server.
|
Package server corresponds to pi's packages/coding-agent/src/server. |
|
utils
pi: src/utils/ansi.ts — strip ANSI escape sequences.
|
pi: src/utils/ansi.ts — strip ANSI escape sequences. |
|
Shared vocabulary constants (pi: module-level consts consumed by both the coding-agent CLI and core; pig relocates them here because cli imports core, and keeping them in cli would make core import cli and close a cycle).
|
Shared vocabulary constants (pi: module-level consts consumed by both the coding-agent CLI and core; pig relocates them here because cli imports core, and keeping them in cli would make core import cli and close a cycle). |
|
integrations
|
|
|
mcp
Package mcp implements a native MCP (Model Context Protocol) client layer for pig.
|
Package mcp implements a native MCP (Model Context Protocol) client layer for pig. |
|
scripts
|
|
|
render-logo
command
Command render-logo renders a simple rect-based SVG (pixel-art logos) to PNG.
|
Command render-logo renders a simple rect-based SVG (pixel-art logos) to PNG. |
|
Package telemetry corresponds to pi's packages/telemetry/src.
|
Package telemetry corresponds to pi's packages/telemetry/src. |
|
tui/alt_screen_flash.go (pi: packages/tui/src/components/alt-screen-flash.ts)
|
tui/alt_screen_flash.go (pi: packages/tui/src/components/alt-screen-flash.ts) |
|
grokmermaid
Ported from pi node_modules/grok-mermaid/src/ansi.ts (grok-mermaid v0.2.2, Apache-2.0) as part of T5b-4.
|
Ported from pi node_modules/grok-mermaid/src/ansi.ts (grok-mermaid v0.2.2, Apache-2.0) as part of T5b-4. |
|
scripts/generatetables
command
tui/scripts/generatetables — regenerates tui/tables_generated.go.
|
tui/scripts/generatetables — regenerates tui/tables_generated.go. |
|
utils/panic_log.go — pig panic containment (pig-internal; no pi counterpart).
|
utils/panic_log.go — pig panic containment (pig-internal; no pi counterpart). |
Click to show internal directories.
Click to hide internal directories.