npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-conveyor

v0.1.26

Published

Local agent manager/worker conveyor control plane for Codex sessions.

Readme

Codex Terminal Manager

A Mac-first prototype for letting one Codex session supervise and gently steer another Codex session running in a terminal.

The goal is not full autonomy. The goal is lightweight supervision for Codex tasks that mostly need progress checks, occasional nudges, test reruns, or clean stop/resume handling.

Motivating Principles

  • Project workflows often need nudging. Some Codex tasks do not need a second implementer; they need a manager that keeps watching, asks for status at the right time, unblocks predictable terminal prompts, and gently steers the worker back toward the user's goal.
  • Useful acceptance criteria often emerge during the work. Even when the user starts with a plan, implementation reveals new edge cases, missing tests, unclear polish requirements, and follow-up decisions. The manager should help discover, record, defer, satisfy, and audit these emergent acceptance criteria instead of assuming the whole checklist can be known up front.
  • Supervision should be durable and replayable. Manager observations, nudges, interrupts, handoffs, compaction requests, and final decisions should leave enough structured history to understand why the worker was pushed and what evidence supported finishing or continuing the task.

Burden Of Proof

Before declaring work complete, try to disprove the change. Identify the strongest realistic failure mode, verify it with a command, test, trace, screenshot, audit record, diff, or direct inspection, and include that evidence in the final handoff. Treat done, tests passed, worker claims, passing happy-path tests, generated summaries, and optimistic UI as claims, not proof. Treat unverified assumptions as blockers or explicit follow-ups.

See docs/agent-evidence-playbook.md for the repo-specific evidence ladder, receipt options, and final handoff shape agents should use when closing out work.

Architecture

Supervision is built on three primitives: sessions, tasks, and bindings.

  • Worker session. A Codex session running inside a named tmux session. Workers own a rollout JSONL on disk (~/.codex/sessions/.../rollout-*.jsonl) which Agent Conveyor ingests for state inference.
  • Manager session. A Codex session running anywhere — Ghostty, iTerm2, Terminal.app, or a web terminal. The manager does not need to run inside tmux. Its job is to call conveyor commands, read their JSON output, and decide whether to nudge, interrupt, finish, or wait.
  • Task. A unit of supervised work. A task has a goal and optional summary/manager instructions.
  • Binding. A row that ties one worker session and one manager session to one task. Bindings are explicit and durable.

The manager Codex drives the supervision loop by calling conveyor cycle <task> repeatedly. Each cycle ingests new events from the worker's rollout, captures the worker's tmux pane as a shadow signal, and returns structured JSON. The manager reads that JSON and decides what to do.

tmux owns the worker PTY. Ghostty, iTerm2, Terminal.app, or ttyd can be viewers, but they should not be the source of truth for orchestration.

manager terminal
  Codex manager session
    |
    | runs conveyor commands (cycle, session-nudge, ...)
    v
tmux session: codex-worker-a
  pane 1: Codex worker session
  pane 2: optional dev server, tests, or logs

.codex-workers/
  workerctl.db         <- authoritative SQLite control plane
  worker-a/            <- ignored runtime artifacts
    status.json
    transcript.txt
    events.jsonl

Non-Goals

  • Cross-platform support.
  • Browser-first orchestration.
  • Full terminal emulator automation.
  • Autonomous merging or destructive git actions.
  • Managing many workers at once.

Install

For users, install the published Agent Conveyor package with npm:

npm install -g agent-conveyor
conveyor install-skills
conveyor doctor

The package name is agent-conveyor. The installed CLI exposes both conveyor and the compatibility command workerctl. conveyor install-skills installs the manage-codex-workers and codex-review skills into $CODEX_HOME/skills or ~/.codex/skills. The codex-review install includes the guarded review helper used by the QA and PR closeout flows.

For contributors working from this checkout, use the local installer instead:

scripts/install-local --write
export PATH="$PWD/bin:$PATH"

To test unreleased packaging changes before publish, install a local npm tarball into a temporary prefix:

npm run build
npm pack
tmp_prefix="$(mktemp -d)"
npm install -g --prefix "$tmp_prefix" ./agent-conveyor-*.tgz
PATH="$tmp_prefix/bin:$PATH" conveyor --help
PATH="$tmp_prefix/bin:$PATH" workerctl --help

conveyor doctor --json reports local dependency health (tmux, codex, etc.), package/bin resolution, Codex home, installed operator plugin version, installed operator skills, and an operator_ready summary for Codex app manager/worker setup. conveyor db-doctor initializes and checks the SQLite control-plane database. On Node versions where node:sqlite is still marked experimental, SQLite commands can also print an ExperimentalWarning to stderr while returning successful JSON. Treat that warning as expected Node runtime noise when the command exits 0 and the JSON result reports "ok": true. Before publishing agent-conveyor to npm, use docs/package-release.md. The preferred publish path is the manual GitHub Actions publish.yml workflow with npm Trusted Publishing enabled for the npm-production environment. Use publish=false for artifact review and publish=true only for an approved release version that is not already on npm.

For common manager setups, start with docs/manager-recipes.md. It maps natural-language requests such as GoalBuddy conveyor runs, test coverage loops, UX polish loops, what-next nudging, PR/CI/merge Ralph loops, and autonomous ship-it loops to concrete manager-config settings, permissions, evidence gates, cleanup behavior, and example manager/Dispatch/worker interactions. Use conveyor manager-recipes --list or conveyor manager-recipes --show goalbuddy-conveyor --json for a machine-readable setup preview. For a package-facing overview of these modes, open docs/landing-page.html locally or host it as a static landing page. From the repo, npm run docs:landing serves it at http://127.0.0.1:8765/. The GitHub Pages version lives at neonwatty.github.io/agent-conveyor. Pages deploys from the protected landing-page branch through the Pages GitHub Actions workflow; propose public landing-page edits against that branch rather than relying on ordinary main package PRs to publish the site. Pull requests into landing-page run the Landing Page PR workflow, which checks linting, unused exports/files, tests, build output, the landing-page screenshot gate, and a diff-scoped max-lines guard for changed text files. Use node scripts/check-landing-page.mjs for a docs-only desktop/mobile screenshot gate; this does not run the full package release smoke.

Codex Operator Plugin

Agent Conveyor also ships Codex-app-only operator scaffolding for visible manager/worker sessions from any project. Install the package, then install and inspect the plugin:

npm install -g agent-conveyor
conveyor install-plugin
conveyor doctor --json

The per-project default ledger for operator sessions is .codex-workers/workerctl.db. The initial included skills are conveyor-app-wake-relay, conveyor-smoke-app-connections, conveyor-create-pair, conveyor-create-worker-set, conveyor-check-status, and conveyor-whats-next-nudger.

After install, the intended Codex app entry point is natural language. Open a new Codex app session in the target repo and say:

Use the conveyor-create-pair skill.

Set up a Codex app Ralph loop for issue CTL.
Require adversarial proof before another worker iteration.

