Zeroshot

From akillness/jeo-skills · View interactive version

Zeroshot is an AI agent skill from the GitHub repository akillness/jeo-skills. Operate the-open-engine/zeroshot, the MIT-licensed agent orchestration system that routes a software task through a persistent graph of provider CLI agents, validators, worktree or Docker isolation, and optional PR delivery. Choose the established Node `zeroshot` product, the standalone `zeroshot-ru

How to use this skill

Skill file

ZeroShot agent orchestration

ZeroShot coordinates real provider CLIs through a persistent message graph. It can

modify code, spend provider credit, mount credentials, start several agents, push a

branch, open a pull request, merge it, preserve worktrees and ledgers, or delete that

state. Treat it as an execution control plane, not as a harmless prompt wrapper.

This skill was audited on 2026-08-27 against upstream main commit

362453b743ca1ef79d4fff3525f9db3cffdbf2ad. For the established Node lane, prefer the

successful v6.45.0 release commit

f015ffd66465b50613421717c323d14cef23df27 over the audited main, whose push CI had a

failing fake-provider E2E job. The separately released native lane was

zeroshot-rust-v0.4.0. Recheck releases, registry metadata, generated help, and CI

before installation or compatibility claims.

When to use this skill

Do not use this skill merely because a task could benefit from several agents. Use

task-planning, tdd, or one focused coding agent when one executor plus one test loop

is enough. Use ooo for a larger specification-first loop. Use code-review for review

of an existing diff or PR. Use harness2 when designing a reusable multi-agent team

rather than operating ZeroShot.

Instructions

1. Route one request to one mode

| Mode | User intent | First safe surface |

|---|---|---|

| fit | Decide whether ZeroShot is justified | task and risk classification, no install |

| install | Install or update a product | pinned release and host check |

| plan | Prepare a run | doctor, config validation, setup plan, preflight |

| execute | Start a new run | approval packet, then one exact command |

| observe | Read current state or logs | list, status, bounded logs |

| recover | Stop, resume, kill, or repair a run | status and terminal-reason evidence first |

| evidence | Export or audit a completed run | create-only export, content-free summary |

| target | Operate native local or remote execution | target and auth classification first |

| extend | Change ZeroShot source | owning subsystem and focused CI lane |

Do not install while still deciding fit. Do not execute while asked only to plan. Do not

turn observation into resume, cleanup, delivery, or update.

2. Choose one product contract

Never mix commands, state, run ids, or support claims across lanes:

| Product | Authority | Choose it for |

|---|---|---|

| Node zeroshot | npm @the-open-engine/zeroshot, Node CLI and source | established guided setup, provider registry, issue sources, worktree/Docker UX, resume, Node trace exports, PR workflow |

| Native zeroshot-rust | native release, generated Clap help | typed JSON/NDJSON, Windows, local or named targets, stable submission idempotency |

| Python zeroshot SDK | sdks/python, Rust sidecar | typed async control, durable handles, resumable streams |

Default to Node for established local software-change orchestration. Choose Rust or

Python only for a concrete native requirement. The Python source README advertised

pip install zeroshot-rust, but PyPI returned 404 and the release workflow failed at

publishing during this audit. Verify registry publication before recommending it.

Read product and installation for exact

requirements, version authority, lifecycle scripts, and installation boundaries. Read

native Rust and Python before any native target

or SDK work.

3. Freeze the task before spending or mutation

Write a run contract with:

zeroshot_plan:
  product: node  # node, rust, or python
  source_version: exact tag or commit
  repository: absolute path or remote
  base_branch: exact branch
  task: one bounded end state
  acceptance:
    - observable command and expected outcome
  non_goals:
    - explicit exclusions
  provider: exact id
  model_or_level: exact id or resolved level
  agents_and_workflow: bounded topology
  iteration_or_retry_limit: exact bound
  isolation: worktree | docker | current | native-local | named-target
  credentials_and_network: names and scopes, never values
  delivery: none | pr | ship
  cost_or_time_ceiling: explicit bound
  approval_needed: exact side effect

Ask for clarification when the acceptance criteria, base branch, provider, cost bound,

or delivery consequence is missing. A vague request such as "improve the codebase" is

not ready. Do not inflate complexity or wording to force a larger agent topology.

4. Inspect without secret disclosure

For the Node lane:

bash .agent-skills/zeroshot/scripts/zeroshot.sh doctor /path/to/repo

The helper reads versions, repository facts, settings presence, durable-state counts,

binary availability, and environment-variable presence. It never prints credential

values and never starts a ZeroShot run or provider. A missing binary is a blocked

capability, not

permission to install.

If Node ZeroShot is already installed, use its read-only setup contract:

bash .agent-skills/zeroshot/scripts/zeroshot.sh setup-plan /path/to/repo

zeroshot setup plan --json is tested upstream to omit secret-shaped fields. Applying

that plan writes settings and needs a separate request. Never store a global

defaultDelivery=ship simply to eliminate a warning.

Before Docker, Gateway, GH_TOKEN, environment forwarding, or a remote target, read

providers and security.

5. Validate configuration and isolation

For a custom Node graph:

bash .agent-skills/zeroshot/scripts/zeroshot.sh \
  validate-config ./workflow.json --strict

The upstream validator checks topology, topic producers and consumers, triggers,

variables, hooks, cycles, sub-cluster depth, provider ids, model levels, and forbidden

Git-state proof in validator prompts. A pass proves declared structure, not provider

access, prompt quality, or correctness.

Default to explicit worktree isolation. Use Docker only after reviewing effective mounts,

environment names, provider support, and network access. Current-checkout mutation needs

specific approval after showing branch and local changes.

The canonical Node resolver has important implications:

Guided setup recommending worktree is not proof that the recommendation was applied.

Always print an explicit isolation flag for a consequential run.

Read run and delivery before PR, ship, resume, finish,

schedule, or cleanup.

6. Produce a no-execution preflight

bash .agent-skills/zeroshot/scripts/zeroshot.sh preflight \
  --repo /path/to/repo \
  --input 'Add a --json flag with tests' \
  --isolation worktree \
  --delivery none \
  --provider codex

The helper validates safe local prerequisites and prints a shell-quoted proposed command.

It requires the installed Node product, Node 22+, a Git repo, and an explicit provider. It

adds token-free --sim fast, disables Docker mounts by default, and deliberately blocks:

The --allow-* flags mean approval already happened. Never pass them to bypass the

conversation. Preflight spends no provider credit, runs no agent, creates no branch, and

does not grant execution permission.

Present the run contract, helper output, unresolved risks, and exact proposed command.

Then wait for explicit approval.

7. Execute exactly the approved plan

Only after approval, run the unchanged command. If any provider, model, agent count,

input, base branch, credential scope, network tool, isolation, delivery mode, retry

limit, or cost bound changes, stop and re-approve.

A safe default execution shape is:

zeroshot run 'Add a --json flag with tests' \
  --worktree \
  --provider codex \
  --detach

This is an example, not blanket permission. --detach returns after startup. Foreground

run Ctrl+C stops the cluster, while attach Ctrl+C detaches and leaves it running.

Never give one universal Ctrl+C rule.

Delivery has distinct approvals:

Approval to run does not imply permission to PR or ship. Approval to PR does not imply

permission to merge.

8. Observe and recover from durable evidence

Use JSON status before taking action:

bash .agent-skills/zeroshot/scripts/zeroshot.sh status
bash .agent-skills/zeroshot/scripts/zeroshot.sh status <run-id>
zeroshot logs <run-id> -n 200

Logs can contain prompts, source, provider output, tool results, and external errors.

Show the smallest relevant excerpt and redact credentials. Distinguish process exit,

cluster terminal state, validator acceptance, delivery state, and hosting-platform state.

Recovery order:

  1. inspect status, agent states, last activity, terminal reason, workspace, and delivery;
  2. stop <id> for a graceful stop;
  3. inspect preserved state;
  4. request approval for another paid turn before resume;
  5. use kill <id> only when graceful stop is insufficient;
  6. use kill-all only for a confirmed global incident.

A resumed run can inherit provider session, worktree, delivery, and auto-merge state. Read

the effective plan again. Do not delete a ledger or worktree merely because a run failed.

Cleanup commands have different scopes. Use gc --dry-run where available, show the

candidate set, and confirm deletion. clean, purge, kill-all, settings reset,

uninstall, and recurring schedules always need explicit intent.

9. Verify behavior, separation, and delivery

A workflow reaching COMPLETE or a provider process exiting zero is not proof. Verify:

TRIVIAL local Node runs can use single-worker and have no independent validator.

Report that honestly. PR delivery routes trivial work through worker-validator, but a

template label still does not prove that validation completed.

Validators must inspect direct files and observable behavior. Upstream rules explicitly

reject git diff and git status as validation proof in concurrent workflows.

10. Export evidence without leaking content

Create, do not overwrite, a trace or semantic export:

zeroshot export <run-id> --format trace --output run.trace.jsonl
zeroshot export <run-id> --format semantic --output run.semantic.jsonl

Trace can contain exact prompts and raw provider output. Semantic export contains

canonical events and diagnostics. Treat both as sensitive.

Use the bundled standard-library verifier for a content-free report:

python3 .agent-skills/zeroshot/scripts/trace_summary.py \
  run.trace.jsonl --strict

It rejects symlinks, enforces bounded JSONL lines, verifies the upstream schema and

footer counts, validates base64 byte totals or semantic event totals, and prints counts,

issue codes, completeness, and SHA-256. It never prints prompts, message bodies, raw

output, or event payloads. Exit 2 means structurally valid but incomplete under strict

mode. Read workflows, state, and evidence

for export and command-proof contracts.

11. Extend the owning subsystem and run focused gates

When changing ZeroShot itself, locate the owning contract before editing:

For a Node change, run the narrow test first, then the relevant checked-in gates:

npm run typecheck
npm run lint
npm test

Provider and native changes have focused commands such as:

npm run check:agent-cli-provider:ci
npm run protocol:check
npm run rust:check

The full Node E2E and live-provider suites can be slow, networked, Docker-dependent, or

cost-bearing. Name what did and did not run. Never invoke test:providers:live without

provider approval. Rust source requires toolchain 1.85+ at the audited commit. Python

source gates require Python 3.11 and the pinned development extras.

Do not edit generated artifacts by hand, silently cross the Node/Rust ownership boundary,

or publish npm, native releases, containers, or PyPI artifacts without irreversible

release approval.

Examples

Example 1: Fit and plan a local code change

User: "Use ZeroShot to add JSON output to this CLI."

Action: Inspect the repository, freeze acceptance tests, choose the established Node

lane, run doctor, validate any custom config, and produce a worktree/no-delivery

preflight. Show provider, topology, iteration bound, credential exposure, cost ceiling,

and exact command. Wait for approval before zeroshot run.

Example 2: Open a PR but do not merge

User: "Have ZeroShot fix issue 123 and open a PR for review."

Action: Confirm the issue source, origin, base branch, provider, worktree or Docker,

forge CLI, and cost bound. Preflight --delivery pr, obtain approval for provider spend,

branch push, and PR creation, then run. Read back the PR URL and state from the forge.

Do not add --ship, call merge, or close the issue unless separately requested.

Example 3: Diagnose a stalled cluster

User: "Why is my ZeroShot run stuck?"

Action: Read status <id> --json, bounded logs, agent states, last activity, and

worktree/ledger presence. Identify the first blocked boundary. Do not resume, kill,

finish, clean, or remove state until the user chooses the recovery action.

Example 4: Verify an export safely

User: "Check whether this ZeroShot semantic export is complete, but do not show its

content."

Action: Run trace_summary.py FILE --format json --strict. Report schema, digest,

tasks, event and diagnostic counts, issue codes, and completeness. Never paste event

payloads or raw provider output.

Example 5: Use a native remote target

User: "Run the native software-change template on our target."

Action: Inspect live zeroshot-rust help, target origin and auth class, repository,

branch, template, exact runtime bindings, environment names, GH_TOKEN forwarding,

submission key, and delivery. Run --validate-only, show the materialized plan, and wait

for approval before submission. Read back remote and forge state after completion.

Best practices

0.0.0-development package value as Node release authority.

targets as separate privilege grants.

force-stop, cleanup, update, or release.

not final evidence.

delivered in every report.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.