ONE_HOST // MANY_AGENTS

CLI reference

Use iddio to watch GitHub CI, inspect local agent runs, and share test resources across sessions.

Getting started

From an Iddio source checkout, install the CLI with Go 1.26 and put its install directory on PATH. If the binary is already on your path, start with iddio --help.

go install ./cmd/iddio
iddio --help

For CI, authenticate the GitHub CLI for github.com. From your checkout of the pushed commit, replace OWNER/REPO and PR with the repository and pull request number.

iddio ci wait OWNER/REPO PR --sha "$(git rev-parse HEAD)" --comments --json

The first client that needs the local service starts it automatically. Save the ID printed on stderr to inspect, reattach to, or cancel work from another terminal.

Global flags and output

Run iddio [command] [flags]. The root and product names print their command list when called by themselves. These flags apply throughout the reference.

Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

Finite machine-readable results use one compact JSON value on stdout. Result and event objects carry schemaVersion where defined. Handles and diagnostics go to stderr. Command errors for CI, Codex, agent, environment, locks and events can return the JSON envelope below. Once a stream starts, errors go to stderr.

{"error":{"code":"invalid_request","message":"…"}}

events --json and logs --follow --json stream SSE frames. Parse the data: payload of each frame as JSON.

CI watcher

Watch one GitHub commit or pull request head. Registrations for the same target can share polling while keeping their own deadlines and feedback options.

iddio ci wait

Register a waiter and block for a verified CI result.

iddio ci wait OWNER/REPO [PR] [flags]
Flag Default Meaning
--sha SHA First observed PR headPin a full commit SHA. Required when PR is omitted. Pass the pushed SHA to wait for that specific revision.
--comments falseFor a PR, collect general comments, inline notes and reviews. A passing result is released after the review window closes and a final sweep of all three surfaces completes.
--since TIME PR creation timeWith --comments, include comments updated and reviews submitted at or after this RFC 3339 timestamp.
--review-window D ciReviewWindow (3m)With --comments, override the minimum review window for this waiter. Accepts a Go duration from 1ns through 24h.
--max-comment-bytes N Full bodiesWith --comments, cap each body and first-line preview at N UTF-8 bytes. An explicit zero clears both.
--timeout D 45mSet the deadline from registration. Accepts a Go duration from 1ns through 24h.
--fresh falseStart a separate observation from discovery.
--owner OWNER IDDIO_OWNER or unknownRecord a waiter owner label.
--waiter-file PATH UnsetAtomically write the waiter ID and a newline to PATH before registration.

PR is a positive pull request number. Commit-only waits track deployments and other standalone commits. Feedback flags require a PR and an enabled comments sweep.

The CLI prints waiter=ID before registration and watch=ID after acknowledgement, both on stderr. Use the waiter ID with result after Ctrl-C or a lost response. A registered waiter continues after detachment.

With --json, check sha, outcome, highestAttempt and evidence.checkRunCount.complete. A successful feedback sweep sets feedbackComplete. The verdict reflects CI evidence independently of review findings.

The review window can elapse while checks run. It starts at the later of PR creation and the first observation of the current transition to the watched head. If that transition time is unknown, the waiter registration time is used in its place.

A recognised bot still reviewing the current head may extend the review window by up to ten minutes, subject to the waiter deadline.

Exit codes . 0–6 for CI outcomes and 130 on detach.

iddio ci wait OWNER/REPO PR --sha "$(git rev-parse HEAD)" --comments --json
iddio ci wait OWNER/REPO --sha "$(git rev-parse HEAD)" --json

iddio ci result

Reattach to a waiter or read its retained result.