For multiple workers, start with Use the conveyor-create-worker-set skill. The installed plugin skill should call the conveyor CLI, choose names, create the no-tmux binding with create-disposable-binding, point the worker at worker-inbox, and use loop-status plus telemetry receipts before reporting that the loop is ready. Pair and worker-set skills run conveyor-smoke-app-connections before real task work by default. Required smoke first checks package/plugin/ledger/thread metadata, then starts a nonce-scoped app-smoke session and blocks real work until the worker has accepted smoke and delivered the manager report, then the manager validates that report. Both roles need visible app-thread send receipts, fresh app heartbeats, durable received/accepted acknowledgements, and an app-smoke status result with real_work_allowed=true. The plain CLI records and evaluates receipts; the Codex app skill/operator layer must perform live send_message_to_thread delivery and record sent, blocked, or skipped/advisory evidence. If a smoke role blocks and later succeeds, the later accepted receipt for the same smoke id/nonce becomes the current terminal role state. After required smoke passes, pair and worker-set skills start app-autopilot before real work so the just-proved sessions keep polling. A setup is autonomous only when the emitted heartbeat automation specs have been applied and recorded with app-autopilot record-automation, or explicitly deferred as manual-poll only; smoke-passed by itself only proves connection plumbing at that moment. When the manager is itself running in the Codex app and thread tools are available, the skill should first call create_thread for a fresh same-project worker, name it with set_thread_title, pass the returned thread identity through --worker-codex-app-thread-id and --worker-codex-app-thread-title, and use send_message_to_thread only to deliver the generated worker_handoff bootstrap prompt. The raw terminal conveyor CLI does not create Codex app threads by itself; if app thread tools are unavailable, open a separate Codex app worker manually and paste the worker_handoff prompt. After a worker consumes a manager instruction, its completion or blocker report must go back through the generated enqueue-notify-manager command and a bounded Dispatch watch tick; a direct Codex app final answer is not a durable manager receipt. The live manager and worker sessions should also be readable as the primary operator transcript: after consuming an inbox item, the consuming session must print CONVEYOR POLL, CONVEYOR RECEIVED, WORK, CONVEYOR SEND, and DISPATCH sections while the turn is happening. SQLite/replay/status output is audit proof, not a replacement for the live session story. Idle polls may be a single CONVEYOR IDLE line.

For bounded follow-up passes after the first worker result, use Use the conveyor-whats-next-nudger skill.

For stale Codex app roles, use Use the conveyor-app-wake-relay skill. It runs app-wakeup-dispatch, sends only prepared send_ready=true prompts with Codex app thread tools, and records sent, skipped, or blocked delivery receipts with app-wakeup-record-delivery. The app-thread prompt wakes the session to poll; it is not durable task truth.

Dispatch is core infrastructure for supervised worker/manager pairs. The pair workflow starts a detached Dispatch watch process by default so worker completion is routed to the bound manager mechanically. For manually bound pairs, run Dispatch in a separate shell:

conveyor dispatch --watch --dispatcher-id dispatch-local

Use conveyor qa-plan dispatch-completion for a bounded verification flow, or conveyor qa-plan ralph-loop for the repeated PR/CI/merge/context-clear dogfood loop. Use conveyor qa-plan adversarial-triggers to verify natural-language manager prompts activate Ralph-loop adversarial gates. Use conveyor qa-plan goalbuddy-conveyor when a broad request should become sequential GoalBuddy child boards with PR/CI/merge receipts. Use conveyor qa-plan ship-it-loop when a manager is allowed to push a branch, open a PR, monitor CI, resolve bounded conflicts, and merge only after explicit manager-owned merge evidence. Before cutting a manager loose, have it resolve the freeform setup request to a named recipe from docs/manager-recipes.md or an explicit custom setup, then show the saved mode, permissions, evidence gates, cleanup policy, and disallowed actions. For manual QA, launch the dashboard with Dispatch enforcement so the page can show live proof:

conveyor dashboard --task <task> --ensure-dispatch --dispatcher-id qa-dispatch-dashboard

Quickstart

The fastest way to start a worker and register it is a single command:

# One command: spawn codex in tmux, wait for it to come up, register as worker
conveyor start-worker --name foo --cwd "$PWD" --task "Refactor auth"

# Register a manager. Managers do not need to run inside tmux.
MGR_PID=$$   # if your current shell is the manager; otherwise find its pid
conveyor register-manager --name foo-mgr --pid $MGR_PID --cwd "$PWD"

# Create a task and bind the pair to it.
conveyor tasks --create my-task --goal "Refactor auth"
conveyor bind --task my-task --worker foo --manager foo-mgr

# Start Dispatch in another shell so worker completion wakes the manager.
conveyor dispatch --watch --dispatcher-id dispatch-local

# One observation cycle. Returns JSON.
conveyor cycle my-task

# Optionally nudge the worker through its tmux pane.
conveyor session-nudge foo "What's your current state?"

# When the task is complete:
conveyor finish-task my-task --reason "auth refactor merged" --capture-transcript-before-stop --stop-manager --stop-worker
conveyor unbind --task my-task
conveyor deregister foo
conveyor deregister foo-mgr

For manual registration of a pre-existing Codex session:

# Start a Codex worker inside a fresh tmux session.
tmux new-session -d -s codex-foo
tmux send-keys -t codex-foo "codex" Enter
# (Wait a moment for codex to come up.)
WORKER_PID=$(pgrep -f "codex.*--sandbox" | head -1)

# Register the worker. lsof auto-discovers the rollout JSONL from the pid.
conveyor register-worker --name foo --pid $WORKER_PID \
  --cwd "$PWD" --tmux-session codex-foo

If lsof discovery fails (e.g. the codex session was started ephemerally), pass the rollout path explicitly with --codex-session ~/.codex/sessions/.../rollout-...-<uuid>.jsonl.

To register a manager session that's already running:

# If the codex is already running and you know its pid:
conveyor register-manager --name my-mgr --pid 28975

# register-manager runs `lsof -p <pid>` to find the rollout JSONL.
# If the codex hasn't written its rollout yet (no input typed),
# you'll get a hint asking you to type something in the codex prompt and retry.

# Or pass --codex-session explicitly to bypass the lsof probe:
conveyor register-manager --name my-mgr --pid 28975 \
    --codex-session /path/to/rollout.jsonl

Note: lsof is the canonical pid→rollout lookup. find -newermt is unreliable because filesystem mtime resolution and parsing of "X minutes ago" varies — lsof reads the open fd directly.

For low-risk verification without a real task, conveyor start-test <name> creates a worker, asks it to update only its ignored status.json, and leaves the tmux session attached:

conveyor start-test live-test --cwd "$PWD" --accept-trust --open
tmux attach -t codex-live-test

Commands

