Skip to content

PI-Desktop Spec

Frozen baseline: 0.4.15 · current app line: 0.5.6 Updated: 2026-08-11 Language: English-first Stack: Electron + Rust host core + pi Agent Harness + user-installable plugins

The baseline is a frozen decision artifact, not a complete list of every feature in the current app. The current implementation adds Goal contracts, standalone MCP/Skills/Subagents, plugin marketplace and launcher flows, session import, scheduled tasks, and next-turn composer configuration. The host wire protocol remains v9; storage schema is v11.

Quick entry

DocDescription
NAV.mdOne-page full navigation
00-baseline.mdFrozen baseline
08-meta/decisions-log.mdFrozen detail decisions
01-product/00-overview.mdOverview
01-product/01-product-scope.mdCurrent product scope and operating modes
02-architecture/01-architecture.mdArchitecture
03-runtime/05-host-core-rust.mdRust host core
04-ux/02-i18n-english-first.mdi18n policy
04-ux/07-ui-design-system.mdDesign system (tokens, motion, density)
04-ux/01-ui-ia.mdShipped shell and destination map
../project/plan-mode-implementation-plan.mdPlan operating-state implementation plan
07-plugins/01-plugin-system.mdPlugin system
06-delivery/03-ai-development-workflow.mdAI dev workflow rules
06-delivery/04-e2e-test-plan.mdE2E test plan & scenarios
06-delivery/05-change-checklist.mdChange checklist

Directory map

text
docs/spec/
├── 00-baseline.md
├── 01-product/
├── 02-architecture/
├── 03-runtime/
├── 04-ux/
├── 05-security/
├── 06-delivery/
├── 07-plugins/
└── 08-meta/

Reading paths

Product

  1. 00-baseline.md
  2. 01-product/00-overview.md
  3. 01-product/01-product-scope.md
  4. 06-delivery/01-mvp-milestones.md

Implementation

  1. 00-baseline.md
  2. 02-architecture/01-architecture.md
  3. 03-runtime/05-host-core-rust.md
  4. 03-runtime/02-agent-runtime.md
  5. 03-runtime/01-ipc-protocol.md
  6. 03-runtime/11-provider-model-system.md
  7. 07-plugins/01-plugin-system.md

Plugin authors

  1. ../plugin-development.md
  2. 07-plugins/01-plugin-system.md
  3. 07-plugins/02-plugin-manifest-schema.md
  4. 07-plugins/03-plugin-api.md
  5. 07-plugins/10-plugin-devex.md
  6. examples/plugins/hello

Frozen decisions (short)

  1. Electron shell
  2. English-first product/docs
  3. Rust host backend core
  4. pi agent engine in Node sidecar
  5. Host RPC = stdio JSON-RPC NDJSON
  6. SQLite owned by Rust only
  7. Default mode = Agent; operating selector = Agent | Plan | Goal. Plan and Goal are contract states of the same Agent and are not strict read-only security profiles because Bash follows the selected permission mode
  8. SubmitPlan writes exact Markdown bytes to a new host-owned .pi/plan/*.md artifact; title/question stay structured in plan_approvals, approval opens the artifact, is approve/reject only, and expires after 30 absolute minutes with PLAN_APPROVAL_TIMEOUT
  9. Protocol v9 and storage schema v11 are authoritative for Plan/Goal checkpoints, plan_approvals execution fields, startup interruption, and shell identity
  10. Permission timeout 120s deny; Bash timeout 60s by default
  11. Local user-installable plugins (market later)
  12. Tag releases = macOS arm64, Windows x64, and Linux x64 (D126)
  13. Universal provider/model coverage (native + OpenAI-compatible + custom)

Built for local-first development.