iddio ci result WAITER_ID [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

Exit codes . 0–6 for CI outcomes and 130 on detach.

iddio ci result WAITER_ID --json

iddio ci list

List CI watches and the waiter IDs associated with them.

iddio ci list [flags]   # alias: ls
Flag Default Meaning
--history, --all falseInclude retained finished watches and waiters.
--owner OWNER All ownersSelect watches with waiters owned by this exact label and show matching waiter IDs.
--state PHASE All phases in scopeMatch awaiting_head, discovering, awaiting_checks, running, settling, awaiting_feedback or finished. Finished requires history.
--sort KEY -createdAtUse createdAt for oldest first or -createdAt for newest first. Resolve ties by ascending ID.
--limit N All matchesReturn up to N watches after filtering and sorting. N must be positive.
iddio ci ls --history --owner release --limit 5 --json

iddio ci show

Read a watch snapshot with its head, evidence, waiters and feedback.

iddio ci show WATCH_ID [flags]   # alias: inspect
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.
iddio ci inspect WATCH_ID --json

iddio ci cancel

Cancel one waiter and return its persisted registration.

iddio ci cancel WAITER_ID [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

Repeat calls acknowledge the retained state. Shared polling continues while other waiters still need it.

iddio ci cancel WAITER_ID --json

iddio ci events

Subscribe to CI watch and waiter changes.

iddio ci events [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

ci.changed identifies affected watchIds and waiterIds and includes the snapshot revision.

Exit codes . 130 on detach, 5 on error.

iddio ci events --json

Codex runs

Start a local Codex turn, inspect its retained evidence, and reattach by run ID. Runs are stored under CODEX_RUNS_DIR (default ~/.codex-runs).

iddio codex run

Register one turn and wait for its exit receipt, or hand it to the recorder and detach.

iddio codex run [options] [PROMPT] [-- ARGS...]
Flag Default Meaning
-m MODEL Codex configurationRequest a model.
-s MODE, --sandbox MODE workspace-writeUse read-only, workspace-write, or danger-full-access.
--full-auto falseBypass approvals and sandboxing.
-C DIR current directoryRequest a working directory for a fresh turn. Resumes omit -C.
-f FILE noneRead the prompt from a file. This takes precedence over a positional or piped prompt.
-r REF noneResume a saved alias, thread UUID, or indexed native session name.
-n NAME noneSave or refresh a session alias for the observed thread.
--list falseList saved session aliases and exit.
-d LABEL taskLabel the run directory.
--owner OWNER IDDIO_OWNER, then unknownRecord the submitting owner.
--detach falseReturn after the recorder accepts the run. Print run=ID on stderr.
--stall-after D offArm a durable inactivity watch using a positive Go duration. A foreground stall exits 8.
--json falseWrite one versioned JSON response.
-- ARGS... No forwarded argumentsPass the remaining arguments to codex exec.

A prompt can be positional, read from -f FILE, or piped on stdin. Supply a nonempty prompt. Child stdin is /dev/null.

Native -m/--model, -s/--sandbox, -c/--config model=VALUE, -c/--config model_reasoning_effort=VALUE, and -c/--config sandbox_mode=VALUE can override recorded settings. The flags --yolo and --dangerously-bypass-approvals-and-sandbox request bypass. Other native options pass through. Put all native options after the first -- separator.

Resumes inherit the latest recorded model, reasoning effort, sandbox, and approval bypass for that thread unless explicitly overridden. A restrictive explicit sandbox conflicts with bypass. Unknown resume names are rejected before launch. Each turn gets a new run ID.

CODEX_LOCK_TIMEOUT sets the resume lock timeout in seconds (default 1800). Ctrl-C detaches (exit 130). Use cancel to request cancellation. The run continues under its recorder.

The plain text summary includes the outcome, final message, trace path, and run reference. JSON includes the receipt, final message, and observed command records. A completed turn requires both a zero child receipt and a successful terminal event.

The global --json flag also applies to other codex commands. Command errors in JSON use the shared error envelope.

Exit codes . 0 finished or detached with --detach, 1 failed child or launcher, 4 cancelled, 5 invalid request or read error, 7 indeterminate, 8 no progress observed, 130 attachment interrupted. The receipt retains the raw child status.

iddio codex run -C ./project -n api-work "Describe this repository"
iddio codex run --detach --json "Investigate the failing test"

iddio codex list

List active runs, optionally including retained finished runs.

iddio codex list [--owner OWNER] [--name ALIAS] [--state STATE] [--history|--all] [--sort KEY] [--limit N] [--json] (alias: ls)
Flag Default Meaning
--owner OWNER all ownersMatch the submitting owner exactly.
--name ALIAS all aliasesMatch a saved session alias exactly.
--state STATE all active statesMatch queued, waiting_for_lock, running, finalising, or finished.
--history, --all falseInclude retained finished runs. Required when selecting finished.
--sort KEY -createdAtUse -createdAt for newest first or createdAt for oldest first.
--limit N allReturn at most N results after filtering and sorting. N must be positive.
--json falseReturn a versioned object with an items array.

Run rows include owner, alias, label, model, reasoning effort, sandbox, resume target, state, and outcome.

Exit codes . 0 listed, 5 invalid selection or read error.

iddio codex list
iddio codex ls --name api-work --history --json

iddio codex show

Read one run snapshot and its available exit receipt immediately.

iddio codex show RUN_ID [--json] (alias: inspect)
Flag Default Meaning
--json falseReturn the versioned snapshot.

RUN_ID is the run directory basename printed as run=ID. The snapshot includes registration, current state, trace path, receipt, and cancellation request when available.

Exit codes . 0 shown, 5 unknown ID or read error.

iddio codex show RUN_ID
iddio codex inspect RUN_ID --json

iddio codex result

Attach until a run settles, or read its current evidence immediately.

iddio codex result RUN_ID [--no-wait] [--json]
Flag Default Meaning
--no-wait falseReturn the current state immediately. An active run exits 0.
--json falseReturn the versioned result, final message, receipt, and command records.

Prints run=ID on stderr. A launch-time stall watch can return a diagnostic while the run continues. Command evidence identifies each command, observed endpoints, status, exit, and output. Output longer than 64 KiB is returned as a UTF-8 tail of at most 64 KiB with outputTruncated set to true. A recorded launch watch must be read using its original IDDIO_HOME.

Exit codes . 0 finished or active with --no-wait, 1 failed, 4 cancelled, 5 command or read error, 7 indeterminate, 8 launch watch observed no progress, 130 detached by interrupt.

iddio codex result RUN_ID --json
iddio codex result RUN_ID --no-wait

iddio codex wait

Attach to a run and report its final result or a durable inactivity diagnostic.

iddio codex wait RUN_ID [--stall-after D] [--json]
Flag Default Meaning
--stall-after D agentStallAfter, normally 15mSet a positive Go duration. It must match an existing launch watch threshold.
--json falseReturn the result with progress measurements.

Uses the run trace and child process. Prints run=ID and, for a live watch, watch=ID on stderr. A stall leaves the Codex recorder running. Attach again for a later result. A recorded launch watch requires its original IDDIO_HOME.

Exit codes . 0 finished, 1 failed, 4 cancelled, 5 command or read error, 7 indeterminate, 8 no progress observed, 130 detached by interrupt.

iddio codex wait RUN_ID --stall-after 15m --json

iddio codex logs

Read retained trace events and command output from the beginning.

iddio codex logs RUN_ID [--follow] [--json]
Flag Default Meaning
--follow falseRead new records until settlement and drain the final records.
--json falseReturn numbered records. With --follow, stream codex.log SSE events.

Human output summarizes messages, completed commands, file changes, and turn usage. JSON records carry sequence, kind, text, and optional command item ID. Invalid UTF-8 is base64 encoded. A trace line over 1 MiB is represented as truncated. For trace lines within that limit, command_output records carry the full captured command output.

Exit codes . 0 read complete, 5 unknown ID, trace identity mismatch, or read error, 130 detached from a following read.

iddio codex logs RUN_ID
iddio codex logs RUN_ID --follow --json

iddio codex cancel

Request cancellation of one run.

iddio codex cancel RUN_ID [--json]
Flag Default Meaning
--json falseReturn the versioned cancellation acknowledgement.

A request before launch prevents launch. For a live child the recorder sends SIGINT. Repeated requests and settled runs acknowledge the existing state. Use result for the eventual outcome.

Exit codes . 0 request acknowledged or already settled, 5 unknown ID or unconfirmed request.

iddio codex cancel RUN_ID

Agent watches

Observe a progress file and optionally a process tree through the local daemon. A stall report leaves the watched agent running.

iddio agent watch

Register a watch and block until a stall, process exit, or cancellation.

iddio agent watch --progress-file PATH [--pid PID | --pgid PGID] [--owner OWNER] [--name NAME] [--stall-after D] [--json]
Flag Default Meaning
--progress-file PATH requiredObserve file size, modification time, or inode changes.
--pid PID noneAlso observe this positive process ID and its descendants.
--pgid PGID noneAlso observe this positive process group and its descendants. Choose either --pid or --pgid.
--owner OWNER IDDIO_OWNER, then unknownRecord the owner.
--name NAME noneGroup stall totals for this owner and name.
--stall-after D agentStallAfter, normally 15mUse a positive Go duration for the idle threshold.
--json falseReturn a versioned outcome object.

Prints watch=ID on stderr before blocking. Relative file paths resolve against the caller directory. File replacement and truncation count as activity. Observation of a missing file starts when it appears. Process CPU activity also resets the idle interval. A file-only watch has no process exit to settle it.

Ctrl-C detaches from the watch. The daemon keeps observing. Use cancel to stop observation.

Exit codes . 0 observed successful process exit, 1 observed failed process exit, 4 cancelled, 5 request or service error, 7 process exit status indeterminate, 8 no progress observed, 130 detached by interrupt.

iddio agent watch --progress-file /path/to/transcript.jsonl --pid 12345 --stall-after 15m
iddio agent watch --progress-file progress.log --name docs --json

iddio agent wait

Attach to a watch, optionally starting a fresh interval after a stall.

iddio agent wait WATCH_ID [--rearm] [--json]
Flag Default Meaning
--rearm falseRearm a stalled watch under the same ID and preserve earlier stall reports.
--json falseReturn the versioned outcome.

A watching resource remains attached. A stalled or settled resource replays its outcome without --rearm. Rearm applies to a stalled watch. A cancelled watch returns an error. Prints watch=ID on stderr.

Exit codes . 0 finished, 1 failed, 4 cancelled, 5 unknown ID or invalid rearm, 7 indeterminate, 8 stalled, 130 detached by interrupt.

iddio agent wait WATCH_ID
iddio agent wait WATCH_ID --rearm --json

iddio agent result

Attach to a watch or replay its retained outcome.

iddio agent result WATCH_ID [--json]
Flag Default Meaning
--json falseReturn a versioned result with idle time, last activity, tail, and process status when available.

Prints watch=ID on stderr. A stall can be replayed. Use wait --rearm to start another observation interval.

Exit codes . 0 finished, 1 failed, 4 cancelled, 5 unknown ID or service error, 7 indeterminate, 8 stalled, 130 detached by interrupt.

iddio agent result WATCH_ID --json

iddio agent list

List watching resources or include retained settled watches.

iddio agent list [--owner OWNER] [--state STATE] [--history|--all] [--sort KEY] [--limit N] [--json] (alias: ls)
Flag Default Meaning
--owner OWNER all ownersMatch the watch owner exactly.
--state STATE All states in scopeMatch watching, stalled, exited, or cancelled. Settled states require history.
--history, --all falseInclude settled watches.
--sort KEY -createdAtUse -createdAt for newest first or createdAt for oldest first.
--limit N allReturn at most N after filtering and sorting. N must be positive.
--json falseReturn a versioned object with an items array.

Rows include last activity, per-watch stall count, owner stall total, and owner/name total when named. The daemon keeps the newest 500 settled watches.

Exit codes . 0 listed, 5 invalid selection or service error.

iddio agent list
iddio agent ls --owner coordinator --history --json

iddio agent show

Read one watch snapshot, including its retained stall reports.

iddio agent show WATCH_ID [--json] (alias: inspect)
Flag Default Meaning
--json falseReturn the versioned snapshot.

States are watching, stalled, exited, and cancelled. Includes watch, owner, and owner/name stall counts.

Exit codes . 0 shown, 5 unknown ID or service error.

iddio agent show WATCH_ID --json

iddio agent cancel

Stop observation and settle a watching or stalled resource as cancelled.

iddio agent cancel WATCH_ID [--json]
Flag Default Meaning
--json falseReturn the versioned cancellation snapshot.

Repeated cancellation acknowledges the current state. Attached readers receive a cancelled outcome.

Exit codes . 0 cancellation acknowledged, 5 unknown ID or service error.

iddio agent cancel WATCH_ID

iddio agent events

Subscribe to agent.changed notifications from the local service.

iddio agent events [--json]
Flag Default Meaning
--json falseStream versioned Server-Sent Event frames.

Each change identifies a watch to read with show. After reconnection, iddio.resync signals that clients should fetch fresh snapshots.

Exit codes . 0 clean stream end, 5 connection or service error, 130 detached by interrupt.

iddio agent events --json

Environment leases and Podman resources

Lease a temporary Postgres 16 database, inspect host resources, and review anonymous volume cleanup.

iddio env run

Run a command with a temporary, tmpfs-backed Postgres 16 database, or grant one to external process holders.

iddio env run {pg16|pg16-pool} [--host NAME] [--owner OWNER] [--timeout D] [--bind IP] [--env-name VAR] [--tls] [--tmpfs SIZE] (-- CMD [ARG...] | --pid PID [--pid PID...])
Flag Default Meaning
--owner OWNER IDDIO_OWNER, then unknownRecord the lease owner.
--timeout D 1hBound queue time and lease lifetime with a positive Go duration, at most 8h.
--host NAME envDefaultHost (pg16 needs --host if unset)Select the pg16 host. pg16-pool accepts only local.
--bind IP Host bind address (127.0.0.1 on local)Publish Postgres on this IP literal. For pg16-pool the address must match envPoolBind.
--env-name VAR unsetAlso inject the database URL into this variable for an attached command.
--tls offEnable TLS with a per-lease certificate (pg16 only).
--tmpfs SIZE 320mSet the pg16 data tmpfs size (320m to 4g).
--pid PID unsetHold a detached lease while any listed live PID survives. Repeat for multiple holders.
--json falsePrint machine-readable output. Streams use SSE frames.

The postgres:16 image must be available on the selected engine. The dedicated pg16 container uses one CPU and defaults to a 768 MiB memory cap and a 320 MiB data tmpfs. With --tmpfs, the memory cap is the larger of 768 MiB and twice the tmpfs size.

Attached commands receive DATABASE_URL, PGHOST, PGPORT, PGDATABASE, PGUSER, PGPASSWORD, PGSSLMODE=disable, and IDDIO_LEASE, with --tls setting PGSSLMODE=require and adding PGSSLROOTCERT. Local pg16 loopback binds use postgres / iddio. Non-loopback local binds and remote hosts use postgres with a random per-lease password.

pg16-pool creates a database and non-superuser login for each lease. The shared container uses one CPU, 2 GiB of memory, and a 1 GiB tmpfs for lease data. PostgreSQL keeps its write-ahead log on the disposable container layer. It starts on first use and stops after 15 idle minutes.

If the pool dies before a child starts, the attached command exits 1 once the supervisor confirms that outcome. Pool cleanup continues independently.

A pool lease has kind pool_db and reserves one db slot and 64 MiB. Admission keeps over 30% of the measured tmpfs free after reservations.

A detached lease requires at least one live --pid holder and returns its connection details on grant. It releases after all holders have been gone for 60 seconds, on cancellation, or at the deadline.

The command prints lease=ID on stderr. An interrupt detaches the caller. The supervised command continues. Use env result ID to reattach, or env cancel ID to stop it.

Exit codes . Attached run returns the child exit status, including 128 plus a signal number. A detached grant exits 0. 1 start or release failure (including pool_died), 3 timeout, 4 cancellation, 5 invalid request or a lease that can never fit, 7 indeterminate or lost supervision, 130 detached.

iddio env run pg16 --host local -- go test ./...
iddio env run pg16 --host local --pid 12345
iddio env run pg16-pool --env-name TEST_DATABASE_URL -- make test-db

iddio env list

List leases, configured hosts, or sampled Podman containers, volumes, and images.

iddio env list [leases|hosts|containers|volumes|images] [flags] (alias: ls)
Flag Default Meaning
--owner OWNER no filterMatch the recorded owner exactly.
--state STATE no filterMatch a lifecycle state.
--history, --all falseInclude retained terminal resources. The flags are aliases.
--since TIME no filterInclude resources created at or after an RFC3339 timestamp.
--sort KEY -createdAtSort by createdAt (oldest first) or -createdAt (newest first).
--limit N allReturn at most N results after filtering and sorting. N must be positive.
--json falsePrint machine-readable output. Streams use SSE frames.

The default kind is leases, including both env and lock leases. Lease states are queued, granted, releasing, released, expired, cancelled, release_failed, and indeterminate.

All kinds accept --limit. Containers, volumes, and images also accept --sort and --since. Containers also accept --owner, --state, and --history. Leases accept every listed filter.

Container states are configured, created, initialized, running, paused, stopping, removing, unknown, stopped, and exited. Selecting stopped or exited requires history.

The shared container carries its poolId in inventory. Container, volume, and image inventories are read-only samples. A failed inventory refresh makes these lists return an error.

Exit codes . 0 for a successful list, 5 for invalid filters, unavailable inventory, or service/read errors.

iddio env list leases --state queued
iddio env list containers --history --json

iddio env show

Read one lease or a named host snapshot.

iddio env show LEASE_ID | host NAME [--json] (alias: inspect)
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Host snapshots include resource pressure, reservations, and stale-sample diagnostics. Lease snapshots can contain the database URL and test credentials.

Exit codes . 0 for a successful read, 5 for an unknown ID, invalid host, or service/read error.

iddio env show $LEASE_ID --json
iddio env show host local

iddio env wait

Wait for a lease to be granted or for a pre-grant launcher outcome.

iddio env wait LEASE_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

This is useful for a detached --pid lease. The lease handle is printed to stderr. Interrupting the wait leaves the lease in place.

Exit codes . 0 granted, 1 start failure, 3 timeout, 4 cancellation, 5 invalid or unknown ID, 7 indeterminate or lost supervision, 130 detached.

iddio env wait $LEASE_ID --json

iddio env logs

Read retained Postgres container output and lease lifecycle records.

iddio env logs LEASE_ID [--follow] [--json]
Flag Default Meaning
--follow falseRead new output through settlement and drain final records.
--json falsePrint machine-readable output. Streams use SSE frames.

Output is retained up to a 1 MiB prefix. Finite JSON output contains base64 data. With --follow --json, output uses env.log SSE frames.

Exit codes . 0 for a successful read, 5 for an invalid/unknown ID or read error, 130 when a follower detaches.

iddio env logs $LEASE_ID
iddio env logs $LEASE_ID --follow --json

iddio env result

Wait for or read a retained lease or volume-cleanup outcome.

iddio env result LEASE_ID|GC_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Lease JSON includes releaseAt when the daemon records the release decision for lease objects. settledAt records completion.

Loss of the shared pool gives affected leases state release_failed and outcome pool_died (exit 1). A GC result includes each selected volume and its removal outcome. A lease result waits through release unless it becomes indeterminate or release_failed.

Exit codes . For leases, 0 released, 1 start/release failure, 3 timeout, 4 cancellation, 5 invalid/unknown ID or error, 7 indeterminate, 130 detached. For GC, 0 all removed or empty, 1 any skipped/kept, 7 any indeterminate, 5 invalid/expired ID or error, 130 detached.

iddio env result $LEASE_ID --json
iddio env result $GC_ID --json

iddio env cancel

Request cancellation of a lease and prompt cleanup.

iddio env cancel LEASE_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Use env result LEASE_ID to confirm cleanup after the acknowledgement. Repeating a cancellation acknowledges the existing request or settled state.

Exit codes . 0 for an acknowledged request, 5 for an invalid/unknown ID or service/read error.

iddio env cancel $LEASE_ID

iddio env gc

Preview eligible anonymous volumes, then apply a saved and reviewed cleanup plan.

iddio env gc [--host NAME] [--dry-run] [--json] | iddio env gc --apply GC_ID [--json]
Flag Default Meaning
--dry-run Preview by defaultSave and print a preview without removing anything.
--apply GC_ID falseRecheck and remove eligible volumes from this saved preview.
--json falsePrint machine-readable output. Streams use SSE frames.

The preview is saved for 24 hours and prints gc=ID to stderr. Review its items before applying. Only anonymous, dangling volumes older than six hours are candidates.

Apply requires the preview ID. It rechecks each volume and its references before removal and keeps or skips changed, referenced, or uncertain items.

Repeating --apply for the same ID returns the retained outcome. Use env result GC_ID to read or await it.

Exit codes . Preview exits 0 on success. Apply returns 0 all removed or empty, 1 any skipped/kept, 7 any indeterminate, 5 invalid/expired plan or service/read error, 130 detached.

iddio env gc --json
iddio env gc --apply $GC_ID --json

iddio env events

Subscribe to environment lease, inventory, host, and cleanup changes.

iddio env events [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

JSON mode emits env.changed SSE frames. Events identify resources to read again by kind and ID.

Exit codes . 130 when the stream is detached, 5 for a service or stream error.

iddio env events --json

Heavy command lock

Queue expensive local commands under a supervised lock with one slot by default.

iddio lock run

Queue and run a command under the heavy lock.

iddio lock run heavy [--owner OWNER] [--timeout D] -- CMD [ARG...]
Flag Default Meaning
--owner OWNER IDDIO_OWNER, then unknownRecord the lease owner.
--timeout D 1hBound queue time and lease lifetime with a positive Go duration, at most 8h.
--json falsePrint machine-readable output. Streams use SSE frames.

Requests are FIFO. Queue position and hold reasons appear on stderr with lease=ID. Interrupting detaches the caller while the supervised command continues. Use lock result ID to reattach.

Exit codes . Returns the child exit status, including 128 plus a signal number. Before launch it can return 1 start failure, 3 timeout, 4 cancellation, 5 invalid request or never-fits, 7 indeterminate/lost supervision, 130 detached.

iddio lock run heavy -- go test -race ./...
iddio lock run heavy --timeout 2h -- golangci-lint run ./...

iddio lock list

List heavy lock leases.

iddio lock list [flags] (alias: ls)
Flag Default Meaning
--owner OWNER no filterMatch the recorded owner exactly.
--state STATE no filterMatch a lifecycle state.
--history, --all falseInclude retained terminal resources. The flags are aliases.
--since TIME no filterInclude resources created at or after an RFC3339 timestamp.
--sort KEY -createdAtSort by createdAt (oldest first) or -createdAt (newest first).
--limit N allReturn at most N results after filtering and sorting. N must be positive.
--json falsePrint machine-readable output. Streams use SSE frames.

Active leases are shown by default. States are queued, granted, releasing, released, expired, cancelled, release_failed, and indeterminate.

Exit codes . 0 for a successful list, 5 for invalid filters or service/read errors.

iddio lock list
iddio lock list --history --owner build-agent --json

iddio lock show

Read the current snapshot of a heavy lock lease.

iddio lock show LEASE_ID [--json] (alias: inspect)
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Exit codes . 0 for a successful read, 5 for an invalid/unknown ID or service/read error.

iddio lock show $LEASE_ID --json

iddio lock wait

Wait until a heavy lock lease is granted or settles before grant.

iddio lock wait LEASE_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

The lease handle is printed on stderr. Interrupting this attachment leaves the lease in place.

Exit codes . 0 granted, 1 start failure, 3 timeout, 4 cancellation, 5 invalid/unknown ID or never-fits, 7 indeterminate, 130 detached.

iddio lock wait $LEASE_ID

iddio lock logs

Read retained combined output from the supervised command.

iddio lock logs LEASE_ID [--follow] [--json]
Flag Default Meaning
--follow falseRead new output through settlement and drain final records.
--json falsePrint machine-readable output. Streams use SSE frames.

Up to a 1 MiB prefix is retained. Finite JSON output contains base64 data. With --follow --json, output uses lock.log SSE frames.

Exit codes . 0 for a successful read, 5 for an invalid/unknown ID or read error, 130 when a follower detaches.

iddio lock logs $LEASE_ID
iddio lock logs $LEASE_ID --follow --json

iddio lock result

Wait for or retrieve the retained heavy lock outcome.

iddio lock result LEASE_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Result reports the lease outcome. Read the child exit status in the lease snapshot.

Exit codes . 0 released, 1 start/release failure, 3 timeout, 4 cancellation, 5 invalid/unknown ID or never-fits, 7 indeterminate, 130 detached.

iddio lock result $LEASE_ID --json

iddio lock cancel

Request cancellation of a queued or running heavy lock lease.

iddio lock cancel LEASE_ID [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

Use lock result LEASE_ID to confirm the process group has exited after the acknowledgement.

Exit codes . 0 for an acknowledged request, 5 for an invalid/unknown ID or service/read error.

iddio lock cancel $LEASE_ID

iddio lock events

Subscribe to heavy lock lease changes.

iddio lock events [--json]
Flag Default Meaning
--json falsePrint machine-readable output. Streams use SSE frames.

JSON mode emits lock.changed SSE frames. Each event names a lease to read again.

Exit codes . 130 when the stream is detached, 5 for a service or stream error.

iddio lock events --json

Other commands

Subscribe to local updates, run the daemon in the foreground, or get shell help.

iddio events

Subscribe to changes across daemon products.

iddio events [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

The shared stream carries ci.changed, agent.changed, env.changed and lock.changed. With --json, stdout carries Server-Sent Events (SSE) with event: and data: lines followed by a blank line. Human output uses one line per event.

Subscribe before reading snapshots, then apply queued notifications. After a reconnect, iddio.resync appears before new events with data {"schemaVersion":1,"type":"resync"}. Read fresh snapshots at that boundary.

Exit codes . 130 on detach, 5 on error.

iddio events --json

iddio daemon

Run the per-user local service in the foreground.

iddio daemon [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.

Clients that need the daemon start it automatically. The socket is ~/.iddio/run/iddio.sock and the service log is ~/.iddio/daemon.log. The service exits after five idle minutes.

Set IDDIO_HOME to an absolute path to use a different home directory. The .iddio directory is placed under that home.

Exit codes . 0 on normal shutdown, 5 on error.

iddio daemon

iddio help

Display help for a command or command group.

iddio help [command...] [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.
iddio help env run
iddio codex run --help

iddio completion

Generate a completion script for a supported shell.

iddio completion <bash|fish|powershell|zsh> [flags]
Flag Default Meaning
-h, --help falsePrint help for the current command.
--json falseSelect machine-readable output on commands that produce results or streams.
iddio completion --help

iddio completion bash

Print the bash completion script to stdout.

iddio completion bash [flags]
Flag Default Meaning
--no-descriptions falseOmit descriptions from completion suggestions.
source <(iddio completion bash)

iddio completion fish

Print the fish completion script to stdout.

iddio completion fish [flags]
Flag Default Meaning
--no-descriptions falseOmit descriptions from completion suggestions.
iddio completion fish | source

iddio completion powershell

Print the powershell completion script to stdout.

iddio completion powershell [flags]
Flag Default Meaning
--no-descriptions falseOmit descriptions from completion suggestions.
iddio completion powershell | Out-String | Invoke-Expression

iddio completion zsh

Print the zsh completion script to stdout.

iddio completion zsh [flags]
Flag Default Meaning
--no-descriptions falseOmit descriptions from completion suggestions.
source <(iddio completion zsh)

Exit codes

The command determines the meaning of its exit status. Attached lease runs can return the child’s status directly, including 128 plus its terminating signal. Use JSON to read the child status and lease outcome separately.

Code Meaning
0 Successful operation or snapshot. For CI, verified first-attempt pass.
1 CI failed upstream, an agent or Codex run failed, a lease failed to start or release, or cleanup kept or skipped a volume.
2 CI discovery ended without qualifying checks or the requested head, or every Actions execution was skipped or neutral (no_successful_execution). Read the result’s reason for details.
3 CI or lease deadline expired.
4 Cancellation. For CI, this also covers a superseded PR head.
5 Invalid input, unavailable or inconsistent service data, unknown IDs or another CLI error.
6 CI verified a pass after at least one rerun.
7 Indeterminate agent, Codex, lease or cleanup outcome.
8 Agent or Codex inactivity detected.
130 Client detached. For a durable wait, use the printed handle to reattach or cancel. For events, including product-scoped streams, subscribe again, refresh your snapshots, then apply queued events.

Configuration

The daemon loads the optional ~/.iddio/config.json at startup. Use a private file such as mode 0600 in the owner-only ~/.iddio directory. The file is a JSON object with numeric values. Duration settings use seconds. Unknown, duplicate and invalid settings cause startup to fail.

Key Default Meaning
ciPollFloor 60Minimum seconds between polls. At least 60.
ciPollCeiling 300Maximum interval for ordinary adaptive polling, in seconds. At least ciPollFloor.
ciReviewWindow 180Default review window in seconds. Positive.
ciRetention 604800CI history retention in seconds. Positive.
agentStallAfter 900Default inactivity threshold in seconds. Positive.
lockHeavyCapacity 1Concurrent heavy-job slots. A nonnegative integer. Zero disables admission.
envContainerCapacity 2Container slots shared by dedicated PG16 leases, the shared PG16 pool, and active test databases outside recorded leases. A nonnegative integer. Zero disables admission.
envPoolDbCapacity 12Database slots for concurrent pg16-pool leases. A nonnegative integer. Zero disables pool admission.
envPoolBind 127.0.0.1IP literal on which the shared PG16 pool publishes its port.
envDiskMinFreeBytes 10737418240Minimum free disk bytes for admission. A nonnegative integer.
envMemMinAvailableBytes 1073741824Minimum available memory in bytes for admission. At least envCriticalMemAvailableBytes.
envCriticalMemAvailableBytes 536870912Critical available-memory threshold in bytes. A nonnegative integer.
envCpuPressurePercent 60CPU pressure threshold for admission. Between zero and envCriticalCpuPressurePercent.
envCriticalCpuPressurePercent 85Critical CPU pressure threshold. Between envCpuPressurePercent and 100.
envSwapInsPerSec 1000Swap-ins per second threshold for admission. Nonnegative and finite.
envMacPressureLevel 4macOS memory-pressure threshold for admission. An integer between 1 and envCriticalMacPressureLevel.
envCriticalMacPressureLevel 4Critical macOS memory-pressure threshold. An integer between envMacPressureLevel and 4.
{
  "ciReviewWindow": 420,
  "lockHeavyCapacity": 1
}