Campaigns

  • campaign create --name C --objective TEXT [--metadata-json JSON] [--json] — Create a campaign record for a multi-worker initiative.
  • campaign add-slot --name C --slot-key K --role-label TEXT [--channel CH] [--session-id S] [--thread-id ID] [--thread-title TITLE] [--state planned|active|idle|blocked|archived] [--metadata-json JSON] [--json] — Add a named worker slot to a campaign. If --session-id is supplied, the runtime verifies that it is a registered worker session.
  • campaign attach-slot --name C --slot SLOT_ID [--session-id S] [--thread-id ID] [--thread-title TITLE] [--state planned|active|idle|blocked|archived] [--metadata-json JSON] [--json] — Attach or refresh worker-session and Codex app thread metadata for an existing campaign slot. Supplying --session-id requires a registered worker session.
  • campaign rotate-slot --name C --slot SLOT_ID --expected-thread-id OLD --thread-id NEW [--thread-title TITLE] [--session-id S] [--state planned|active|idle|blocked|archived] [--json] — Record a campaign-owned worker slot rotation. The command refuses to update the slot unless OLD matches the slot's current Codex app thread id.
  • campaign archive-slot --name C --slot SLOT_ID --expected-thread-id CURRENT [--json] — Mark a campaign worker slot archived only when the expected current thread id matches the slot record.
  • campaign brief --name C --channel CH --brief-json JSON [--json] — Upsert the structured brief for a channel.
  • campaign assign --name C --slot SLOT_ID --title TEXT --instructions TEXT [--status queued|active|blocked|done|cancelled] [--metadata-json JSON] [--json] — Create a slot-scoped assignment.
  • campaign asset --name C --slot SLOT_ID --asset-type image|video|hyperframes|copy|audio|other --title TEXT [--assignment ASSIGNMENT_ID] [--channel CH] [--status draft|needs_review|approved|rejected|published] [--prompt-summary TEXT] [--artifact-path PATH] [--metadata-json JSON] [--review-notes TEXT] [--allow-additional-receipt] [--json] — Record a structured creative asset receipt. Assignment-scoped receipts are one-per-assignment by default; use --allow-additional-receipt only for intentional variants or revisions.
  • campaign status --name C [--json] — Show campaign metadata, worker slots, channel briefs, assignment counts, and asset receipt counts.
  • campaign dashboard --name C [--json] — Show a manager-oriented campaign aggregate: worker slot lifecycle states, blockers, approval counts, and the next recommended manager action. This is also the supported way to inspect asset receipts and per-slot receipt counts; there is no separate campaign assets subcommand.
  • campaign closeout --name C [--failure-mode TEXT] [--json] — Produce a read-only closeout report from the campaign dashboard, including verdict, worker thread ids, blockers, receipt counts by assignment, proof checks, and the strongest realistic failure mode evidence to carry into a manager/operator handoff.

Creative Ops Campaign manager loop:

conveyor campaign create --name "$CAMPAIGN" \
  --objective "Produce reviewable channel assets." --json
conveyor campaign add-slot --name "$CAMPAIGN" --slot-key tiktok \
  --role-label "TikTok worker" --channel tiktok \
  --thread-id "$TIKTOK_THREAD_ID" --thread-title "TikTok Worker" \
  --state active --json
conveyor campaign brief --name "$CAMPAIGN" --channel tiktok \
  --brief-json '{"format":"9:16","review_gate":"human approval before publish"}' --json
conveyor campaign assign --name "$CAMPAIGN" --slot "$SLOT_ID" \
  --title "Draft TikTok hooks" \
  --instructions "Create reviewable draft copy only; do not publish." \
  --status active --json
conveyor campaign asset --name "$CAMPAIGN" --slot "$SLOT_ID" \
  --assignment "$ASSIGNMENT_ID" --asset-type copy \
  --title "TikTok hooks v1" --status needs_review \
  --prompt-summary "Sanitized prompt summary only." --json
conveyor campaign dashboard --name "$CAMPAIGN" --json
conveyor dashboard --campaign "$CAMPAIGN" --ensure-dispatch

Use campaign rotate-slot or campaign archive-slot only with the exact current --expected-thread-id for that campaign slot. Public publishing, scheduling, posting, external account access, private phone content, raw audio, tokens, JWTs, keys, archives, and IPAs require explicit human approval or must stay out of receipts.

