Subzero is a local MCP service that lets coding agents spawn and control persistent subagents. Children run in Pi SDK workers; the parent agent keeps its own conversation. @subzero/pi is a thin plugin that connects Pi to the service. Other MCP-capable coding agents configure the same server executable.
The v0.1 TypeScript implementation is in this checkout; its npm packages remain private and unpublished. Build, typecheck, and all 93 tests pass on Node 26.3.1/Linux; the original 90-test suite also passed on Node 24.21.0. Real LongCat delegation through Pi and MCP passed, as did package installation, the installed CLI, and MCP discovery. Pi 1.0.4 is the only host integration exercised; Codex, Claude Code, and OpenCode setup syntax is documented but not host-tested. See testing evidence for scope and usage for setup and tool examples.
Requirements: Node.js 24.15 or newer and a compatible Pi installation for the extension. From this checkout:
npm ci
npm run verify
pi -e /absolute/path/to/subzero/packages/pi/dist/index.jsnpm run verify builds all packages, typechecks the workspace, and runs the local test suite. The final command starts Pi with the Subzero extension; configure a model credential reference before spawning a child. The packages are not yet published to npm. See docs/USAGE.md.
To repeat the optional real LongCat delegation check, run cp -n .env.example .env, add an OPENCODE_API_KEY to .env if needed, then run npm run test:live. See the live test instructions for setup and platform limits. This command makes a real provider call; npm test and npm run verify stay offline.
- Provides
subzero_info,subzero_spawn,subzero_get,subzero_list,subzero_send,subzero_stop,subzero_resume, andsubzero_outputover one local MCP stdio server. - Keeps child identity, run state, queues, events, and checkpoint references in SQLite. A worker process runs only while a child has active or queued work.
- Requires explicit template grants and configured credential references. A child does not inherit tools, skills, MCP servers, or provider credentials from its host.
- Stores full results as local artifacts and returns bounded previews and event batches.
Children share the selected checkout. Write admission serializes Subzero workers; it does not control the host or other processes and is not an OS sandbox. Linux process-group cleanup was exercised for ordinary POSIX descendants. A process that deliberately detaches into a new session is outside that guarantee, and other operating systems remain untested.
The selected design and public contract are in docs/DESIGN.md; the implementation status is in docs/PLAN.md. The JSON Schemas and conformance fixtures are under packages/core/schemas and packages/core/conformance.
packages/contains the core contract, runtime MCP server, worker, and Pi extension.experiments/pi-sdk/contains the current Pi SDK and SQLite qualification sources and receipts.docs/contains usage, test evidence, the reference design, implementation record, and research decisions. Documentation index.docs/archive/contains historical experiments and reproducible source inputs; they are not part ofnpm run verify.
Reference clones, local agent skills, and the Pi technical manual are kept outside this checkout in the sibling subzero-reference-material/ directory.