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.
|
pi: api/anthropic-messages.ts. |
|
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/generateimagemodels
command
Go source emitter for ai/image_models_generated.go.
|
Go source emitter for ai/image_models_generated.go. |
|
scripts/generatemodels
command
pi: generate-models.ts — the amazon-bedrock block of loadModelsDevData (the P2-T2 bedrock batch).
|
pi: generate-models.ts — the amazon-bedrock block of loadModelsDevData (the P2-T2 bedrock batch). |
|
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/deferred-tools.ts.
|
pi: utils/deferred-tools.ts. |
|
Package client corresponds to pi's packages/client/src.
|
Package client corresponds to pi's packages/client/src. |
|
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
Package exporthtml corresponds to pi's packages/coding-agent/src/core/export-html.
|
Package exporthtml corresponds to pi's packages/coding-agent/src/core/export-html. |
|
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). |
|
Package evals corresponds to pi's packages/evals/src.
|
Package evals corresponds to pi's packages/evals/src. |
|
Package protocol corresponds to pi's packages/protocol/src.
|
Package protocol corresponds to pi's packages/protocol/src. |
|
cbor
Package cbor corresponds to pi's packages/protocol/src/cbor.
|
Package cbor corresponds to pi's packages/protocol/src/cbor. |
|
Package server corresponds to pi's packages/server/src.
|
Package server corresponds to pi's packages/server/src. |
|
transports
Package transports corresponds to pi's packages/server/src/transports.
|
Package transports corresponds to pi's packages/server/src/transports. |
|
Package sessionbackends corresponds to pi's packages/session-backends.
|
Package sessionbackends corresponds to pi's packages/session-backends. |
|
sqlitenode
Package sqlitenode corresponds to pi's packages/session-backends/sqlite-node.
|
Package sqlitenode corresponds to pi's packages/session-backends/sqlite-node. |
|
sqlitenode/migrations
Package migrations corresponds to pi's packages/session-backends/sqlite-node/migrations.
|
Package migrations corresponds to pi's packages/session-backends/sqlite-node/migrations. |
|
sqlitenode/storage
Package storage corresponds to pi's packages/session-backends/sqlite-node/storage.
|
Package storage corresponds to pi's packages/session-backends/sqlite-node/storage. |
|
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.