Sessions and binding

  • start-worker --name N [--cwd D] [--task "..."] [--sandbox SANDBOX] [--ask-for-approval ASK_FOR_APPROVAL] [--accept-trust] [--timeout-seconds N] — Spawn Codex in a fresh tmux session and register it as a worker in one call. The fastest way to start a supervised worker. Internally: tmux new-session
    • codex + poll for rollout + register-worker.
  • start-manager --name N [--cwd D] [--task T] [--task-goal G] [--worker W] [--sandbox SANDBOX] [--ask-for-approval ASK_FOR_APPROVAL] [--accept-trust] [--timeout-seconds N] — Spawn Codex in a fresh tmux session and register it as a manager in one call. Mirrors start-worker but uses a manager bootstrap prompt instead of a worker task prompt. When --task, --task-goal, and --worker are supplied, the bootstrap is ready for late attach: it names the task, goal, worker session, and concrete manager-config, cycle, manager-ack, and worker-ack commands. If manager config has already been recorded for the task, the bootstrap tells the manager to start with cycle instead of asking setup questions again. Without those flags, the bootstrap asks the manager to collect the missing supervision details before cycling.
  • pair --task T --worker-name W --manager-name M [--cwd D] [--task-prompt PROMPT] [--task-goal GOAL] [--task-summary S] [--manager-objective O] [--manager-guideline G ...] [--manager-acceptance A ...] [--sandbox SANDBOX] [--ask-for-approval ASK_FOR_APPROVAL] [--accept-trust] [--timeout-seconds N] [--dispatcher-id ID] [--no-dispatch] — One-shot: spawn worker + manager and bind to a task in a single command. Combines start-worker + start-manager + bind. The task is looked up or created (if --task-goal is provided); if the task does not exist and no goal is given, an error is raised with a hint. The worker receives the optional --task-prompt as its initial Codex prompt; the manager receives a manager bootstrap prompt with the task, goal, worker name, manager configuration status, and cycle commands. pair records a default guided manager config before launching the manager, so retries against an existing task do not fall back into setup-question mode. If manager config flags are supplied (--manager-mode, --manager-objective, repeated --manager-guideline, --manager-acceptance, --manager-reference, or manager permission flags), those values are merged into the seeded config and the bootstrap tells the manager to start supervising with cycle instead of asking setup questions first. Manager acceptance entries are also seeded into the living acceptance criteria ledger when they do not already exist for the task. By default pair starts a detached dispatch --watch process after successful worker/manager setup, bind, and run creation. Use --dispatcher-id to set its identity or --no-dispatch for isolated/manual workflows. A live dispatch heartbeat is reused only when it has the same dispatcher id; otherwise pair starts the requested dispatcher so audit receipts keep the configured identity. If the manager or bind fails after the worker is spawned, the worker remains registered and can be cleaned up with conveyor deregister. Use --accept-trust only for directories you intentionally trust; it retries Enter during startup discovery so fresh workspaces do not stall before registration.
  • register-worker --name N [--pid P | --codex-session PATH] [--cwd D] [--tmux-session S] [--codex-app-thread-id ID] [--codex-app-thread-title TITLE] — Register an already-running Codex session as a worker. Rollout JSONL is auto-discovered from the pid via lsof unless --codex-session is given. The optional Codex app thread flags are metadata supplied by the Codex app skill/tool layer; they help humans identify the app thread but do not change rollout ingest or Dispatch delivery.
  • register-manager --name N ... — Same arguments; tmux is not required. Both registration commands print a communication object. When --tmux-session is present, communication.session_kind='tmux', receive_style='push', and delivery_mode='push'; without tmux but with a Codex rollout identity, session_kind='codex_app', receive_style='pull', and delivery_mode='pull_required', with the role-specific inbox polling command template. The generated command may include a local PATH=.../bin:$PATH conveyor prefix; preserve that prefix when sending the command to a Codex app thread.
  • deregister <name> — Mark a session gone. Refuses if the session is bound to an active task.
  • sessions [--role worker|manager] [--state active|gone|all] [--include-legacy] [--name N ...] [--redact-identity-token] — List registered sessions. By default, sessions shows active registered sessions and hides Phase 1 backfill rows (legacy pre-redesign workers/managers, identified by pid IS NULL) plus rows marked state='gone'. Pass --state all to show every row, or --state gone to inspect only gone rows:
    conveyor sessions                    # active registered sessions only
    conveyor sessions --state active     # explicit equivalent of the default
    conveyor sessions --state gone       # gone sessions only
    conveyor sessions --state all        # active, gone, and legacy rows
    conveyor sessions --name <session> --redact-identity-token
    For shareable QA evidence, prefer repeating --name for just the sessions in scope and include --redact-identity-token; unfiltered output can include unrelated active sessions and their registration tokens. Each session row includes the same communication block emitted by registration, so managers can detect whether a worker or manager is tmux-push capable or must poll its mailbox.
  • tasks [--create NAME --goal G --summary S] — List or create tasks.
  • create-disposable-binding TASK [--worker NAME] [--manager NAME] [--template TEMPLATE | --required-before-continue TYPE] [--adversarial] [--worker-codex-app-thread-id ID] [--worker-codex-app-thread-title TITLE] [--manager-codex-app-thread-id ID] [--manager-codex-app-thread-title TITLE] — Create a no-tmux manager/worker binding for real Ralph-loop slices. The helper creates the task when missing, marks it managed, writes valid Codex rollout JSONL files, registers worker and manager sessions with tmux_session=null, binds them, optionally creates a template-backed or custom Ralph-loop policy run, and prints replay commands for Dispatch, loop-status, per-session communication metadata, plus a worker_handoff prompt that tells Codex app workers to keep polling their worker inbox through the bounded loop using the exact generated command. For pull-required Codex app sessions, the JSON output also includes heartbeat_recommendations with role-specific poll prompts; Dispatch can deliver into those inboxes, but a heartbeat or operator wake-up is still required to make an idle app thread poll autonomously. The worker handoff and worker heartbeat prompt also include the exact durable enqueue-notify-manager and one-iteration dispatch --watch commands that a worker must run after completing or blocking on a consumed item. Those prompts require live session transcript blocks for consumed items, so the operator can inspect the actual Codex app sessions and see the same flow the durable inbox later proves. Those recommendations also include wakeup_dispatch_command and delivery_receipt_commands for app-thread wake recovery. Use them to record sent, skipped, and blocked wake outcomes after app-wakeup-dispatch; an app-thread send is not task completion. The recommendations include a teardown_policy: an idle poll is only a quiet interval, not a reason to delete or pause heartbeat automation; heartbeat teardown belongs to the manager/operator after terminal closeout or explicit operator instruction. For same-thread Codex app visible-session dogfood, prefer --template app_visible_build_loop or a custom adversarial gate; reserve cleanup-gated templates such as build_then_clear for flows that create a fresh worker context or can record a real cleanup receipt between iterations. The optional Codex app thread metadata is normally supplied after a Codex app manager has used create_thread and set_thread_title; terminal-only users can omit it and still use the manual no-tmux handoff.
  • app-heartbeat TASK --role manager|worker [--dispatcher-id ID] [--stale-after N] [--json] — Record a Codex app/no-tmux manager or worker heartbeat for the active binding and return that role's next poll commands. Use this as the recurring heartbeat command for pull-required app sessions.
  • app-loop-status TASK [--dispatcher-id ID] [--stale-after N] [--json] — Summarize manager lease, worker lease, Dispatch heartbeat, and next required actions for an app-native Conveyor loop.
  • app-wakeup-plan TASK [--dispatcher-id ID] [--stale-after N] [--json] — Emit exact manager and worker thread wake prompts, including app thread ids and titles when present, for an operator or Codex app automation to send.
  • app-wakeup-dispatch TASK [--dispatcher-id ID] [--stale-after N] [--json] — Prepare adapter-ready Codex app wake actions and record a telemetry receipt for prepared, skipped, and blocked role wakeups. This command does not send send_message_to_thread; the Codex app/operator layer sends prompts whose actions report send_ready=true.
  • app-wakeup-record-delivery TASK --role manager|worker --dispatch-receipt ID --delivery-status sent|skipped|blocked [--thread-id ID] [--reason TEXT] [--json] — Record what the Codex app/operator layer did with a wake action. sent is accepted only when the referenced app-wakeup-dispatch receipt has a matching ready_to_send action with send_ready=true and the same thread id; healthy roles must be recorded as skipped; missing-thread blockers and failed app-thread sends must be recorded as blocked with a reason.
  • app-autopilot start|stop|status|record-automation TASK [--dispatcher-id ID] [--interval SECONDS] [--watch-iterations N] [--stale-after N] [--quiet-after N] [--role manager|worker --automation-id ID] [--json] — Manage the pair-level app-native heartbeat policy for the active manager/worker binding. start and stop write telemetry receipts and emit the exact manager/worker Codex app heartbeat automation specs plus the bounded Dispatch watch command. A plain shell CLI cannot call Codex app thread tools, so create/pause those heartbeat automations from a Codex app operator session using the emitted specs, then run record-automation once per created role automation. Conveyor remains the durable source of truth through Dispatch, inboxes, automation-applied receipts, wake receipts, and app heartbeat status. status reports plan.readiness; do not call a loop autonomous unless plan.readiness.autonomous_ready=true. status also reports plan.quiescence: when the loop is healthy, has no next_actions, and both roles have produced --quiet-after paired heartbeats since the last command or inbox-consumption receipt, it recommends stop_autopilot so operators can quiesce blocked/no-progress loops instead of repeating idle pulses.
  • app-smoke preflight|start|record|status TASK [--mode required|advisory|skip] [--scope pair|worker-set] [--smoke-id ID] [--nonce NONCE] [--role manager|worker] [--status sent|skipped|received|accepted|blocked] [--thread-id ID] [--notification-id N] [--worker-count N] [--from-stdin] [--json] — Record and evaluate the durable side of Codex app connection smoke. Required mode blocks real work until the active binding has bound app thread ids, nonce-matching send receipts, fresh app heartbeats after smoke start, worker received, and manager/worker accepted receipts. Advisory mode reports the same blockers without blocking, and skip mode records an explicit bypass. The CLI does not call Codex app thread tools; use the conveyor-smoke-app-connections plugin skill from a Codex app operator session for live send_message_to_thread delivery. A smoke-passed operator flow should immediately run app-autopilot start and handle the emitted automation specs before sending real task prompts.
  • app-worker-rotation-plan TASK --old-worker-thread-id ID [--require-handoff] [--reason TEXT] [--json] — Prepare a Codex app fresh-worker rotation. The CLI verifies that ID exactly matches the active bound worker session before emitting adapter-ready actions to create a replacement worker thread and archive the old worker thread. Blocked plans contain no archive action.
  • app-worker-rotation-record TASK --old-worker-thread-id OLD --new-worker-thread-id NEW [--new-worker-thread-title TITLE] --archive-status archived|blocked [--reason TEXT] [--json] — Record the result after the Codex app layer creates the replacement worker thread and archives, or blocks on archiving, the old thread. The command re-checks active binding ownership before updating the worker session to the new app thread id, so a stale plan cannot archive or replace an unrelated thread.
  • discover [QUERY] [--all] [--limit N] / search [QUERY] — Search tasks, registered sessions, active bindings, and recent telemetry in one JSON result. Use this for conversational setup when a manager or Codex session needs to present likely worker/manager/task connection options instead of asking the user for generated names:
    conveyor discover dashboard
    conveyor search "auth refactor"
    The output includes tasks, sessions, bindings, telemetry, and suggestions; suggestions may include a ready-to-run conveyor bind command or next-step prompts to register the missing worker or manager.
  • handoff <task> --summary S [--next-step N ...] [--payload-json JSON] — Persist a compact worker handoff for the task. Use this when a worker is becoming managed or before a long context transition so the manager can read progress and likely next steps from SQLite.
  • manager-config <task> [--mode light|guided|strict] [--objective O] [--guideline G ...] [--acceptance A ...] [--reference R ...] [--permit CATEGORY.ACTION ...] [--tool TOOL ...] [--epilogue STEP ...] [--nudge-on-completion MODE] [--require-acks] [--allow-pr] [--allow-merge-green] [--allow-worker-compact-clear] — Persist the manager's supervision contract: what to check against, how structured the loop should be, acceptance criteria, source references, and categorized permissions. With no recorded config it creates the default guided config; with no mutating flags after that it prints the current config. Use --questions from a manager Codex session to get a stable JSON question schema to ask the user in chat, then save the answers with noninteractive flags. Use --interactive only as a terminal fallback when a human is running conveyor directly. --permit grants taxonomy permissions such as repo.open_pr, repo.push_branch, repo.monitor_ci, repo.resolve_conflicts, repo.merge_green_pr, verification.run_pytest, context.spawn_reviewer, communication.notify_operator, or worker_session.compact. Use --tool to record expected verification/context tools, --epilogue for required built-in finish steps (run-tools, draft-pr, subagent-review, record-handoff), --nudge-on-completion for continuation review behavior (off, ask-operator, auto-review, auto-proceed), and --require-acks when cycle/finish-task should fail closed until both sides acknowledge. Legacy flat flags and --permissions-json keys (create_pr, merge_green_pr, worker_compact_clear, plus older allow_* aliases) are still accepted and normalized into the categorized taxonomy.
  • criteria <task> — Track emergent acceptance criteria discovered during supervision. Managers should add useful proposed criteria, accept must-have items, defer follow-ups, and mark criteria satisfied only when worker receipts and verification cover them.
    conveyor criteria my-task --list
    conveyor criteria my-task --list --status accepted
    conveyor criteria my-task --add --criterion "..." --source worker_proposed --status proposed
    conveyor criteria my-task --add --criterion "..." --source manager_inferred --status accepted
    conveyor criteria my-task --accept 12 --rationale "Must-have for this task"
    conveyor criteria my-task --satisfy <id> --evidence-json '{"command":"...","status":"pass"}'
    conveyor criteria my-task --defer 13 --rationale "Follow-up after this task"
    conveyor criteria my-task --reject 14 --rationale "Duplicate or out of scope"
    Replace placeholder ... values with the actual criterion and verification command. Use worker_proposed for criteria proposed by the worker. Use manager_inferred for criteria inferred from manager config, cycle evidence, or manager inspection; manager_config is not a valid criteria source. To add a criterion and satisfy that same row after verification:
    criterion_id=$(conveyor criteria my-task --add --criterion "Targeted prompt tests pass" --source worker_proposed --status proposed | node -e 'const fs = require("fs"); console.log(JSON.parse(fs.readFileSync(0, "utf8")).affected_criterion.id)')
    conveyor criteria my-task --satisfy "$criterion_id" --evidence-json '{"command":"npm test -- --runInBand","status":"pass"}'
    For mutation responses, treat affected_criterion as the authoritative receipt for the row changed by that command. When a manager applies multiple criteria changes, run criteria <task> --list before final audit or other decisions; the list command is the canonical task-level criteria state.
  • criteria-plan <task> --from-text ...|--from-worker-response PATH|--from-stdin [--json] — Draft reviewed criteria --add commands from a worker response that separates must-have current-task criteria from deferred follow-ups. This helper is read-only: it resolves the task and prints suggestions, but does not mutate acceptance criteria, events, or commands. If a proposed criterion appears to describe manager closeout mechanics such as finish-task, --require-criteria-audit, heartbeat teardown, or final manager reporting, the helper emits a non-blocking warning and classifies that suggestion as manager closeout proof. Keep that proof in the manager final report, audit, replay, or epilogue evidence instead of accepted worker/task criteria unless the task is explicitly Conveyor closeout QA.
    conveyor criteria-plan my-task --from-worker-response response.md --json
  • manager-permission <task> <CATEGORY.ACTION|CATEGORY> [--list] [--require] [--require-handoff] — Check and audit whether the saved manager config allows a categorized action, or list granted actions in a category. Use --require when a manager command should fail closed. Use --require-handoff before worker compact/clear style instructions so visible context is persisted first.
  • manager-recipes --list|--show RECIPE [--json] — List or show built-in manager setup recipes. Recipe JSON includes the supervision mode, permissions, expected tools, epilogues, evidence gates, cleanup behavior, disallowed actions, locked setup summary template, and suggested manager-config command. Use this before cutting a manager loose. campaign-duplicate-guard-dogfood is the recipe for visible creative campaign dogfoods that prove accidental duplicate assignment receipts are rejected unless a worker explicitly uses --allow-additional-receipt.
  • worker-ack <task> --from-stdin|--json [--correlation-id ID] / manager-ack <task> --from-stdin|--json [--correlation-id ID] — Persist or read the latest structured acknowledgement from the worker or manager. Acks are revisioned and exposed to cycle, replay, and audit so startup contract drift can be distinguished from later drift.
  • continuation <task> --submit worker|manager --from-stdin [--correlation-id ID] — Record independent worker/manager "what's next" proposals for a completion turn. The worker proposal must be written first, and manager-side reads are redacted until the manager submits its own proposal.
  • continuation <task> --review --from-stdin [--correlation-id ID] — Record a structured reviewer verdict over the paired continuation proposals. This requires context.spawn_reviewer permission and reviewer separation metadata (subagent_run.reviewer_session_id distinct from the manager and manager_rollout_access=false). Divergent reviews are routed for operator attention unless --nudge-on-completion auto-proceed is configured.
  • continuation-reviewer <task> --correlation-id ID --reviewer-session-id ID --manager-session-id ID --reviewer-command ... — Run a reviewer command with the allowed read-only context on stdin, capture reviewer metadata, and persist the structured review. The context includes paired proposals, acceptance criteria, manager config summary, diff metadata, and recent PR metadata; it does not include manager rollout context. Reviewer commands run from an isolated temporary cwd with a stripped environment and, on macOS, through sandbox-exec. The sandbox keeps the targeted denial of bound worker/manager rollout files plus the active control database and sidecars, and also denies direct reads of the active .codex-workers state root so legacy session files, transcripts, capture metadata, task state, and exports are not available through filesystem reads. The allowed reviewer context still arrives on stdin, and replay/audit/export commands outside this reviewer subprocess are unchanged. Sandbox setup failures, reviewer command failures, timeouts, or invalid JSON are recorded as verdict=stop, not silent approvals. Use --dry-run to inspect the exact context without running the command.
  • continuation <task> --list [--as-role all|worker|manager|reviewer] [--include-payload] — List continuation proposals and reviews with role-aware payload redaction.
  • record-decision <task> <wait|nudge|interrupt|escalate|stop|inspect> --reason R [--cycle-id N] [--payload-json JSON] — Persist a manager decision and print its id. Use this before strict mutating commands that require --decision-id.
  • compact-worker <task> --reason R [--clear] [--prompt-only] — Convenience wrapper that records a nudge manager decision, then sends Codex /compact to the worker through the same strict audited path as request-worker-compact. Use --clear to send /clear.
  • request-worker-compact <task> --decision-id N --strict-decisions — Send Codex /compact to the worker through the audited path. Use --clear to send /clear, or --prompt-only to send an explanatory prompt instead. Fails closed unless worker_compact_clear is enabled in manager config and a worker handoff exists. Records a durable command and audit events before/after sending the worker instruction. --dry-run still records the command in commands, replay, and mutation-audit with dry_run: true and sent: false. In Codex app threads, remote /compact or /clear sent through send_message_to_thread is prompt text, not an executable slash command. Use app-worker-rotation-plan plus Codex app create_thread and set_thread_archived when fresh context is required for app-native workers.
  • bind --task T --worker W --manager M — Create the task binding.
  • unbind --task T — End the active binding for a task.
  • finish-task <task> [--reason R] [--require-criteria-audit] [--require-acks] [--require-epilogue] [--require-adversarial-proof] [--stop-manager] [--stop-worker] [--capture-transcript-before-stop] — Mark a task done. Leaves the manager terminal open by default for review. With --require-criteria-audit, fails before finishing if any acceptance criteria for the task are still accepted; proposed, satisfied, deferred, and rejected criteria do not block. With --require-acks, fails if worker or manager acknowledgement is missing. With --require-epilogue, fails if any configured epilogue step is not succeeded. With --require-adversarial-proof, fails before finishing unless the task has at least one satisfied criterion with evidence_type=adversarial_check and non-empty failure_mode, check, and result fields; use this when tests passed is not enough by itself. With --capture-transcript-before-stop, captures transcript segments for any worker/manager sessions being stopped before killing tmux sessions; capture failure fails before stop side effects.
  • stop-task <task> [--reason R] [--stop-worker] — Force-stop a task's manager (and optionally the worker), recording the reason in the audit payload.
  • stop <session> — Stop a tmux-backed worker or manager session by name. This works for both legacy worker records and session-table workers/managers. For a completed task with an active binding, prefer an idempotent cleanup pass with finish-task <task> --stop-manager --stop-worker so the task audit records the cleanup against the binding.

