# Zeroshot

> One agent writes the change, independent agents review it, and an authored graph decides what happens next

- Category: AI Coding / Coding-Agent Harnesses & Runtimes
- Language: Rust
- Licence: MIT
- Repository: https://github.com/the-open-engine/zeroshot
- Website: https://the-open-engine.github.io/zeroshot/
- Canonical page: https://ai-tldr.dev/tools/zeroshot/
- Updated: 2026-09-26

## In short

Zeroshot is an open-source orchestrator built on one principle, stated at the top of its README: the agent that writes the code should not be the one that decides it works. It sits in the Coding-Agent Harnesses & Runtimes category of the AI Coding tools and is open-source, written in Rust and licensed MIT.

## Overview

Zeroshot is an open-source orchestrator built on one principle, stated at the top of its README: the agent that writes the code should not be the one that decides it works. It turns a software goal into an explicit multi-agent graph in which one agent implements, independent agents review, failures route back into bounded repair, and delivery happens only after the graph's checks pass.

The control flow is authored data rather than a loop hidden inside a prompt. Sequence, parallel review, retry paths, delivery and exit conditions are all fixed before a run starts, no runtime agent chooses the next step, every transition is bounded, and every event is written to a durable SQLite ledger. The built-in software-change graph gives the goal to a worker, runs acceptance review and code review independently and in parallel, sends rejected evidence to a repair worker and repeats both reviews, and — with delivery enabled — ships an accepted change through Git, CI and merge, routing delivery conflicts back through repair and review.

Delivery is an explicit choice: keep the work local, push the managed branch, prepare a mergeable pull request, or ship it. Besides software-change, the project includes a smaller single-worker template with no review loop and an auto-research graph that runs ten bounded iterations of scouts and judges, keeping, recording or rejecting each experiment under .zeroshot/research. You can inspect the built-in graphs or supply your own.

The same graph and runtime plan run in three places. Local mode works in your Git worktree and reuses an existing Codex or Claude Code login, including subscription-backed sessions. A self-hosted Docker target image bundles the native engine with pinned Codex, Claude and GitHub Copilot harness CLIs, and the hosted Zeroshot Cloud target offers a shared team queue and durable run history. From v8 onward the product is a native zeroshot executable written in Rust, distributed through npm, with a browser UI and a Python SDK; it is released under the MIT license.

## What it does

- Executor–verifier split: one worker implements while acceptance review and code review run independently and in parallel
- Graphs as authored data — sequence, retries, delivery and exit conditions are explicit and bounded before a run starts
- Every run event recorded in a durable SQLite ledger, with list, status and logs commands and a browser UI for live and completed runs
- Explicit delivery modes: keep changes local, push the branch, prepare a pull request or ship through CI and merge
- Built-in software-change, single-worker and auto-research templates, plus custom graphs via --graph or the Python SDK
- Resume a failed run on its latest saved workspace or from an earlier checkpoint, locally, on a Docker target or in Zeroshot Cloud

## Getting started

Zeroshot installs as a native binary through npm and runs locally against an installed harness such as Codex or Claude Code. These steps follow the project's README and its "Run a first task" guide, which runs the software-change graph in the current Git worktree with pull-request and merge delivery disabled. The worker edits the current worktree, so commit or stash anything you want to protect first.

1. Install the CLI

   The npm package installs a verified native binary for Linux x64/arm64, macOS x64/arm64 or Windows x64, plus a Zeroshot skill for Codex, GitHub Copilot and Claude Code at user scope.

```bash
npm install -g @the-open-engine-company/zeroshot
```

2. Inspect the built-in graphs

   Print the exact graph behind each template before you run it.

```bash
zeroshot template list
zeroshot template show software-change
```

3. Write the input and runtime files

   The software-change template expects an object with a task string in input.json. A uniform runtime in runtime.json applies one agent configuration to every node; replace the model placeholder with an identifier your provider accepts. Locally, Zeroshot reuses the installed Codex CLI's login.

```json
{
  "task": "Add JSON output to the status command and cover it with focused tests."
}

{
  "harness": "codex",
  "provider": "openai",
  "model": "YOUR_MODEL_ID",
  "effort": "high"
}
```

4. Validate, then start the run

   --validate-only checks the input, graph and runtime without starting anything and prints {"valid":true} on success. Remove the flag to start the run; the foreground command streams newline-delimited JSON as the graph advances.

```bash
zeroshot run \
  --title "Add JSON status output" \
  --template software-change \
  --input input.json \
  --uniform-runtime-config runtime.json \
  --validate-only
```

5. Watch and inspect the run

   Ctrl-C closes the stream without stopping the run. Read its durable state from another terminal, or open the workspace UI at http://127.0.0.1:4173/ui/ to see the graph and node transcripts.

```bash
zeroshot list
zeroshot status RUN_ID
zeroshot logs RUN_ID
zeroshot ui
```

## When to use it

- Reach for it when you want a coding agent's change checked by separate reviewer agents before anything is committed, pushed or merged
- Use it to take a task all the way to a mergeable pull request or a merged change, with CI failures and conflicts routed back through repair and review
- Run agent work on infrastructure you control with the Docker target, or on a shared team queue with Zeroshot Cloud, using the same graph as locally
- Run bounded, reversible research loops with the auto-research template, where judges decide whether each experiment's workspace changes are kept

## Version history

- 2026-09-26 v10.9.0: Failed local and direct-target runs can resume from a saved node or concurrent group, with snapshots kept in an encrypted, deduplicated Restic repository. Docker and hosted targets also gained run-scoped environments with optional setup and startup scripts.
- 2026-09-23 v10.8.0: A local Zeroshot UI can read run history from a configured direct or hosted target through one target-neutral history contract.
