agent-conveyor
v0.1.26
Published
Local agent manager/worker conveyor control plane for Codex sessions.
Maintainers
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
tmuxsession. 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
conveyorcommands, 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.jsonlNon-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 doctorThe 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 --helpconveyor 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 --jsonThe 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-localUse 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-dashboardQuickstart
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-mgrFor 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-fooIf 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.jsonlNote: 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-testCommands
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-idis 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-idrequires 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 unlessOLDmatches 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-receiptonly 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 separatecampaign assetssubcommand.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-dispatchUse 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-sessioncodex+ 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. Mirrorsstart-workerbut uses a manager bootstrap prompt instead of a worker task prompt. When--task,--task-goal, and--workerare supplied, the bootstrap is ready for late attach: it names the task, goal, worker session, and concretemanager-config,cycle,manager-ack, andworker-ackcommands. If manager config has already been recorded for the task, the bootstrap tells the manager to start withcycleinstead 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. Combinesstart-worker+start-manager+bind. The task is looked up or created (if--task-goalis 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-promptas its initial Codex prompt; the manager receives a manager bootstrap prompt with the task, goal, worker name, manager configuration status, andcyclecommands.pairrecords 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 withcycleinstead 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 defaultpairstarts a detacheddispatch --watchprocess after successful worker/manager setup, bind, and run creation. Use--dispatcher-idto set its identity or--no-dispatchfor isolated/manual workflows. A live dispatch heartbeat is reused only when it has the same dispatcher id; otherwisepairstarts 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 withconveyor deregister. Use--accept-trustonly 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 vialsofunless--codex-sessionis 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 acommunicationobject. When--tmux-sessionis present,communication.session_kind='tmux',receive_style='push', anddelivery_mode='push'; without tmux but with a Codex rollout identity,session_kind='codex_app',receive_style='pull', anddelivery_mode='pull_required', with the role-specific inbox polling command template. The generated command may include a localPATH=.../bin:$PATH conveyorprefix; 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,sessionsshows active registered sessions and hides Phase 1 backfill rows (legacy pre-redesign workers/managers, identified bypid IS NULL) plus rows markedstate='gone'. Pass--state allto show every row, or--state goneto inspect only gone rows:
For shareable QA evidence, prefer repeatingconveyor 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--namefor 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 samecommunicationblock 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 withtmux_session=null, binds them, optionally creates a template-backed or custom Ralph-loop policy run, and prints replay commands for Dispatch,loop-status, per-sessioncommunicationmetadata, plus aworker_handoffprompt 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 includesheartbeat_recommendationswith 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 durableenqueue-notify-managerand one-iterationdispatch --watchcommands 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 includewakeup_dispatch_commandanddelivery_receipt_commandsfor app-thread wake recovery. Use them to record sent, skipped, and blocked wake outcomes afterapp-wakeup-dispatch; an app-thread send is not task completion. The recommendations include ateardown_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_loopor a custom adversarial gate; reserve cleanup-gated templates such asbuild_then_clearfor 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 usedcreate_threadandset_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 sendsend_message_to_thread; the Codex app/operator layer sends prompts whose actions reportsend_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.sentis accepted only when the referencedapp-wakeup-dispatchreceipt has a matchingready_to_sendaction withsend_ready=trueand the same thread id; healthy roles must be recorded asskipped; missing-thread blockers and failed app-thread sends must be recorded asblockedwith 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.startandstopwrite 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 runrecord-automationonce per created role automation. Conveyor remains the durable source of truth through Dispatch, inboxes, automation-applied receipts, wake receipts, and app heartbeat status.statusreportsplan.readiness; do not call a loop autonomous unlessplan.readiness.autonomous_ready=true.statusalso reportsplan.quiescence: when the loop is healthy, has nonext_actions, and both roles have produced--quiet-afterpaired heartbeats since the last command or inbox-consumption receipt, it recommendsstop_autopilotso 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, workerreceived, and manager/workeracceptedreceipts. 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 theconveyor-smoke-app-connectionsplugin skill from a Codex app operator session for livesend_message_to_threaddelivery. A smoke-passed operator flow should immediately runapp-autopilot startand 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 thatIDexactly 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:
The output includesconveyor discover dashboard conveyor search "auth refactor"tasks,sessions,bindings,telemetry, andsuggestions; suggestions may include a ready-to-runconveyor bindcommand 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--questionsfrom 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--interactiveonly as a terminal fallback when a human is runningconveyordirectly.--permitgrants taxonomy permissions such asrepo.open_pr,repo.push_branch,repo.monitor_ci,repo.resolve_conflicts,repo.merge_green_pr,verification.run_pytest,context.spawn_reviewer,communication.notify_operator, orworker_session.compact. Use--toolto record expected verification/context tools,--epiloguefor required built-in finish steps (run-tools,draft-pr,subagent-review,record-handoff),--nudge-on-completionfor continuation review behavior (off,ask-operator,auto-review,auto-proceed), and--require-ackswhencycle/finish-taskshould fail closed until both sides acknowledge. Legacy flat flags and--permissions-jsonkeys (create_pr,merge_green_pr,worker_compact_clear, plus olderallow_*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.
Replace placeholderconveyor 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"...values with the actual criterion and verification command. Useworker_proposedfor criteria proposed by the worker. Usemanager_inferredfor criteria inferred from manager config, cycle evidence, or manager inspection;manager_configis not a valid criteria source. To add a criterion and satisfy that same row after verification:
For mutation responses, treatcriterion_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"}'affected_criterionas the authoritative receipt for the row changed by that command. When a manager applies multiple criteria changes, runcriteria <task> --listbefore 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 reviewedcriteria --addcommands 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 asfinish-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 --jsonmanager-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--requirewhen a manager command should fail closed. Use--require-handoffbefore 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 suggestedmanager-configcommand. Use this before cutting a manager loose.campaign-duplicate-guard-dogfoodis 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 tocycle,replay, andauditso 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 requirescontext.spawn_reviewerpermission and reviewer separation metadata (subagent_run.reviewer_session_iddistinct from the manager andmanager_rollout_access=false). Divergent reviews are routed for operator attention unless--nudge-on-completion auto-proceedis 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, throughsandbox-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-workersstate 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 asverdict=stop, not silent approvals. Use--dry-runto 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 anudgemanager decision, then sends Codex/compactto the worker through the same strict audited path asrequest-worker-compact. Use--clearto send/clear.request-worker-compact <task> --decision-id N --strict-decisions— Send Codex/compactto the worker through the audited path. Use--clearto send/clear, or--prompt-onlyto send an explanatory prompt instead. Fails closed unlessworker_compact_clearis enabled in manager config and a worker handoff exists. Records a durable command and audit events before/after sending the worker instruction.--dry-runstill records the command incommands,replay, andmutation-auditwithdry_run: trueandsent: false. In Codex app threads, remote/compactor/clearsent throughsend_message_to_threadis prompt text, not an executable slash command. Useapp-worker-rotation-planplus Codex appcreate_threadandset_thread_archivedwhen 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 stillaccepted;proposed,satisfied,deferred, andrejectedcriteria 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 withevidence_type=adversarial_checkand non-emptyfailure_mode,check, andresultfields; use this whentests passedis 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 withfinish-task <task> --stop-manager --stop-workerso 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 toconveyorJSON 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 withconveyor 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-idwhen provided, reusing only a fresh heartbeat from that same dispatcher id. Use--dry-run --jsonto inspect the launch command.cycle <task> [--busy-wait-seconds N]— One observation cycle. Idempotent. Runsingest, computes worker state from the JSON event stream, captures the tmux pane as a shadow signal, writes amanager_cyclesrow, and returns a JSON dict the manager Codex consumes. Thestatus_payloadincludes:worker_alive/manager_alive— booleans computed by probing the registered session pids (os.kill(pid, 0)).Falsewhen the session's pid isNULL(legacy backfill) or the process has exited — useful for detecting silently-dead workers between cycles.last_event_subtype— the subtype of the most recentcodex_eventsrow for the worker, ornullif no events exist.task_completed—trueifflast_event_subtypeis"task_complete". Disambiguates "worker finished cleanly" from "worker idle but never started."manager_context— the latestmanager-config, worker/manager acknowledgements,handoff, andacceptance_criteriarecords 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_criteriagroups criteria by status, includes summary counts, and exposesopenas accepted criteria that still need proof before finishing.manager_context.criteria_negotiationis advisory: whenneededis true, the manager should ask the worker for must-have current-task criteria versus follow-up criteria, then record the result withconveyor criteria. The field does not send nudges or mutate criteria automatically.
cyclesubcommand 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 detectioningest <session>— Pull new events from a session's rollout JSONL into thecodex_eventstable. 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-contentonly 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_completerouting reads fromcodex_events, records deduplicatedrouted_notificationskeyed by the source event, and notifies the bound manager without deciding task success. Explicitnotify_managerandnudge_workercommand rows are atomically claimed, executed, and recorded throughcommand_attemptswith conservative side-effect metadata.--watchrepeats polling with heartbeat telemetry;--watch-iterationsbounds a watch run for scripts and verification;--lease-secondstunes command claim recovery;--onceperforms one pass.enqueue-notify-manager <task> --message "..." [--correlation-id C] [--required-permission P] [--idempotency-key K] [--json]— Queue anotify_managercommand 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 anudge_workercommand row for Dispatch to claim and deliver to the bound worker. Use this dispatcher-backed route instead ofsession-nudgewhen the worker is registered without tmux; the worker then receives the message throughworker-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 --jsonfor Codex app long-polling; consumed items emitdispatch_inbox_consumedtelemetry.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.receivedrequires delivery;acceptedandblockedrequire consumption. Use this after visible Codex app sessions printCONVEYOR RECEIVED; do not use direct app-thread text as the durable receipt.--from-stdinexpects a JSON object, for exampleprintf '%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 (defaultC-c). Optional--followuptext after the interrupt.
Audit
audit <task>— Events history for a task. Listsevents-table rows only.audit --jsonredacts stored terminal/transcript content unless--include-contentis 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-transcriptis blocked unless--include-contentis 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--attemptsto 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--listor--statusto 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> --jsonprints 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 2hto 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 includetelemetry-events.json,telemetry-summary.json, andtelemetry-report.md; seedocs/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 Nto 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-contentis 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-guardrailsproves max-iteration cutoff, missing-evidence cutoff, fresh retry delivery after structuredadversarial_checkevidence, and thepr_ci_merge_looppreset evidence gate.generic-loop-templateproves thevisual_diff_looptemplate blocks before visual evidence, rejects unstructured adversarial evidence, and delivers only after required visual receipts plus structured adversarial proof exist.generic-loop-template-browserruns the samevisual_diff_loopgate 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-loopproves thetest_coverage_looptemplate blocks before coverage evidence, rejects malformed adversarial evidence, and delivers only after a structured coverage receipt plus adversarial proof exist.build-clear-loopproves the non-coveragebuild_then_cleartemplate blocks beforebuild_passedandcleanupreceipts, still blocks after build evidence alone, and delivers only after both build and cleanup evidence exist.ship-it-loopproves push, PR, and merge commands fail closed until their permissions are granted, then proves theship_it_looplifecycle 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_iterationsprevents over-looping, andrequired_before_continueevidence blocks a manager continuation before worker delivery until matching satisfied criterion evidence exists.ralph-loop-presetsremains as a compatibility alias for the current Ralph-loop QA flows. The built-inapp_visible_build_looptemplate requiresbuild_passedplus structuredadversarial_checkevidence, but no cleanup evidence, so visible Codex app threads can continue without pretending that same-thread context was cleared. The built-invisual_diff_looptemplate requiresreference_artifact,candidate_screenshot,visual_diff_report,diff_below_threshold, andadversarial_checkevidence 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, andvisual_diff_loop) also expose anartifact_requirements["adversarial_check"]object requiringfailure_mode,check, andresultfields.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 includesloop_policy; delivered manager/worker inbox payloads include the sameloop_policyplus enrichedralph_loopmetadata 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. Useloop-evidence build-passed TASK --loop-run RUN --iteration Nas the friendly alias for the commonevidence_type=build_passedreceipt. Useloop-evidence visual-diffto compare PNG screenshots, write an optional diff/report artifact, and recordvisual_diff_reportplusdiff_below_thresholdas 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 asevidence_type=adversarial_checkwith structuredfailure_mode,check, andresultmetadata and can satisfy Ralph-loop continuation policy. Seedocs/qa/adversarial-proof.mdfor 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. Seedocs/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-backedralph_looppolicy 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 ignoredstatus.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