Observation

  • dashboard [--task T] [--campaign C] [--ensure-dispatch] [--dispatcher-id ID] [--host 127.0.0.1] [--port 8797] — Launch the local live supervision cockpit. The dashboard binds to loopback by default, uses the TypeScript backend to shell out to conveyor JSON commands, and attaches interactive terminals to tmux-backed worker/manager sessions through a WebSocket PTY bridge. It includes browser bootstrap controls for creating a task, starting a worker/manager pair with conveyor pair, auto-attaching the terminals, attach/bind controls, and audited action receipts for cycle, nudge, interrupt, finish, and export. With --campaign, the observation rail also shows campaign slot lifecycle, blockers, approval counts, and the next manager action. With --ensure-dispatch, launch also ensures a Dispatch watch process using the supplied --dispatcher-id when provided, reusing only a fresh heartbeat from that same dispatcher id. Use --dry-run --json to inspect the launch command.
  • cycle <task> [--busy-wait-seconds N] — One observation cycle. Idempotent. Runs ingest, computes worker state from the JSON event stream, captures the tmux pane as a shadow signal, writes a manager_cycles row, and returns a JSON dict the manager Codex consumes. The status_payload includes:
    • worker_alive / manager_alive — booleans computed by probing the registered session pids (os.kill(pid, 0)). False when the session's pid is NULL (legacy backfill) or the process has exited — useful for detecting silently-dead workers between cycles.
    • last_event_subtype — the subtype of the most recent codex_events row for the worker, or null if no events exist.
    • task_completedtrue iff last_event_subtype is "task_complete". Disambiguates "worker finished cleanly" from "worker idle but never started."
    • manager_context — the latest manager-config, worker/manager acknowledgements, handoff, and acceptance_criteria records for the task, so each manager loop can reference the saved objective, living acceptance criteria, categorized permissions, expected tools, acked contract, worker progress, and next steps. manager_context.acceptance_criteria groups criteria by status, includes summary counts, and exposes open as accepted criteria that still need proof before finishing. manager_context.criteria_negotiation is advisory: when needed is true, the manager should ask the worker for must-have current-task criteria versus follow-up criteria, then record the result with conveyor criteria. The field does not send nudges or mutate criteria automatically.
    The cycle subcommand accepts --busy-wait-seconds N (default: 90) to tune the pane-signal classifier's stuck-busy threshold. Lower values flag stalls faster but increase false positives on long-running real work:
    conveyor cycle my-task                          # default 90s threshold
    conveyor cycle my-task --busy-wait-seconds 30   # tighter detection
  • ingest <session> — Pull new events from a session's rollout JSONL into the codex_events table. Tracks a byte offset, so subsequent runs only pick up new events.
  • tail <session> [--limit N] [--subtype T] [--include-content] — Print the most recent events for a session, newest first. Text payload fields are redacted by default; use --include-content only when stdout is redirected or verbatim text is intentionally needed.
  • divergences <task> [--limit N] — Cycles whose shadow pane signal flagged a notable pattern (trust prompt, rate-limit prompt, approval prompt, etc.). Useful for auditing the shadow signal against the JSON state.
  • dispatch [--once|--watch] [--limit N] [--interval SECONDS] [--dispatcher-id ID] [--type notify_manager|nudge_worker|worker_task_complete] [--watch-iterations N] [--lease-seconds N] [--dry-run] [--json] — Run Dispatch, the mechanical routing/actuation role. worker_task_complete routing reads from codex_events, records deduplicated routed_notifications keyed by the source event, and notifies the bound manager without deciding task success. Explicit notify_manager and nudge_worker command rows are atomically claimed, executed, and recorded through command_attempts with conservative side-effect metadata. --watch repeats polling with heartbeat telemetry; --watch-iterations bounds a watch run for scripts and verification; --lease-seconds tunes command claim recovery; --once performs one pass.
  • enqueue-notify-manager <task> --message "..." [--correlation-id C] [--required-permission P] [--idempotency-key K] [--json] — Queue a notify_manager command row for Dispatch to claim and deliver to the bound manager. Codex app/no-tmux workers must use this route for completion and blocker reports after consuming a manager instruction; direct app-thread final answers are local text, not manager inbox receipts.
  • enqueue-nudge-worker <task> --message "..." [--correlation-id C] [--required-permission P] [--idempotency-key K] [--json] — Queue a nudge_worker command row for Dispatch to claim and deliver to the bound worker. Use this dispatcher-backed route instead of session-nudge when the worker is registered without tmux; the worker then receives the message through worker-inbox.
  • session-inbox <session> [--consume-next] [--wait] [--timeout N] [--interval N] [--limit N] [--json] — List or consume unconsumed routed notifications addressed to a registered session. Text output includes the pending count, signal type, delivery mode, source/target sessions, delivered timestamp, and correlation id. Use --consume-next --wait --json for Codex app long-polling; consumed items emit dispatch_inbox_consumed telemetry.
  • manager-inbox <task> [--consume-next] [--wait] [--timeout N] [--interval N] [--limit N] [--json] — Resolve the task's bound manager session and read its dispatcher inbox.
  • worker-inbox <task> [--consume-next] [--wait] [--timeout N] [--interval N] [--limit N] [--json] — Resolve the task's bound worker session and read its dispatcher inbox.
  • inbox-ack <task> --notification-id N [--json] — Read durable role-authored acknowledgement history for one routed notification.
  • inbox-ack <task> --notification-id N --role manager|worker --status received|accepted|blocked --from-stdin [--correlation-id C] [--json] — Record that the addressed role saw a delivered notification and either received, accepted, or blocked on it. received requires delivery; accepted and blocked require consumption. Use this after visible Codex app sessions print CONVEYOR RECEIVED; do not use direct app-thread text as the durable receipt. --from-stdin expects a JSON object, for example printf '%s\n' '{"summary":"accepted","evidence":["consumed notification"],"blockers":[]}' | conveyor inbox-ack ... --from-stdin.

