zero-context-lab

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT

README

Zero Context Lab (ZCL)

Zero Context Lab

Release CI Entropy Guard Go Version Homebrew (planned) npm (planned) License

ZCL helps you build better agentic tools by testing them with real agents and turning each run into structured evidence.

You run a mission through ZCL, record the final result, and get a clear breakdown of what happened:

  • how many turns/actions the agent needed
  • how many tokens it used (when runner usage is available)
  • where retries, timeouts, or friction happened

This makes it easier to improve command design, naming, and defaults so agents complete tasks faster with fewer mistakes.

Design Contract

  • Evidence comes from artifacts and traces.
  • Scoring is runner-agnostic.
  • Artifact shapes are deterministic and versioned.
  • Captures are bounded and redacted by default.
  • Operator workflows are JSON-first for automation.

Install

Current install path (from source):

go build -o bin/zcl ./cmd/zcl
./install.sh --file ./bin/zcl
zcl version

Alternative (Go toolchain install):

go install github.com/marcohefti/zero-context-lab/cmd/zcl@latest

Planned distribution channels (not published yet):

  • Homebrew: brew install marcohefti/zero-context-lab/zcl (after the first tagged release)
  • npm: npm i -g @marcohefti/zcl (after npm publishing is enabled)

Quick Start (Single Attempt)

  1. Initialize workspace:
zcl init
  1. Allocate attempt and write an env file:
zcl attempt start \
  --suite smoke \
  --mission hello-world \
  --prompt "Run echo hello and finish with zcl feedback." \
  --isolation-model native_spawn \
  --env-file .zcl/current-attempt.env \
  --env-format sh \
  --json
  1. Load attempt env:
source .zcl/current-attempt.env
  1. Run actions through a funnel:
zcl run -- echo "hello"
  1. Finish with canonical outcome:
zcl feedback --ok --result "HELLO=hello"
  1. Compute + validate:
zcl attempt finish --strict --json
zcl attempt explain --json

Quick Start (Suite)

Native host orchestration path (preferred when host supports native fresh session spawn):

zcl suite plan --file suite.yaml --json

Process-runner fallback path:

zcl suite run \
  --file suite.yaml \
  --session-isolation process \
  --json \
  -- <runner-cmd> [args...]

Artifact Layout (Default)

Root: .zcl/

.zcl/
  runs/<runId>/
    run.json
    suite.json                  (optional snapshot)
    suite.run.summary.json      (optional)
    run.report.json             (optional)
    attempts/<attemptId>/
      attempt.json
      prompt.txt                (optional snapshot)
      tool.calls.jsonl          (primary evidence)
      feedback.json             (primary evidence)
      notes.jsonl               (optional)
      captures.jsonl            (optional)
      attempt.report.json       (computed)
      runner.ref.json           (optional)
      runner.metrics.json       (optional)

Command Surface

Core commands:

  • zcl init
  • zcl contract --json
  • zcl attempt start|finish|explain
  • zcl suite plan|run
  • zcl run
  • zcl mcp proxy
  • zcl http proxy
  • zcl feedback
  • zcl note
  • zcl report
  • zcl validate
  • zcl expect
  • zcl replay
  • zcl doctor
  • zcl gc
  • zcl pin
  • zcl enrich

For machine-readable command + artifact contract:

zcl contract --json

Developer Flow

Single repo gate:

./scripts/verify.sh

This runs formatting/tests/vet + contract/docs/skills checks.

Docs Map

  • PLAN.md (execution checklist)
  • CONCEPT.md (why + non-negotiables)
  • ARCHITECTURE.md (system model + command map)
  • SCHEMAS.md (exact v1 schemas and canonical IDs)
  • AGENTS.md (operator workflow + builder index)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL