Skip to content

Zpi v0.2.5

Choose a tag to compare

@github-actions github-actions released this 05 Dec 15:30
· 22 commits to main since this release

Zpi v0.2.5

This release adds a first-party JavaScript/TypeScript plugin API alongside the existing experimental pi extension host and native plugin interfaces. It also expands native subagent workflows, interactive session/task tools, provider protocol handling, and plugin lifecycle and security verification.

Highlights

  • First-party JS/TS plugins. Explicitly load local plugins with repeatable --plugin PATH or the plugins array in user ~/.zpi/agent/settings.json. Plugins can register schema-validated model tools, local TUI commands (/plugin:<id>:<command>), and session lifecycle observers. They run in separate Node workers over a versioned JSONL protocol; no pi SDK, npm install, or TypeBox is needed for the shipped examples. The .mjs and erasable .mts examples and TypeScript declarations are installed under share/zpi/examples/zpi-plugin. The core CLI remains usable without Node when no plugin is selected; explicitly selected plugins require Node 24.22.1+ in the 24.x line. Plugin code is local executable code, not an untrusted-code sandbox. See the plugin author contract and worker protocol.
  • Safer plugin dispatch and lifecycle. Plugin tool declarations follow tool selection, including --no-tools, explicit --tools re-enable, and exclusions. The host validates tool batches before dispatch, preserves paired results for failed calls, removes crashed workers' tools from later provider turns, drains or quarantines late responses, and closes responsive workers in a deterministic order. Secure mode requires launch authorization, strict child environment isolation, and the configured OS sandbox; project trust never implicitly discovers executable plugins.
  • Richer native agent workflows. Adds Plan Mode, structured /todo, filesystem checkpoints and /rewind, /diff, and autonomous /goal loops with optional verification. Native subagents support concurrent and background tasks, progress, bounded results, optional worktree isolation, and usage aggregation in /cost.
  • Provider, context, and transport improvements. Adds native Gemini streaming and thinking-signature replay, OpenAI Responses reasoning-item replay, Anthropic prompt caching and signed-thinking replay, per-request context-budget clamping, concurrent contiguous read-only tools, and shared keep-alive HTTP transport with cancellation and retry handling.
  • Interactive and RPC improvements. Improves regular/fullscreen TUI session commands, queueing and cancellation, Markdown table and code rendering, and tool output previews. JSONL RPC v1.1 adds capability negotiation, model/session/tree controls, images, steering, approvals, compaction, and structured asynchronous events while retaining v1.0 compatibility when initialization is skipped.
  • Reliability fixes. Corrects Linux non-TTY terminal attribute handling in first-run onboarding, keeps Anthropic context-budget fixtures aligned with cached system blocks, and rejects stale or duplicate worker frames rather than allowing them to affect a later operation.

Installation and compatibility

Download a platform archive and verify its accompanying SHA-256 file. Archives are built by the release workflow for macOS arm64/x64 and Linux arm64/x64 with glibc or musl. The installer remains available:

curl -fsSL https://raw.githubusercontent.com/syuchua/zpi/v0.2.5/install.sh | sh

Building from source requires Zig 0.17.0. Existing pi SDK extensions and experimental native plugins remain separate interfaces; this release does not claim full pi compatibility, a stable native ABI, or containment of untrusted plugin code.

Validation

The release workflow runs the Zig, CLI, RPC, ACP, trusted-execution, pi SDK, native C/Zig plugin, provider fixture, and plugin protocol/PTY suites on native macOS arm64/x64 and Linux arm64/x64 runners. Each release archive is stripped, smoke-tested in its target runtime, checksummed, and tested against the unpacked .mjs and .mts examples. Check the tagged CI workflow for final platform results and archive artifacts.