Files
CyberStrikeAI/docs/en-US/pi-runtime.md
T

2.5 KiB

Pi runtime

CyberStrikeAI uses Pi 1.5.2 as its only runtime. Go owns business state, permissions, MCP execution, evidence, and delivery checks; an isolated Node worker hosts the Pi SDK. The source repository is Sycun/CyberStrikeAI. The upstream contribution fork is CyberStrikeAI-upstream-fork.

Build

Node.js >=22.19 and the Go version in go.mod are required:

bash scripts/build-pi-runtime.sh
go build -o cyberstrike-ai ./cmd/server

The launcher and self-update build prepare the worker. Dependency installation uses the lockfile with lifecycle scripts disabled. Complete bundles are published under runtime/pi/.builds/<source fingerprint>; running workers keep their original dependencies, and source rollback selects the corresponding old bundle. Retain the runtime sources and matching bundle when deploying, or rebuild on the destination. A Go binary alone is insufficient for Pi.

Configuration

agent_runtime.engine accepts only pi (also the default). The former engine and dependencies have been removed. Optional node_path, worker_path, and session_dir control deployment. The retired agent_runtime.purge key is ignored on load and removed when system settings are saved.

Chat agents, specialists and workflow Agent nodes use Pi. Durable assessments use a single Pi model proposal per step; their existing engine retains tool execution, approvals and budgets. Large catalogs can use native tool search. Conversation task boards remain compatible with the existing UI.

Workflow now uses a native DAG and versioned JSON checkpoints. Old Eino Workflow binary checkpoints cannot be resumed by this version; finish those runs before upgrading, or export their material and start new Pi tasks. Knowledge retrieval and indexing use native domain types and HTTP embeddings. Old configuration keys are read as data migration only; saving emits the native skills/runtime keys. Legacy URL aliases call the same Pi handlers and cannot select a different engine.

See the Chinese implementation and validation guide for protocol, recovery and test details. Local fixtures establish functional behavior, not live-provider reliability, refusal-rate improvements or production acceptance.

The example configuration follows Sycun/CyberStrikeAI. Existing installations retain their own update source, which must be checked separately; this source migration does not deploy or change a running production configuration.