Actuation

  • session-nudge <name> "<text>" [--dry-run] — Send text plus Enter to the session's tmux pane. Requires the session to have been registered with --tmux-session. Managers running outside tmux cannot receive nudges; only workers do.
  • session-interrupt <name> [--key K] [--followup T] [--dry-run] — Send an interrupt key (default C-c). Optional --followup text after the interrupt.

Audit

  • audit <task> — Events history for a task. Lists events-table rows only. audit --json redacts stored terminal/transcript content unless --include-content is passed.
  • replay <task> [--format compact|timeline|transcript|full-transcript] [--role all|worker|manager] [--limit N] [--include-content] — Render a chronological, human-readable reconstruction of the task. Cycle entries include [pane pattern: <pattern_id>] when the shadow signal flagged something. full-transcript is blocked unless --include-content is passed.
  • mutation-audit <task> — Manager decisions and their consequences.
  • events <name> — Worker events log.
  • commands [--task T] [--type T] [--state S] [--attempts] — Durable side-effect commands log. Use --attempts to include per-dispatcher attempt history.
  • epilogue <task> --step run-tools|draft-pr|subagent-review|record-handoff [--json] [--correlation-id ID] — Run one configured epilogue step and record its durable state. Use --list or --status to inspect configured steps and latest run results.
  • telemetry [--run RUN] [--task TASK] [--search QUERY] [--summary] [--json] — Query local structured telemetry events, search them with SQLite FTS, or print aggregate counts for a run/task. telemetry snapshot --task <task> --json prints the task-scoped dashboard overview contract.
  • telemetry task <task> --json — Print a task-scoped telemetry triage view: recent cycle history, last successful cycle, worker/manager liveness, decisions, commands, failed cycles/commands, ingest skipped/error summaries, pane capture failures and notable patterns, open criteria counts, telemetry counts, and retained storage counts. Raw transcript, pane, prompt, criterion, command payload, and command result bodies are not included.
  • telemetry failures --json — Print an operator failure triage view across tasks: recent failed cycles, failed commands, ingest errors/skipped lines, pane capture failures, open accepted criteria, active task/session health, and retained storage counts without raw transcript or prompt content. Use --task, --run, --active-only, or --window 2h to narrow the failure view for recency or active-task triage.
  • telemetry metrics --window 24h --json — Print bounded JSON rollups for local telemetry and related tables: active tasks/sessions, cycle and command success/failure counts, ingest/skipped-line totals, criteria counts, reconcile drift counts, export counts, and retained capture/transcript bytes.
  • export-task <task> [--zip] [--include-transcripts] [--include-full-transcripts] — Dump task status, audit, prompts, transcript metadata, and optional transcript segments/full transcript replay into an export bundle. Exports include telemetry-events.json, telemetry-summary.json, and telemetry-report.md; see docs/local-telemetry-workflow.md.

