Repository navigation
Install or upgrade:
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/pi_agent_rust/main/install.sh | bash
pi self-update # from an existing install (on v0.8.0 Apple Silicon / Linux arm64; use install.sh once on Linux x86_64, macOS Intel, and Windows to pick up the raised 256 MiB updater ceiling)Every asset has a .sha256 sidecar and a prehashed Minisign signature (.minisig); SHA256SUMS covers all 10 payloads and is signed too. The public key is minisign.pub in the repository (key ID 1BBD79B28BF718D0). Linux binaries are built against glibc 2.28 or newer. All published binaries are built with --profile dist (opt-level = 3, fat LTO, single codegen unit, panic = "abort", stripped) for speed.
This release is built from tag v0.9.0 (1a7d2d2bdbb0e080e9bee0dd89e4f3a5c535b0b5).
The macOS binaries are not notarized (Apple Silicon: the linker's ad-hoc signature; Intel: unsigned), as in earlier releases. Installed by the script or by pi self-update they run as they are; a copy downloaded with a browser needs its quarantine flag removed first.
How this release was checked.
- Quality gates on the tag commit (
1a7d2d2bd):cargo fmt --all -- --check,cargo clippy --locked --all-targets --keep-going -- -D warnings,cargo clippy --locked --lib --bins --test extension_lockfile_provenance --features wasm-host --keep-going -- -D warnings, Linux-hostedx86_64-pc-windows-gnucross-check,shellcheck,tests/installer_regression.sh(77/77 pass),scripts/skill-smoke.sh,scripts/check_module_reachability.py,scripts/check_fixture_read_patience.py,scripts/check_readme_evidence_freshness.py(12/12 pass),scripts/check_dsr_contract_sync.py(0 drift), andcargo audit(0 vulnerabilities on bothCargo.lockandfuzz/Cargo.lock). - Test suites on the tag commit:
wasm_host(20/20),extension_lockfile_provenance(151/151),readme_tool_inventory(7/7),release_evidence_gate(95/95),libunit suite (15,749/15,749),e2e_cli(223/223),e2e_provider_streaming(120/120),e2e_rpc(174/174),e2e_tui_features(121/121),provider_streaming(191/191),sdk_multimodal(27/27),tools_conformance(289/289), andcargo publish --dry-run --locked(799 files, 8.3 MiB compressed). - Every platform archive and raw binary was verified for target architecture, glibc <= 2.28 floor (Linux x86_64/arm64), macOS deployment target (darwin arm64/amd64), PE32+ format (Windows x86_64), embedded
pi --versiongit SHA provenance, and cryptographic signatures (SHA256SUMS+.sha256+ prehashed-H.minisigwith authenticated DSR trusted comments).
A major feature and hardening wave on top of v0.8.0 (~887 commits). Adds native /goal workflows across both terminal stacks and RPC/SDK, the pi web browser companion (--terminal mirror + TLS 1.3 + scannable QR), project memory learning (/memory sync), --wait-async background print loops, shared session-tree cost caps (--warn-cost/--max-cost), ACP session forks/live steering/editor-buffered file tools/native audio-video prompts, native MCP OAuth/SSE/form & URL elicitation, live model discovery v2 (models.fetched.json, /fast ultrafast), live /rules stream rules, grep exclusions and URL search, SnapCompact, real better-sqlite3/axios/zod/node:readline extension shims, wasmtime 48.0.10 (0 RUSTSEC advisories), Minisign signature verification in install.sh/pi self-update, and fixes the live openai-codex default model (gpt-5.6-sol) and VERGEN_GIT_SHA provenance.
Requires a minor SemVer bump (0.9.0) because four pi::sdk types marked Stable in docs/sdk.md added public struct fields or adjusted signatures (see Changed).
Added
- Native
/goalmode across FrankenTUI, classic TUI, SDK, and RPC.
Run budgeted multi-turn autonomous objectives with continuation, budget revisions, interrupted-run reconciliation without replay or budget resets, and RPC/SDK lifecycle hooks (RpcGoalOp,RpcGoal,RpcGoalModeState,RpcGoalResult). - Mobile Web Remote (
pi web/pi --web) with--terminalmirror, TLS 1.3, fail-closed LAN bind gate, and scannable terminal QR.
Serves the browser companion and live terminal mirror (pi web --terminal), supports--web-tls-certand--web-tls-keyoverasupersyncTLS 1.3 (rustls), fails closed on non-loopback--web-bindunless paired with TLS or--web-allow-insecure-lan, and renders an ISO/IEC 18004 QR Model 2 matrix using Unicode half-blocks (▀/▄/█). - Project memory learning and consolidation (
/memory sync).
Extracts and consolidates durable project facts from completed sessions (autoExtract,extractEveryTurns, branch-aware checkpoints) and exposesAgentSessionHandle::sync_memory. - Background print-mode follow-ups (
--wait-async/async.printWake).
pi -p --wait-asyncwaits for owned background subagent/job completions and executes follow-up turns within--max-timebounds instead of exiting while background tasks are still running. - Shared session-tree model spend limits (
--warn-cost,--max-cost).
Enforces per-session and shared session-tree budgets via CLI flags orsession.warnCost/session.maxCostwith durable.pi-cost-*.jsonbilling journals that persist late model charges to their source sessions and reject stale lock identities. - ACP session forks, live steering, editor-buffered file tools, editor terminals, and native media.
Addedsession/fork,_session/steeringlive steering,fs/read_text_file&fs/write_text_filerouting through editor buffers, foreground bash in negotiated editor terminals, native audio/video editor prompts,configOptionsmodel selectors, persistent project session directories by default unless--no-sessionis passed, trust-gated extension loading (ExtensionPolicy::evaluate_startup_trust), andmcp_serversupdates duringsession/loadwith deterministic-32602invalid-transport errors. - MCP OAuth, legacy HTTP SSE transport, interactive form/URL elicitation, and project discovery controls.
Added native HTTP OAuth with durable credential lifecycle and cancellable auth in both TUI stacks, legacy HTTP SSE transport, user-approved form and URL elicitation (--mcp-config,/mcp reauthstale header repair,/mcp unauth), task-augmented tools, andmcp.enableProjectConfigproject discovery settings. - Live model discovery v2 (
models.fetched.json) and/fast ultrafastservice tiers.
Discovers and persistssupported_reasoning_levels, reasoning aliases, andservice_tiers(--fetch-models,--refresh-models,--persist-models), enabling/fast ultrafastselection and/effort&/modelscommand spellings across both terminal stacks. - Live
/rulesstream rules and in-place/handoff.
Enforces user-configured stream rules and corrections during live model generation (/rules) and runs native in-place context handoff in both terminal UIs and SDK/RPC. - Ordered
SnapCompactand configurable automatic compaction policies.
Added budgetedSnapCompactwith native archive preservation across saves plus configurablecompaction.thresholdPercentandcompaction.methodOrder. greppath exclusions (!glob), internal document URLs, and HTTP(S) search; archive/videoreadsupport.
grepprunes scoped!globexclusions consistently across native and external backends and searches internal document and HTTP(S) resources;readnavigates bounded TAR/gzip/PAX/GNU source archives and local video metadata/frame previews;/reviewsupports hosted GitHub pull requests and GitLab merge requests.- Persistent optional-tool settings and progressive
xdevtool discovery bijection.
Addedtools.enableEval,tools.enableGithub,tools.enableSecurityScan,tools.enableSubagent, andtools.loadMode.<name>settings; alignedTOOL_TIERSin exact 1:1 bijection across all 36 built-in tools (BUILTIN_TOOL_NAMES+subagent), surfaceddiscoverable_index()in system prompts, synced activated tools intoAgent::extend_toolsmid-session, and addeddebug.extraAdapters/debug.allowCustomAdapterswithDAP_ADAPTER_BLOCKEDdiagnostics. - Real extension runtime shims (
better-sqlite3,axios,node:readline, imported native tool factories) and prebaked QuickJS bytecode.
Backedbetter-sqlite3with native SQLite, replaced theaxiosstub with a real HTTP adapter, addednode:readlinesubprocess protocol streams, wiredcreateReadTool..createLsToolfactories to native host tools, precompiled thepibridge and static virtual modules once per process viarquickjs::Module::write+Bundle, and gated unreached research controllers behind the opt-inexperimental-controllersCargo feature. evalworkpool pipelines, structured extraction, and persistent CommonJS realms.
Added streaming JavaScript and Python workpool map/reduce pipelines with bounded retries, recoverable acknowledgments, schema-validated extraction, and workspace CommonJS module loading in retained JS realms.- Provider capability introspection and agentic tool-use parity across GitLab Duo, Cursor, Copilot, and Codex OAuth.
AddedProviderCapabilities(pi::sdk::ProviderCapabilities), wired multi-turn history and<pi_tool_call>tool execution (StopReason::ToolUse) forGitLabProviderand streamingCursorProvider, forwarded model reasoning/vision/cost metadata plus liveAuthStoragereload on Copilot's Chat Completions route, added DeepSeek text-encoded tool-call recovery, and implementedopenai-codexOAuth refresh. - FrankenTUI extension
dataDir, terminal inline image sizing, and completeKeyActionwiring.
Exposed per-extension persistentctx.dataDir/pi.dataDir, wired print-mode TTYrender_inlineto honorterminal.show_imagesand live terminal column width (while interactive TUI/FrankenTUI renders cell-safe attachment badges), surfaced startup session-recovery diagnostics, and connected all 15 previously inertAppActionkeybindings. - Segmented
SessionStoreV2live synchronization.
Opt-insessionStore: "v2"(PI_SESSION_STORE=v2) atomically maintains.v2segments, sidecar offset indexes, manifests, and cleansource-state.jsonlineage markers alongside canonical JSONL saves and appends without startup full-replay stalls.
Changed
- Breaking (
pi::sdkSemVer surface).pi::sdk::SessionOptionsadded public fieldsprewalk,out_enabled,out_default_enabled,workspace_trust_guard,warn_cost,max_cost,cost_budget,mutation_recorder, andstartup_bootstrap(callers constructingSessionOptionsmust include..SessionOptions::default()).pi::sdk::RpcSessionStatsaddedcontext_tokensandcontext_window;pi::sdk::RpcBashResultaddedcapture.AgentSessionHandle::set_max_tokenschanged frompub const fntopub fn.- Crate-root internal modules in
src/lib.rsare now marked#[doc(hidden)], sealing the documented SemVer surface topi::Error,pi::PiResult, andpi::sdk, and gatingExtensionDispatcherandhostcall_io_uring_lanebehindexperimental-controllers. - Additive
pi::sdkexports:AgentCx,ApprovalMode,ApprovalState,AutoCompactionMethod,CompactionReader,PlanChange,PlanMode,PlanPersistence,SessionPlanReview,SdkStartupBootstrap,ToolFactoryContext,ExplicitBuiltinTools,RpcGoalOp,RpcGoal,RpcGoalModeState,RpcGoalResult,ProviderCapabilities.
- Live default model priority (
PROVIDER_DEFAULT_MODELS).
Prioritized live-supportedopenai-codex/gpt-5.6-sol(gpt-5.6-terra,gpt-5.6-luna),openai/gpt-5.6, andanthropic/claude-sonnet-4-6ahead of retired ChatGPT Codex IDs. - Distinct cost-cap exit code (
EXIT_CODE_COST_CAP = 5).
Print/JSON runs halted byError::CostCapnow exit with status5, preserving status3exclusively for non-interactive approval unavailability, and explicit--skill/--prompt-template/--theme-pathload failures exit with status4. - 64 MiB default audio/video attachment cap (
media.maxBytes) and sidecar/Gemini Files staging.
DEFAULT_MEDIA_MAX_BYTESdefaults to64 MiB(67_108_864bytes) across CLI@file,read_media, RPC, SDK, and interactive frontends (#225). - Explicit
--toolsinitial-schema promotion andpi --list-providers/pi doctorcapability reporting.
Tools explicitly selected via--toolsare promoted toLoadMode::Essentialin the initial schema without requiring anxdevhop, andpi --list-providerspluspi doctornow report per-providerProviderCapabilities. - Type-erased extension futures (
WasmExtensionHandle+JsExtensionRuntimeHandle).
Downstream SDK/test crates compile cleanly under--features wasm-hostatrustc's defaultrecursion_limit = 128. - Honest Node/npm compatibility shims and real
npm:zodvalidation.
Replaced silent fake-success stubs with fail-closedERR_PI_SHIM_UNSUPPORTED_OPERATIONerrors and replaced the permissivenpm:zodstub with recursive runtime validation.
Fixed
- Shipped
pi --versionprinting(unknown ...)on detached/gitless build hosts.
build.rsnow resolves canonical 40-hex commit SHAs fromPI_BUILD_GIT_SHA,VERGEN_GIT_SHA, orgit rev-parse HEADand fails closed whenPI_REQUIRE_GIT_SHA=1while keeping crates.io source tarballs building cleanly. - Plain-host
pi doctorfailures (#267) and read-only SQLite session loading (#250).
Made development swarm diagnostics strictly opt-in (pi doctor --only swarm), hardened settings validation, and enabled loading read-only SQLite session archives without requiring writable WAL sidecars. - Quiet
--help/--versionbroken-pipe exit (#264), deterministic LSP test stdin underdash(#262), Windows\\?\session lock path handling (#271), and extension persistence/startup fixes (#279, #282). - Clap-derived CLI flag pre-parser (
--wait-async), lock-free OCC for RPCrewind, live/login//logoutcredential refresh, WASM extension slash-command dispatch, andagent_hubsteering lock cleanup. - Installer and self-updater reliability (#263, #265, #266).
Raisedpi self-updatebinary download ceiling to 256 MiB, removed the hardxzbinary requirement on macOS, and fixedmawkregex compatibility on Ubuntu/Debian.
Security
- Startup Merkle
package-lock.jsonverification and streaming digest hardening.
Verifies installed package trees at startup againstpackage-lock.jsonusing 64 KiB streaming CRLF-normalized SHA-256 digests and rejects escaping symlinks fail-closed. - Zero RUSTSEC advisories across workspace and fuzz lockfiles (
wasmtime 48.0.10).
Upgraded optionalwasmtimeto48.0.10(remediatingRUSTSEC-2026-0422..0424andRUSTSEC-2026-0566..0573), refreshed semver-compatible direct and transitive dependencies, and synchronizedfuzz/Cargo.lock(0vulnerabilities incargo audit).