Skip to main content

The `zu` command — Agent Production Runtime CLI

Project description

zu-cli

The zu command, the HTTP server, and the MCP server — the surfaces you drive Zu through. This package wires the same runtime path the import zu facade uses (config in → typed Result out), so the CLI, the server, and embedding are one runtime, not three.

This package registers no plugins; it consumes them.

Commands

Command What it does
zu run agent.yaml Run one task; streams a live trace. --every 5m for a scheduled worker, --no-stream for CI, --sandboxed to run contained.
zu init --template web Scaffold a starter agent.yaml (minimal / web / research).
zu demo Prove a real run end to end (--offline for a scripted self-test).
zu serve -c agent.yaml HTTP service: POST /run, POST /run/stream (SSE), GET /healthz. Needs [serve].
zu deploy local|compose|fly|render|dockerfile · zu pack Turn a config/bundle into a running/deployable service or image.
zu mcp An MCP stdio server so coding agents (Claude Code, Cursor, Codex) drive Zu — design/run, construct, explore, and report capability gaps. Needs [mcp].
zu plugins · zu test-plugin <pkg> List discovered plugins · run a plugin through the test gate (see zu-redteam).

The construction sequencetask + site → production agent, frontier spend bounded to one live capture (see docs/agent-construction-sequence.md):

Command What it does
zu capture <agent> Drive the target once (live) → fixtures/capture.json. The one live spend.
zu run <agent> --offline Replay the captured bundle at ~$0 (no model/network) — the free construction inner loop.
zu build <agent> The offline spine: build → record track → harden, gated on resilience.
zu harden <agent> Score a captured path against perturbed fixtures (offline brittleness audit + resilience).
zu construct <agent> [--check|--sandboxed] The anti-hardcode readiness gate (G1–G3) / the autonomous, contained construction loop.

Modules

main.py (the Typer app), config.py (config/task loading + assembly + shared coercion helpers), server.py (FastAPI), mcp_server.py, demo.py, deploy.py, scaffold.py, trace.py (the live train-of-thought formatter). The construction surface: offline.py (replay + FixtureSessionBackend), build.py, harden.py, guardrails.py, construct.py (the meta-agent driver + LiveStrategist), construct_sandbox.py (contained construction), explore.py (harness-driven pathfinding), contribute.py (capability-gap issues).

Tests

uv run pytest packages/zu-cli — offline. Fixture agents the suite drives live in tests/agents/ (the sole shipped example is examples/agents/vet-appointment/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zu_cli-0.2.0.tar.gz (120.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zu_cli-0.2.0-py3-none-any.whl (92.7 kB view details)

Uploaded Python 3

File details

Details for the file zu_cli-0.2.0.tar.gz.

File metadata

  • Download URL: zu_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 120.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zu_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d80d13f5f7455ab7a034a93f096fbef3a60c9edab160695ef2c49ac33e8f72cd
MD5 7f180f5e53b34fca1a16a61edbd80b2e
BLAKE2b-256 b9053cb1808f6128365459f93e4e681cc317f80c90128df890a70faa36aa8318

See more details on using hashes here.

File details

Details for the file zu_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zu_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 92.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for zu_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a90ae330344dd5c29dbb446d0dd123653f883dcf1ffde848e2beec0ab2ee9b3
MD5 e7c62dbcb80e925b2f991bc33ac8f9cc
BLAKE2b-256 3a00bfe93c7819a7e3c46323424682b7b4b83bad97fcf5723f2310df7b8e1543

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page