Marks / Runtime
pi
Programmable capabilities
- 3 ↑4 Capability interface config: activate built-in tool_search Extensions, built-in MCP client, host-registered SDK tools (R8), per-session set; tool_search registered but inactive by default
Review finding
Built in. The default tools are read, bash, edit and write. TypeScript extensions loaded in-process via jiti register tools, commands and flags. Built-in replaceable extensions provide an MCP client (stdio, streamable HTTP),
tool_searchand codemode. Tools use TypeBox schemas in one per-session registry. P91P92P93P94 - 2 Reusable computation Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)
- 2 Capability transfer Pi package install (npm/git/local) documented [D]; fork/clone exist; no dependency checking (level 3 unmet)
Review finding
Evidence and memory
- 2 Durable evidence Append-only JSONL trees with tool calls; no retention policy, manual delete only (level 3 unmet)
- 2 Context recovery Originals in JSONL; recovery via file lists and temp-file paths only; no transcript search tool (level 3 unmet)
- 0 Memory maintenance No learned-memory facility and no maintenance instruction; AGENTS.md and skills are guidance files
Specialist collaboration
- 1 Specialist definition Subagents exist only as shipped example extension; example code does not count toward B
Review finding
- 0 ↑3 Continuation alt: pi-durable checkpointed child tasks No subagents in core CLI (example only); pi-durable checkpointed children with restart limit 5
- 0 ↑1 Coordination alt: pi-durable No subagents in core CLI; pi-durable children and signals exist; unresolved: pi-durable depth/concurrency caps, cancellation
Execution controls
- 0 ↑2 Confinement alt: Docker / OpenShell / Gondolin (documented) No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1)
Review finding
None by default. Tools run with the OS user's permissions and no approval prompts; cwd only resolves relative paths. Project trust gates resource loading, not effects. Approval exists only through an extension
tool_callhook (shipped as an example). [alt: Docker, Docker Sandboxes, OpenShell, Gondolin VM; documented/example]. Codemode scripts run in QuickJS without fs or network. X110X111X112X113X114 - 1 Credential handling Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylist
Review finding
bash inherits the full
process.env, plusPI_*session vars when exposed. MCP stdio servers inherit the env unlessinheritEnv: false.auth.jsonis 0600 under a lock but readable by the same user. Config values can come from a!command(e.g. a host keychain CLI). No in-tree keychain; redaction applies only to bug reports. X115X116X117X118X119 - 1 ↑2 Budget enforcement alt: pi-durable maxTurns CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admission
Review finding
No spend, token or turn budget in the pi CLI. Tokens and USD are computed per response from the bundled or remote catalog (or the provider's own figure) and summed for display and stats. Existing limits: 3 provider retries, codemode caps, the compaction threshold. [alt: pi-durable
maxTurns; no cost admission]. X120X121X122X123
Product integration
- 4 Embedding interfaces In-process
createAgentSession(with customTools) plus RPC JSONL with prompt/steer/follow_up/abort/fork; typed eventsReview finding
Built in: in-process TypeScript SDK (
createAgentSession);--mode rpcJSONL over stdin/stdout (about 40 commands) plusjsonevent mode and print mode; lower-level agent-core and provider libraries. No HTTP, WS, ACP or MCP server in the CLI. [alt: p3 app — HTTP on loopback, unix sockets]. I106I107I108I109 - 1 Declarative configuration Settings files explicitly not validated at runtime despite published schemas; only
models.jsonis type-checked - 2 ↑3 Durable execution alt: pi-durable CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnect
Review finding
Not durable mid-turn: entries appended as finalized; on resume, orphaned tool calls get synthetic "No result provided" errors, not re-run. Second prompt while streaming rejected unless steer/followUp. stdin EOF waits for pending work. No session-file lock. [alt: pi-durable] (Note I-8). I113I114I115I116I117
Operations and verification
- E Service dependencies Single Node process, no daemon or DB; MCP and fd/rg run as children
- 2 Execution records JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmet
Review finding
Built in. The SessionManager JSONL is the record: messages, tools, usage, compactions, custom entries. Provider failures and failed retries are kept. Extensions can append entries and replace finalized messages. A telemetry contract exists but ships no exporter; there is a crash log. O100O101O102O103O104
- 2 Result checks Extension hooks can block or force another turn, with no stated cap; arguments are validated structurally
Review finding
Reproducibility
- Repository
- https://github.com/earendil-works/pi
- Branch
- main
- Exact revision
2126569de40d5595dd3f41f7af126001f04c1de0- Commit date
- 2026-11-27T23:44:23+01:00
Metadata
- Exact revision
2126569de40d5595dd3f41f7af126001f04c1de0, committed 2026-11-27T23:44:23+01:00- Version (source)
- Core packages 1.7.0 (e.g.
packages/coding-agent/package.json); root monorepo 0.0.3 private;apps/p30.0.1 M26 - License
- MIT (
LICENSE) M26 - Audited component / deployment
- Shipped
piCLI + in-process TS SDK:coding-agent,agent,ai,mcp,codemode, built-in extensions. [alt: pi-durable]:packages/durable("Experimental"),chord,env, consumed byapps/p2/p3, not a CLI dependency M27 - Supported runtime platforms
- Node ≥22.19.0, optional Bun single binary; native TUI helpers darwin/linux/win32; Windows/Termux docs [D]; p3 POSIX-only [D] M26M28
- Evidence coverage
- Deep: agent-session, session-manager, extensions API, bash/env, settings, RPC mode, loop. Skimmed: providers, TUI, package manager, MCP runtime, p2-mac, evals. Not: chord internals. [alt] items from a delegated sub-audit, partially spot-checked
Pinned external dependencies (capability-supplying)
- Package@version
quickjs-wasi@3.6.2- Role
- codemode script sandbox
- Lockfile / source
package-lock.json:5392-5393M44
- Package@version
jiti@2.7.0;proper-lockfile@4.1.2;typebox@1.3.27;cross-spawn@7.0.6- Role
- extension loader; settings/auth locks; schemas; MCP stdio (pi-mcp is in-tree, not
@modelcontextprotocol/sdk) - Lockfile / source
package-lock.json
- Package@version
@anthropic-ai/sdk@0.129.0,openai@7.59.0,@google/genai@3.6.1,@aws-sdk/client-bedrock-runtime@3.1127.0- Role
- provider SDKs
- Lockfile / source
package-lock.json
- Package@version
@earendil-works/gondolin@0.14.0(example only, out of tree)- Role
- optional micro-VM confinement [D]
- Lockfile / source
examples/extensions/gondolin/package.json:17
Specialist collaboration: Supporting table: parent→child authority
- Approval / permission policy passed to child
- Nothing to inherit (no approval layer)
- OS-level confinement of child
- None by default
- Widening path found
- Not applicable (same user, full env) C111
Operations and verification: Notes
- Finished process
agent_settled- Delivered answer
- Last assistant message
- Structural validity
- TypeBox arguments
- Task correctness
- Opt-in only (see below)
Part A: platforms, clients, IDE, messaging
- Native platforms
- Node CLI on darwin/linux/win32; Termux/Windows docs [D] M26
- Terminal / web / desktop clients
- TUI full-screen by default; print, JSON, RPC modes; HTML export A30.
apps/p3headless "one Pi per person" server [D];apps/p2web UI marked prototype "will be gone soon";apps/p2-macSwift (outside audited component) A31A32 - IDE & coding integrations
- RPC extension-UI protocol for frontends [D] A33; no first-party IDE plugin found
- Messaging channels
- CLI: none. p2 Discord bot via
discord.js@14.28.1(outside audited component; prototype) A34
Part B: voice/media, onboarding/routing, fleet administration
- Voice / media
- CLI: none found. p2 voice server (Silero VAD, Parakeet STT, TTS) in Docker (outside audited component; prototype) A66; built-in llama.cpp local-model extension A67
- Onboarding & session routing
/loginOAuth selectors,pi auth login[S skimmed] A68; p3 owner links and cookies (outside audited component)- Fleet administration
- Not found in CLI;
p3 listfor Pis on one machine (outside audited component) [D]
Source/doc conflicts
- Conflict
- Docs enable codemode via
defaultTools: ["+codemode"]while settings showcodemode.mode: "on";modeonly controls presentation, tool isdefaultActive: false - Which side the audit entry follows
- consistent behaviour, misleading setting name