Repository navigation
Zpi v0.3.3
Zpi v0.3.3
Zpi v0.3.3 is the first published GitHub Release since v0.3.0. It fixes a Linux --output-schema / long literal system-prompt failure on Zig 0.17.0, significantly accelerates multi-platform CI builds, and ships all v0.3.1 and v0.3.2 harness, plugin, and ergonomics upgrades.
Highlights
v0.3.3 Fixes & CI Improvements
- Linux
ENAMETOOLONGfix insystem_prompt.resolve(src/cli/system_prompt.zig).- Multiline prompts (
\r/\n) and inputs whose resolved path exceeds POSIXPATH_MAXorNAME_MAX(255 bytes per segment) now return literal text directly without callingstatFile, avoiding Zig 0.17.0's LinuxdirStatFileLinuxENAMETOOLONG -> error.Unexpectedfailure when using--output-schemaor long--system-prompt/--append-system-promptstrings.
- Multiline prompts (
- Faster multi-platform CI (
build.zig,.github/workflows/ci.yml,scripts/run-e2e-suites.py).- Runs the 369 Zig unit tests in Debug mode alongside a ReleaseSafe
zpi+native-fixturesbuild with Zig build caching, skips slow macOS loopbacksocket.getfqdn()reverse-DNS timeouts in Python E2E servers, and executes offline E2E suites in parallel — cutting cold CI time from 20–30 minutes down to 6–11 minutes.
- Runs the 369 Zig unit tests in Debug mode alongside a ReleaseSafe
Harness & Plugin Capabilities (from v0.3.2)
- Core modular refactoring (~1,486 lines extracted).
- Split
src/main.zig,src/harness.zig, andsrc/tui.ziginto cohesive modules (sessions_cli,tool_summary,herdr_integration,harness_tree,harness_child,fullscreen_render,pickers).
- Split
- Passive plugin context injection & post-tool notes.
- Plugins can subscribe to
context_snippet(startup,compaction,new,resume) to return bounded<plugin-context>blocks (4 KiB per plugin, 8 KiB total), andtool_resulthooks now receive optionalpathand can return boundedappendNoteannotations (2 KiB per plugin, 4 KiB total).
- Plugins can subscribe to
- Non-destructive Observation Masking (
src/observation_mask.zig).- Automatically folds bulky older
tool_resultoutputs in outbound provider requests (configurable viasettings.json"observationMasking") while preserving persisted JSONL transcripts intact.
- Automatically folds bulky older
- Structured JSON output (
--output-schema PATH).- Validates the JSON Schema up front, enforces schema-conforming output with up to 2 automatic self-repair retries, and emits clean validated JSON in
-pmode (orstructured_outputevents in--mode json).
- Validates the JSON Schema up front, enforces schema-conforming output with up to 2 automatic self-repair retries, and emits clean validated JSON in
- Explicit plugin installer (
zpi plugin install <github-url-or-local>).- Installs validated plugins from local directories, GitHub shorthand (
owner/repo[/subdir][#ref]), GitHub tree URLs, orfile://repos into~/.zpi/agent/plugins/<id>, pluszpi plugin remove <id> --purge.
- Installs validated plugins from local directories, GitHub shorthand (
Startup & Ergonomics Polish (from v0.3.1)
- Lazy plugin workers + manifest cache (
plugin-cache.json) +--no-plugins. - Local
--model/ credential preflight checks before entering slow setup or network paths. - Canonical path persistence in
zpi plugin addand fast-fail extension preflight. - Real subcommand help for
zpi sessions --help,zpi sessions list|export --help, andzpi doctor --help.
Installation
curl -fsSL https://raw.githubusercontent.com/syuchua/zpi/v0.3.3/install.sh | shBuilding from source requires Zig 0.17.0.
Validation
Verified on linux-x64, linux-arm64, macos-x64, and macos-arm64 with zig fmt --check, zig build test -Ddebug, zig build install native-fixtures, reproducible release archive packaging (scripts/test-package-release.py, scripts/test-install.py), and all 17 offline E2E suites.