Expand description
Product-level compatibility, persistence, resource, and tool services.
Modules§
- agent_
session AgentSession— mode-agnostic orchestration overpi-agent+ product services.- agent_
session_ runtime AgentSessionRuntime— owns the currentAgentSessionand drives the new / switch / fork / import replacement pipeline.- agent_
session_ services - Cwd-bound runtime services and session factory helpers.
- compaction
- Context compaction for long sessions.
- config
- Product path layout, package identity, and environment constants.
- config_
value - Product compatibility wrappers for canonical config-value resolution.
- experimental
- Experimental product feature gating.
- export_
html - Self-contained HTML session export compatible with the TypeScript viewer.
- extension_
host - Product-side
ExtensionRunnerover the pi-extHostClient. - lockfile
- Cross-process exclusive lock using the
proper-lockfilemkdir protocol. - messages
- Custom product message types and LLM conversion for the coding agent.
- migrations
- Deterministic, best-effort startup migrations for legacy pi data.
- model_
resolver - Model resolution, scoping, and CLI/model-pattern matching.
- model_
runtime - Product-level model/auth/catalog runtime facade.
- output_
guard - Process-global raw stdout coordinator for print/RPC modes.
- package_
manager - Extension package management: source parsing, install paths, trust gating,
npm/git/local install/remove/update, and atomic
packages[]settings edits. - platform
- Cross-platform product integration seams.
- resources
- Product resource discovery, loading, and snapshot management.
- session_
transfer - JSONL branch export and import preparation.
- sessions
- Append-only JSONL v3 session store.
- settings
- Global and project settings: wire types, migrations, trust-gated merge, and atomic persistence.
- share
- Secret-gist sharing through an injected
ghcommand runner. - system_
prompt - System prompt construction for the coding agent.
- tools
- Shared infrastructure and seven concrete coding tools.
- trust
- Project trust store and trust resolution.
- update
- Product update and release-compatibility engines.