Directories
¶
| Path | Synopsis |
|---|---|
|
Package bodyreadhook lets a test fixture synchronize with a provider's HTTP connection reads.
|
Package bodyreadhook lets a test fixture synchronize with a provider's HTTP connection reads. |
|
readbarrier
Package readbarrier synchronizes a test fixture server with the owned provider transport's socket reads.
|
Package readbarrier synchronizes a test fixture server with the owned provider transport's socket reads. |
|
Package boundarywire lets the subprocess handlers of one turn_end or agent_before_settle dispatch share the encoding of the context preview.
|
Package boundarywire lets the subprocess handlers of one turn_end or agent_before_settle dispatch share the encoding of the context preview. |
|
Package buildprogress reports product-neutral diagnostics for explicit builds.
|
Package buildprogress reports product-neutral diagnostics for explicit builds. |
|
Package bytesize parses the byte sizes PiG commands accept, such as 5GiB.
|
Package bytesize parses the byte sizes PiG commands accept, such as 5GiB. |
|
Package changeobservers is the list of callbacks an owner of replicated state runs after the state changes, so the extension host can push it to the runtimes that replicate it.
|
Package changeobservers is the list of callbacks an owner of replicated state runs after the state changes, so the extension host can push it to the runtimes that replicate it. |
|
Waiting for a child's output pipes after it exits.
|
Waiting for a child's output pipes after it exits. |
|
chord
|
|
|
chordjson
Package chordjson ports packages/chord/src/json.ts: strict-JSON checking and alias-free copying.
|
Package chordjson ports packages/chord/src/json.ts: strict-JSON checking and alias-free copying. |
|
coding
|
|
|
pigidentity
Package pigidentity holds the product identity PiG sends to services in place of Pi's.
|
Package pigidentity holds the product identity PiG sends to services in place of Pi's. |
|
pigversion
Package pigversion provides PiG and upstream Pi version pins to packages that cannot import coding.
|
Package pigversion provides PiG and upstream Pi version pins to packages that cannot import coding. |
|
Model picker auth-filter scope toggle.
|
Model picker auth-filter scope toggle. |
|
compaction
Ports packages/coding-agent/src/core/compaction/branch-summarization.ts Branch summarization for tree navigation.
|
Ports packages/coding-agent/src/core/compaction/branch-summarization.ts Branch summarization for tree navigation. |
|
configschema
Package configschema renders the JSON Schema artifacts of Pi's configuration files (models.json, settings.json, keybindings.json and themes) from Go schema trees.
|
Package configschema renders the JSON Schema artifacts of Pi's configuration files (models.json, settings.json, keybindings.json and themes) from Go schema trees. |
|
export
Ports packages/coding-agent/src/core/export-html/ansi-to-html.ts
|
Ports packages/coding-agent/src/core/export-html/ansi-to-html.ts |
|
frontmatter
Package frontmatter parses YAML frontmatter blocks from markdown files.
|
Package frontmatter parses YAML frontmatter blocks from markdown files. |
|
llama
Package llama ports Pi's built-in llama.cpp extension (packages/coding-agent/src/extensions/llama/): the router HTTP/SSE client, Hugging Face search and download, the dynamic provider, the manager UI, and the /llama command.
|
Package llama ports Pi's built-in llama.cpp extension (packages/coding-agent/src/extensions/llama/): the router HTTP/SSE client, Hugging Face search and download, the dynamic provider, the manager UI, and the /llama command. |
|
prompts
Package prompts builds the default coding-agent system prompt.
|
Package prompts builds the default coding-agent system prompt. |
|
timings
Package timings is the startup timing instrumentation Pi enables with PI_TIMING=1.
|
Package timings is the startup timing instrumentation Pi enables with PI_TIMING=1. |
|
tools
tools/bash_executor.go: user bash execution (!cmd, RPC bash, SDK ExecuteBash).
|
tools/bash_executor.go: user bash execution (!cmd, RPC bash, SDK ExecuteBash). |
|
Package compactiontypes holds the compaction types that both the extension API and the compaction pipeline name: Pi's CompactionPreparation, CompactionSettings and FileOperations (core/compaction).
|
Package compactiontypes holds the compaction types that both the extension API and the compaction pipeline name: Pi's CompactionPreparation, CompactionSettings and FileOperations (core/compaction). |
|
Package configroot resolves PiG's config root, the directory PiG keeps its settings, documentation bundle and state under.
|
Package configroot resolves PiG's config root, the directory PiG keeps its settings, documentation bundle and state under. |
|
Package configvalue mirrors upstream pi's packages/coding-agent/src/core/resolve-config-value.ts (v0.78.1).
|
Package configvalue mirrors upstream pi's packages/coding-agent/src/core/resolve-config-value.ts (v0.78.1). |
|
Package contentdirs keeps content-addressed directories under a shared config root: one directory per build of an embedded bundle, named <base>-<hash>.
|
Package contentdirs keeps content-addressed directories under a shared config root: one directory per build of an embedded bundle, named <base>-<hash>. |
|
Package crossspawn starts a program the way upstream's spawnProcess does (coding-agent utils/child-process.ts): Node's spawn on Unix, and on Windows the cross-spawn package, which checks shebang interpreters before selecting direct execution or escaped cmd.exe execution for command shims.
|
Package crossspawn starts a program the way upstream's spawnProcess does (coding-agent utils/child-process.ts): Node's spawn on Unix, and on Windows the cross-spawn package, which checks shebang interpreters before selecting direct execution or escaped cmd.exe execution for command shims. |
|
Package ctxowner joins the lifetime of one context with the request values of another.
|
Package ctxowner joins the lifetime of one context with the request values of another. |
|
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
|
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries. |
|
Package entered is the shared mechanism that keeps upstream's start and resume order across goroutines.
|
Package entered is the shared mechanism that keeps upstream's start and resume order across goroutines. |
|
Package evals ports Pi's documentation eval tooling: the task plan, the comparison command and its Docker runner, the paired comparison report, the harness's prompt and environment helpers, and the fixtures the evals use.
|
Package evals ports Pi's documentation eval tooling: the task plan, the comparison command and its Docker runner, the paired comparison report, the harness's prompt and environment helpers, and the fixtures the evals use. |
|
bridge
Package bridge connects the eval harness to the extension that runs inside the agent process under test.
|
Package bridge connects the eval harness to the extension that runs inside the agent process under test. |
|
evalsuites
Package evalsuites holds the eval suites of Pi's packages/evals/evals directory, written against the PiG Session harness.
|
Package evalsuites holds the eval suites of Pi's packages/evals/evals directory, written against the PiG Session harness. |
|
Package eventwire lets the subprocess handlers of one event dispatch share the encoding of an event that no handler changed.
|
Package eventwire lets the subprocess handlers of one event dispatch share the encoding of an event that no handler changed. |
|
Package filelock is the advisory file lock the extension cache and the SDK staging take.
|
Package filelock is the advisory file lock the extension cache and the SDK staging take. |
|
Package frontendpack holds the frontend member fused into a Piglet Binary (D91).
|
Package frontendpack holds the frontend member fused into a Piglet Binary (D91). |
|
Package fspublish makes a file available at a new path without replacing a file that is already there: a fully written stage at its final path (Publish), or an existing file at a second path (Duplicate).
|
Package fspublish makes a file available at a new path without replacing a file that is already there: a fully written stage at its final path (Publish), or an existing file at a second path (Duplicate). |
|
Package fsretry retries file system operations that Windows refuses for a short time while another process holds a file open.
|
Package fsretry retries file system operations that Windows refuses for a short time while another process holds a file open. |
|
Package gcpolicy is PiG's GC target for print, json and rpc runs.
|
Package gcpolicy is PiG's GC target for print, json and rpc runs. |
|
Package goroutineid identifies the calling goroutine for synchronous reentry checks.
|
Package goroutineid identifies the calling goroutine for synchronous reentry checks. |
|
Package handleryield carries, through an extension event's dispatch context, the call a host makes when a handler stops running synchronously.
|
Package handleryield carries, through an extension event's dispatch context, the call a host makes when a handler stops running synchronously. |
|
Package ignorerules applies .gitignore, .ignore, and .fdignore files the way upstream Pi's package manager does when it discovers package resources.
|
Package ignorerules applies .gitignore, .ignore, and .fdignore files the way upstream Pi's package manager does when it discovers package resources. |
|
Image resize + re-encode policy for CLI/LLM image attachments, plus the EXIF orientation reader (upstream exif-orientation.ts).
|
Image resize + re-encode policy for CLI/LLM image attachments, plus the EXIF orientation reader (upstream exif-orientation.ts). |
|
Package installchange tells a running pig that the files it runs from changed on disk.
|
Package installchange tells a running pig that the files it runs from changed on disk. |
|
Package jsarray implements JavaScript Array semantics that ported code observes.
|
Package jsarray implements JavaScript Array semantics that ported code observes. |
|
Package jsclock is the process clock of JavaScript's Date.now() and performance.now(), with a replaceable source.
|
Package jsclock is the process clock of JavaScript's Date.now() and performance.now(), with a replaceable source. |
|
Package jsdiff ports the parts of the npm `diff` package (jsdiff 8.0.4) that Pi calls: diffWords, which Pi's renderDiff uses for intra-line highlighting, and diffLines, behind the edit tool's display diff and patch.
|
Package jsdiff ports the parts of the npm `diff` package (jsdiff 8.0.4) that Pi calls: diffWords, which Pi's renderDiff uses for intra-line highlighting, and diffLines, behind the edit tool's display diff and patch. |
|
Package jsjson reads JSON the way JSON.parse and property access do where encoding/json differs.
|
Package jsjson reads JSON the way JSON.parse and property access do where encoding/json differs. |
|
Package jsloop holds the ordering primitives that stand in for the one JavaScript thread Pi runs on.
|
Package jsloop holds the ordering primitives that stand in for the one JavaScript thread Pi runs on. |
|
Package jsmath implements ECMAScript Math functions with the results V8 returns, where Go's math package rounds differently.
|
Package jsmath implements ECMAScript Math functions with the results V8 returns, where Go's math package rounds differently. |
|
Package jsnumber implements ECMAScript numeric conversion and serialization for values that arrive as JSON.
|
Package jsnumber implements ECMAScript numeric conversion and serialization for values that arrive as JSON. |
|
Package jsonparse reports ECMAScript JSON.parse syntax errors for rejected JSON text.
|
Package jsonparse reports ECMAScript JSON.parse syntax errors for rejected JSON text. |
|
Package jsonstringify implements ECMAScript serialization for parsed JSON data.
|
Package jsonstringify implements ECMAScript serialization for parsed JSON data. |
|
Package jsonvalid reports whether a byte slice is one valid JSON text, with the verdict of the encoding/json scanner that session files were first checked with: the RFC 8259 grammar, no control character in a string, any \u escape (a lone surrogate included), bytes of any encoding inside a string, and nesting of at most 10,000 levels.
|
Package jsonvalid reports whether a byte slice is one valid JSON text, with the verdict of the encoding/json scanner that session files were first checked with: the RFC 8259 grammar, no control character in a string, any \u escape (a lone surrogate included), bytes of any encoding inside a string, and nesting of at most 10,000 levels. |
|
Package jsparity writes JSON exactly as JavaScript's JSON.stringify writes it.
|
Package jsparity writes JSON exactly as JavaScript's JSON.stringify writes it. |
|
Package jsstring preserves JavaScript UTF-16 units at Go string boundaries.
|
Package jsstring preserves JavaScript UTF-16 units at Go string boundaries. |
|
Package latex renders a basic subset of LaTeX math as terminal-friendly Unicode text.
|
Package latex renders a basic subset of LaTeX math as terminal-friendly Unicode text. |
|
gentables
command
Command gentables extracts the static lookup tables from upstream pi's tui/src/latex.ts into Go source (symbols.go), so the LaTeX->Unicode port never hand-transcribes ~230 symbol rows.
|
Command gentables extracts the static lookup tables from upstream pi's tui/src/latex.ts into Go source (symbols.go), so the LaTeX->Unicode port never hand-transcribes ~230 symbol rows. |
|
Package lazyregexp compiles a package-level regular expression when it is first used instead of when its package initializes.
|
Package lazyregexp compiles a package-level regular expression when it is first used instead of when its package initializes. |
|
Package lineadmission reports the moment an ordered queue fixes an operation's position.
|
Package lineadmission reports the moment an ordered queue fixes an operation's position. |
|
Package linkerexec starts programs on Android builds that forbid executing files in an app's data directory.
|
Package linkerexec starts programs on Android builds that forbid executing files in an app's data directory. |
|
Package lockorder is a lock-acquisition-order checker for instrumented test builds.
|
Package lockorder is a lock-acquisition-order checker for instrumented test builds. |
|
Package managementhttp ports upstream coding-agent utils/management-http.ts: a bounded immediate retry for idempotent management requests (tool downloads, release lookups).
|
Package managementhttp ports upstream coding-agent utils/management-http.ts: a bounded immediate retry for idempotent management requests (tool downloads, release lookups). |
|
Package mermaid renders Mermaid diagrams as Unicode box-drawing art for terminals.
|
Package mermaid renders Mermaid diagrams as Unicode box-drawing art for terminals. |
|
Package minimatch ports minimatch 10.2.6 (the glob matcher Pi uses for model scopes and package resource filters): brace expansion, `!` negation, `**`, character classes, extglobs and dot handling.
|
Package minimatch ports minimatch 10.2.6 (the glob matcher Pi uses for model scopes and package resource filters): brace expansion, `!` negation, `**`, character classes, extglobs and dot handling. |
|
Package nativeplatform provides operating-system queries and native clipboard transfers.
|
Package nativeplatform provides operating-system queries and native clipboard transfers. |
|
Package nodebase64 reads base64 text as Node's Buffer.from(text, "base64") does.
|
Package nodebase64 reads base64 text as Node's Buffer.from(text, "base64") does. |
|
Package nodeerrno maps operating-system errors to the error codes, descriptions and errnos Node reports for them.
|
Package nodeerrno maps operating-system errors to the error codes, descriptions and errnos Node reports for them. |
|
Package nodefs ports the fs contracts Pi relies on: the directory order of fs.readdirSync and fs.existsSync.
|
Package nodefs ports the fs contracts Pi relies on: the directory order of fs.readdirSync and fs.existsSync. |
|
Package nodepath ports the parts of Node's path module Pi resolves file paths with.
|
Package nodepath ports the parts of Node's path module Pi resolves file paths with. |
|
Package nodesemver translates the npm semver package (semver 7.8.5) calls Pi's package manager makes.
|
Package nodesemver translates the npm semver package (semver 7.8.5) calls Pi's package manager makes. |
|
Package nodespawn builds the Windows command line that Node's child_process.spawn(file, args) passes to CreateProcessW when neither shell nor windowsVerbatimArguments is set.
|
Package nodespawn builds the Windows command line that Node's child_process.spawn(file, args) passes to CreateProcessW when neither shell nor windowsVerbatimArguments is set. |
|
Package nodeurl ports the Node URL host/path handling and fileURLToPath semantics used by PiG.
|
Package nodeurl ports the Node URL host/path handling and fileURLToPath semantics used by PiG. |
|
Package npmpublish runs `npm publish` for Packages and Piglet source on the author's behalf.
|
Package npmpublish runs `npm publish` for Packages and Piglet source on the author's behalf. |
|
npmtest
Package npmtest is a stand-in npm and registry for tests of npm publication.
|
Package npmtest is a stand-in npm and registry for tests of npm publication. |
|
Package orderedjson holds JSON objects that keep their keys in the order they were read or set, the way a JavaScript object does.
|
Package orderedjson holds JSON objects that keep their keys in the order they were read or set, the way a JavaScript object does. |
|
Package outputfiles creates the files pi writes so the model can use output it was not shown in full: the full text of truncated tool output, binary MCP resources and images shown by codemode scripts.
|
Package outputfiles creates the files pi writes so the model can use output it was not shown in full: the full text of truncated tool output, binary MCP resources and images shown by codemode scripts. |
|
Package ownerfile makes files accessible to their owner only and checks that they are: mode 0600 and no group or other bits on POSIX, and on Windows, which has no mode bits, a DACL (D68).
|
Package ownerfile makes files accessible to their owner only and checks that they are: mode 0600 and no group or other bits on POSIX, and on Windows, which has no mode bits, a DACL (D68). |
|
Package packagemanager resolves, installs and reads the Packages that settings configure.
|
Package packagemanager resolves, installs and reads the Packages that settings configure. |
|
Package perfgate checks count metrics against the ratchet ceilings in automation/perf/ratchet.toml.
|
Package perfgate checks count metrics against the ratchet ceilings in automation/perf/ratchet.toml. |
|
Package pigdocs materializes the reference documentation embedded in Stock Pig under the user's config root.
|
Package pigdocs materializes the reference documentation embedded in Stock Pig under the user's config root. |
|
Package pigsdklock coordinates readers and writers of staged Pig extension SDKs within one configuration root.
|
Package pigsdklock coordinates readers and writers of staged Pig extension SDKs within one configuration root. |
|
Package pigstrip is the one strip state of a PiG process: the built-ins this process runs without.
|
Package pigstrip is the one strip state of a PiG process: the built-ins this process runs without. |
|
leakgate
Package leakgate holds the tables of the strip leak gates: the user-visible names of every strip ID, which the interactive gate (internal/codingagent TestStripLeakGate) and the CLI gate (cmd/pig TestStripLeakGate) look for on the surfaces a stripped built-in must leave.
|
Package leakgate holds the tables of the strip leak gates: the user-visible names of every strip ID, which the interactive gate (internal/codingagent TestStripLeakGate) and the CLI gate (cmd/pig TestStripLeakGate) look for on the surfaces a stripped built-in must leave. |
|
Package pilock implements Pi's proper-lockfile directory-lock protocol for shared stores.
|
Package pilock implements Pi's proper-lockfile directory-lock protocol for shared stores. |
|
Package pioracle runs the compiled Pi modules vendored for the Node extension runtime against Go test inputs, so a test compares Pig with Pi itself rather than with a transcription of Pi's behavior.
|
Package pioracle runs the compiled Pi modules vendored for the Node extension runtime against Go test inputs, so a test compares Pig with Pi itself rather than with a transcription of Pi's behavior. |
|
Package procpolicy is PiG's GOMAXPROCS policy.
|
Package procpolicy is PiG's GOMAXPROCS policy. |
|
Package profiling writes Go runtime profiles when PIG_PROFILE names them.
|
Package profiling writes Go runtime profiles when PIG_PROFILE names them. |
|
Package realpath resolves the symbolic links of a path, as filepath.EvalSymlinks does, for the paths startup canonicalizes at every run: the working directory, the home directory and their ancestors.
|
Package realpath resolves the symbolic links of a path, as filepath.EvalSymlinks does, for the paths startup canonicalizes at every run: the working directory, the home directory and their ancestors. |
|
Package requestvalidity checks the requests PiG sends to model providers against each provider's documented message contract.
|
Package requestvalidity checks the requests PiG sends to model providers against each provider's documented message contract. |
|
Package resolvepath resolves user-supplied resource paths the way Pi's resolvePath does.
|
Package resolvepath resolves user-supplied resource paths the way Pi's resolvePath does. |
|
Package scalarjson supports JSON-normalized scalar copies without serialization.
|
Package scalarjson supports JSON-normalized scalar copies without serialization. |
|
Package sessionentry holds the session log's entry values (core/session-manager.ts SessionHeader, SessionEntry and the entry types).
|
Package sessionentry holds the session log's entry values (core/session-manager.ts SessionHeader, SessionEntry and the entry types). |
|
Package shellconfig resolves the bash shell PiG runs commands through, mirroring upstream packages/coding-agent/src/utils/shell.ts getShellConfig and getBashShellConfig.
|
Package shellconfig resolves the bash shell PiG runs commands through, mirroring upstream packages/coding-agent/src/utils/shell.ts getShellConfig and getBashShellConfig. |
|
Package stackprime grows the calling goroutine's stack in one step.
|
Package stackprime grows the calling goroutine's stack in one step. |
|
Package termuxenv prepares a PiG process for Termux on Android.
|
Package termuxenv prepares a PiG process for Termux on Android. |
|
Package testbudget sizes the deadlines tests use to bound a hang.
|
Package testbudget sizes the deadlines tests use to bound a hang. |
|
Package testenv checks host capabilities a test needs, so a test runs wherever the host provides them and says why it skipped where the host does not.
|
Package testenv checks host capabilities a test needs, so a test runs wherever the host provides them and says why it skipped where the host does not. |
|
Package testscaling measures how the cost of a hot path grows with the size of the input that grows in a session (history length, message size, transcript lines, keys) and fails a test when the growth exceeds the declared bound.
|
Package testscaling measures how the cost of a hot path grows with the size of the input that grows in a session (history length, message size, transcript lines, keys) and fails a test when the growth exceeds the declared bound. |
|
Package text ports upstream packages/coding-agent/src/utils/text.ts: the leading byte order mark helpers every Pi reader applies before parsing user-authored JSON, markdown, and text files.
|
Package text ports upstream packages/coding-agent/src/utils/text.ts: the leading byte order mark helpers every Pi reader applies before parsing user-authored JSON, markdown, and text files. |
|
Package tlsdistrust refuses TLS connections whose verified certificate chain contains a CA key that is known to be compromised, or a root certificate that Mozilla removed from NSS after the October 2026 eMudhra incident (Mozilla bug 2083449).
|
Package tlsdistrust refuses TLS connections whose verified certificate chain contains a CA key that is known to be compromised, or a root certificate that Mozilla removed from NSS after the October 2026 eMudhra incident (Mozilla bug 2083449). |
|
tlsdistrusttest
Package tlsdistrusttest holds the public certificates of the October 2026 eMudhra incident and builds, for tests only, a server certificate signed by a compromised intermediate.
|
Package tlsdistrusttest holds the public certificates of the October 2026 eMudhra incident and builds, for tests only, a server certificate signed by a compromised intermediate. |
|
Package toolchain locates the build tools PiG uses for compiled extension cells and Piglet Binaries, and installs a PiG-managed Go toolchain for users who installed only the pig binary.
|
Package toolchain locates the build tools PiG uses for compiled extension cells and Piglet Binaries, and installs a PiG-managed Go toolchain for users who installed only the pig binary. |
|
Package truncate holds the line and byte walks of Pi's truncateHead and truncateTail (packages/coding-agent/src/core/tools/truncate.ts), shared by the tools' result truncation, the bash-execution block's context limit and durable's truncateHead, which import cycles keep in different packages.
|
Package truncate holds the line and byte walks of Pi's truncateHead and truncateTail (packages/coding-agent/src/core/tools/truncate.ts), shared by the tools' result truncation, the bash-execution block's context limit and durable's truncateHead, which import cycles keep in different packages. |
|
tui
|
|
|
parity
Package parity provides the test harness for TUI byte-level and visible-state parity against upstream pi-tui.
|
Package parity provides the test harness for TUI byte-level and visible-state parity against upstream pi-tui. |
|
termsim
Package termsim is a headless ANSI terminal simulator for byte-level parity testing.
|
Package termsim is a headless ANSI terminal simulator for byte-level parity testing. |
|
Package typebox ports the parts of TypeBox 1.3.27 Value that PiG needs over JSON Schema data: Check, Errors, Clean, Default and Clone, with the format registry and the keyword spellings TypeBox accepts.
|
Package typebox ports the parts of TypeBox 1.3.27 Value that PiG needs over JSON Schema data: Check, Errors, Clean, Default and Clone, with the format registry and the keyword spellings TypeBox accepts. |
|
Package upstreammirror checks that a checkout's Pi source mirror, .upstream/current, is the Pi build a ledger version names.
|
Package upstreammirror checks that a checkout's Pi source mirror, .upstream/current, is the Pi build a ledger version names. |
|
Package usagetotals sums model usage records.
|
Package usagetotals sums model usage records. |
|
Package wordsegmenter implements word segments used by the terminal editor.
|
Package wordsegmenter implements word segments used by the terminal editor. |
|
Package yaml12 ports the parts of eemeli/yaml 2.9.0 that Pi's frontmatter parser runs (lexer, parser, composer, core schema, error text), so frontmatter reads and fails as it does in Pi.
|
Package yaml12 ports the parts of eemeli/yaml 2.9.0 that Pi's frontmatter parser runs (lexer, parser, composer, core schema, error text), so frontmatter reads and fails as it does in Pi. |
Click to show internal directories.
Click to hide internal directories.