Administration

  • doctor — Local dependency and tmux health check.
  • doctor-self — Verify the current Codex session can self-register.
  • db-doctor — SQLite schema health check.
  • reconcile [--apply] [--stale-cycles-seconds N] — Report (and optionally fix) dead-pid sessions, dangling bindings, and stuck tasks. Default stale-cycle threshold is 3600 seconds (1h); override with --stale-cycles-seconds N to catch tasks where the manager has been silent for shorter intervals. JSON output.
  • prune [--keep-latest N] [--dry-run] — Drop old transcript content while preserving metadata.
  • transcript-prune <task> [--keep-latest N] — Same, scoped to a task.
  • transcript-capture <task> [--role R] [--mode M] — Capture deduplicated transcript segments. JSON output redacts raw captured terminal output by default.
  • transcript-show <task> [--role R] [--include-content] — Show stored transcript segment metadata. Segment text is redacted unless --include-content is passed.
  • qa-plan <self-management|emergent-criteria|tmux-errors|dispatch-completion|ralph-loop|adversarial-triggers|goalbuddy-conveyor|ship-it-loop> — Print a repeatable manual QA checklist.
  • qa-run <ralph-loop-guardrails|generic-loop-template|generic-loop-template-browser|test-coverage-loop|adversarial-triggers|build-clear-loop|ship-it-loop> --receipt-output RECEIPT.json [--path DB] — Run a deterministic no-tmux QA harness and save a JSON receipt. ralph-loop-guardrails proves max-iteration cutoff, missing-evidence cutoff, fresh retry delivery after structured adversarial_check evidence, and the pr_ci_merge_loop preset evidence gate. generic-loop-template proves the visual_diff_loop template blocks before visual evidence, rejects unstructured adversarial evidence, and delivers only after required visual receipts plus structured adversarial proof exist. generic-loop-template-browser runs the same visual_diff_loop gate proof with a browser-rendered static HTML candidate screenshot, recording browser backend, viewport, candidate HTML, screenshot, visual diff, and structured adversarial evidence in the saved receipt. It uses the repo's Node Playwright dependency and requires Chromium to be installed and launchable; when unavailable, it fails with the browser-backed QA helper message. test-coverage-loop proves the test_coverage_loop template blocks before coverage evidence, rejects malformed adversarial evidence, and delivers only after a structured coverage receipt plus adversarial proof exist. build-clear-loop proves the non-coverage build_then_clear template blocks before build_passed and cleanup receipts, still blocks after build evidence alone, and delivers only after both build and cleanup evidence exist. ship-it-loop proves push, PR, and merge commands fail closed until their permissions are granted, then proves the ship_it_loop lifecycle blocks before branch, PR, CI, mergeability, manager decision, merge, post-merge, and adversarial receipts exist.
  • loop-triggers --list|--classify PROMPT [--json] — List the controlled natural-language loop triggers or classify a manager/operator prompt before creating a loop policy or continuation gate. Approved trigger phrases include the adversarial Ralph-loop, iteration, finish, worker-directed proof, and manager-created adversarial criteria gates; generic caution like "be careful and run tests" intentionally does not arm those gates.
  • loop-templates --list|--show TEMPLATE|--create-run TASK --template TEMPLATE — List generic loop templates or create a template-backed loop policy run. Template-backed runs use the same Dispatch guardrails as Ralph-loop presets: max_iterations prevents over-looping, and required_before_continue evidence blocks a manager continuation before worker delivery until matching satisfied criterion evidence exists. ralph-loop-presets remains as a compatibility alias for the current Ralph-loop QA flows. The built-in app_visible_build_loop template requires build_passed plus structured adversarial_check evidence, but no cleanup evidence, so visible Codex app threads can continue without pretending that same-thread context was cleared. The built-in visual_diff_loop template requires reference_artifact, candidate_screenshot, visual_diff_report, diff_below_threshold, and adversarial_check evidence before a manager-requested next visual pass can reach the worker. Quality-oriented templates (app_visible_build_loop, pr_ci_merge_loop, ship_it_loop, test_coverage_loop, and visual_diff_loop) also expose an artifact_requirements["adversarial_check"] object requiring failure_mode, check, and result fields.
  • loop-status TASK --run RUN [--json] — Summarize a Ralph-loop run for manager review: policy template, iteration bounds, command states, routed notifications, worker inbox backlog, evidence types, consumed-inbox and iteration-advanced telemetry, failure counts, and a recommendation.

