Skip to main content

Module core

Module core 

Source
Expand description

Product-level compatibility, persistence, resource, and tool services.

Modules§

agent_session
AgentSession — mode-agnostic orchestration over pi-agent + product services.
agent_session_runtime
AgentSessionRuntime — owns the current AgentSession and 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 ExtensionRunner over the pi-ext HostClient.
lockfile
Cross-process exclusive lock using the proper-lockfile mkdir 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 gh command 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.