PI-Desktop Spec
Frozen baseline:
0.4.15· current app line:0.5.6Updated:2026-08-11Language: 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
| Doc | Description |
|---|---|
| NAV.md | One-page full navigation |
| 00-baseline.md | Frozen baseline |
| 08-meta/decisions-log.md | Frozen detail decisions |
| 01-product/00-overview.md | Overview |
| 01-product/01-product-scope.md | Current product scope and operating modes |
| 02-architecture/01-architecture.md | Architecture |
| 03-runtime/05-host-core-rust.md | Rust host core |
| 04-ux/02-i18n-english-first.md | i18n policy |
| 04-ux/07-ui-design-system.md | Design system (tokens, motion, density) |
| 04-ux/01-ui-ia.md | Shipped shell and destination map |
| ../project/plan-mode-implementation-plan.md | Plan operating-state implementation plan |
| 07-plugins/01-plugin-system.md | Plugin system |
| 06-delivery/03-ai-development-workflow.md | AI dev workflow rules |
| 06-delivery/04-e2e-test-plan.md | E2E test plan & scenarios |
| 06-delivery/05-change-checklist.md | Change 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
00-baseline.md01-product/00-overview.md01-product/01-product-scope.md06-delivery/01-mvp-milestones.md
Implementation
00-baseline.md02-architecture/01-architecture.md03-runtime/05-host-core-rust.md03-runtime/02-agent-runtime.md03-runtime/01-ipc-protocol.md03-runtime/11-provider-model-system.md07-plugins/01-plugin-system.md
Plugin authors
../plugin-development.md07-plugins/01-plugin-system.md07-plugins/02-plugin-manifest-schema.md07-plugins/03-plugin-api.md07-plugins/10-plugin-devex.mdexamples/plugins/hello
Frozen decisions (short)
- Electron shell
- English-first product/docs
- Rust host backend core
- pi agent engine in Node sidecar
- Host RPC = stdio JSON-RPC NDJSON
- SQLite owned by Rust only
- 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
- SubmitPlan writes exact Markdown bytes to a new host-owned
.pi/plan/*.mdartifact; title/question stay structured inplan_approvals, approval opens the artifact, is approve/reject only, and expires after 30 absolute minutes withPLAN_APPROVAL_TIMEOUT - Protocol v9 and storage schema v11 are authoritative for Plan/Goal checkpoints,
plan_approvalsexecution fields, startup interruption, and shell identity - Permission timeout 120s deny; Bash timeout 60s by default
- Local user-installable plugins (market later)
- Tag releases = macOS arm64, Windows x64, and Linux x64 (D126)
- Universal provider/model coverage (native + OpenAI-compatible + custom)