For real vertical slices, start with the Ralph loop operator guide in docs/qa/ralph-loop-operator-guide.md. It explains the controlled natural-language triggers, Dispatch authority model, worker inbox polling, required evidence, adversarial proof, loop-status, and telemetry review pass bar. Use create-disposable-binding when the manager and worker are Codex app or other no-tmux sessions and you want the same Dispatch rails without manual task/session/bind setup. In a Codex app manager session, prefer a fresh same-project create_thread worker plus set_thread_title before creating the binding, then pass the worker thread id/title into Conveyor. Use fork_thread only when the user explicitly asks to fork or resume this conversation. If app thread tools are unavailable, create the binding anyway and paste the returned worker_handoff prompt into a manually opened worker session. The handoff requires a worker to report completion/blockers through enqueue-notify-manager plus a bounded Dispatch watch run before treating the manager as notified, and to print the live CONVEYOR POLL / CONVEYOR RECEIVED / WORK / CONVEYOR SEND / DISPATCH transcript in the worker session for any consumed item.

  • enqueue-continue-iteration TASK --loop-run RUN --requested-iteration N — Queue a manager-requested next loop pass for Dispatch. The command refuses same/current iteration requests before they become pending queue rows, while Dispatch also blocks any stale same/current iteration command that reaches the queue. Max-iteration and missing-evidence refusals remain Dispatch policy receipts. JSON output includes loop_policy; delivered manager/worker inbox payloads include the same loop_policy plus enriched ralph_loop metadata so tmux and Codex app sessions can see the template, cleanup policy, required evidence, artifact requirements, and recommended tools.
  • loop-evidence add TASK --loop-run RUN --iteration N --evidence-type TYPE — Record a run-qualified evidence receipt for a loop policy. Use loop-evidence build-passed TASK --loop-run RUN --iteration N as the friendly alias for the common evidence_type=build_passed receipt. Use loop-evidence visual-diff to compare PNG screenshots, write an optional diff/report artifact, and record visual_diff_report plus diff_below_threshold as satisfied only when the computed score is within threshold.
  • loop-evidence adversarial-check TASK --loop-run RUN --iteration N --failure-mode F --check C --result R — Record first-class adversarial proof for a loop iteration. Use it when a manager or worker tried to disprove the iteration before continuing. The receipt is stored as evidence_type=adversarial_check with structured failure_mode, check, and result metadata and can satisfy Ralph-loop continuation policy. See docs/qa/adversarial-proof.md for the receipt shape and how it maps to manager prompts, Ralph-loop evidence, Dispatch blocking, and audited finish.
  • qa-plan goalbuddy-conveyor — Print the reusable natural-language starter prompt and QA contract for autonomous GoalBuddy conveyor runs. Use it when a manager should split broad work into one parent board plus sequential vertical-slice child boards with PR/CI/merge receipts, satisfied-on-main proof, and adversarial review gates. See docs/qa/goalbuddy-conveyor.md.
  • ralph-loop-presets --list|--show PRESET|--create-run TASK --preset PRESET — List saved Ralph-loop guardrail templates or create a preset-backed ralph_loop policy run.
  • import-compat — Dry-run or import existing .codex-workers/<worker>/ artifacts into SQLite.

Worker setup

  • create <name> --cwd D --task "..." — Full worker creation: spawn a tmux session, start Codex, send the initial worker contract.
  • start <name> --cwd D — Start a plain Codex session inside tmux without registering a worker. Useful when you want to register it manually later.
  • start-test <name> — Low-risk verification worker that only updates its ignored status.json.

QA Plans

Print repeatable live QA checklists from the CLI:

conveyor qa-plan self-management
conveyor qa-plan emergent-criteria
conveyor qa-plan emergent-criteria --json
conveyor qa-plan tmux-errors
conveyor qa-plan dispatch-completion
conveyor qa-plan ralph-loop
conveyor qa-plan adversarial-triggers
conveyor qa-plan goalbuddy-conveyor
conveyor qa-plan ship-it-loop
conveyor qa-run ralph-loop-guardrails --receipt-output /tmp/ralph-loop-guardrails-receipt.json --json
conveyo