Inspect
| Command | Does |
|---|---|
machine runs |
List runs, newest first |
machine describe |
Show the full configuration of a run |
machine state |
Show the state of a run and of its machine |
machine now |
Show where a run is |
machine output |
Show the output of a run |
machine events |
Show the events a program reported |
machine dump |
Dump the state of a machine |
machine hash |
Show the state hashes of the machine |
machine vcpu |
Show what a vCPU is doing and how its last dispatch ended |
machine ops |
List operations on runs and how they finished |
machine debug |
Show debug or error output from a run |
machine runs
List runs, newest first. See Inspecting a run.
Options filter by state, label, flag, disk, sync state and age.
The listing shows the newest 25. Use --limit for a different page size. Naming
a run limits the listing to its tree. Use --roots for one row per tree, and
--wide for more columns.
1 | machine runs [-h] [--state [^]state] [--running] [--roots] [--label name=value] |
| Argument | Does |
|---|---|
[root] |
Show one tree, by its root |
| Option | Does |
|---|---|
--state [^]state |
Filter by state: running, paused, recovering, read-only, stopped, killed, terminated, died, failed (repeat = OR; ^ excludes) |
--running |
Show only running runs, the same as --state running |
--roots |
One row per tree instead of every run, with its running N/M |
--label name=value |
Filter by a label (repeatable; matches all) |
--flag name[=value] |
Filter by an option the run was created with, such as daemon or rng; name=0 for one it was not (repeatable; matches all) |
--disk name|id |
Filter by the disk a run was created from |
--parents mode |
Filter by where a run reads the runs it branched from: local for this session, remote for shared storage |
--synced |
Show only runs published to shared storage |
--not-synced |
Show only runs with nothing published |
--since date|age |
Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m |
--until date|age |
Until a date such as 2026-06-01, or an age such as 7d, 24h or 30m |
--sort field |
Sort field: created, name, cpus, memory, rng-seed, limit (default: created) |
--reverse |
Reverse sort order |
--limit n |
Show at most n runs (default: 25) |
--offset n |
Skip the first n runs |
--no-trunc |
Show full run ids |
--wide |
Show the DEPTH, DURABLE and PIN columns |
--size |
Measure and show size |
-w, --watch |
Watch for changes |
Examples:
1 | machine runs the newest runs |
Prints:
1 | text NAME STATE CPUS MEMORY DISK OPTIONS SESSION CREATED ID |
See also:
machine describe
Show the full configuration of a run. See Inspecting a run.
The configuration covers the state, resources, options and lineage of the run.
1 | machine describe [-h] run |
| Argument | Does |
|---|---|
run |
Run name |
Examples:
1 | machine describe run1 configuration and lineage of run1 |
Prints:
1 | text Name ID State Started Resources Options Lineage |
See also:
machine state
Show the state of a run and of its machine. See Inspecting a run.
The command shows the activity, machine time, entry and resources of the machine.
1 | machine state [-h] run |
| Argument | Does |
|---|---|
run |
Run name |
Examples:
1 | machine state run1 state, activity and position of run1 |
Prints:
1 | running state activity vtime entry cpus vcpu memory host cpu |
See also:
machine now
Show where a run is. See Inspecting a run.
The entry and the vtime are points for go, rewind, fork --at and detach
--at. Nothing moves.
Machine time does not move for work too short to count. A +N after the time tells apart the entries that share it. 0.2s is the first entry at that time and 0.2s+2 is the third.
A time with +N is a point like any other. It names exactly one entry.
1 | machine now [-h] run |
| Argument | Does |
|---|---|
run |
Run name |
Examples:
1 | machine now run1 entry, vtime and RIP of run1 |
Prints:
1 | text vtime=<time> entry=<id> vcpu=<n> rip=<address> <event> hash=<hash> |
See also:
machine output
Show the output of a run. See Inspecting a run.
The output is everything the machine printed, in the order it was printed. Each line has a source. The console is one source, and it is the one shown.
The serial ports ttyS1 to ttyS3 are sources too. A program in the guest that
writes to /dev/ttyS1 prints on ttyS1. Use --source to read another source. The
sources subcommand lists the sources that printed.
An output file is a source, named by its path. A program in the guest writes its files under the directory that MACHINE_OUTPUT_DIR names. A file events.jsonl that the service app writes there is /output/keep/app/events.jsonl. The path of a directory is every file under it.
The directory that MACHINE_DROP_OUTPUT_DIR names is for output too large to
store. A file under it has a name and no bytes. A branch forked with
--keep-output stores the file when replayed.
The name all is every source in the order printed, each line after the name of its source. A source that prints ends a line another source left unfinished.
Use --entries to select the output of given entries, -n to select lines, and
-f to follow new output. An entry that printed nothing contributes nothing.
The command prints lines and does not search them. Pipe it to grep to find text, or to less to page through it. Use -n : to hand them every line.
On a terminal each line shows the entries and the source that printed it, and
its number. ENTRIES is the first and the last entry of the line. Into a pipe or
a file the lines are printed alone. Use --wide or --plain to choose.
The entry subcommand gives the one entry that printed a byte. Use it for the exact entry of a match.
The bytes subcommand writes the bytes of a source unchanged. Use it to save a file that is not text.
1 | machine output [-h] [-n range] [--entries range] [-f] [--wide] [--plain] [--source name] |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
-n, --lines range |
Lines: N for one, A:B for A through B, A: from A on, :B up to B, : for all, -N or -N: for the last N, and -A:-B counted from the end |
--entries range |
Output of entry N, or of entries A:B, both ends included |
-f, --follow |
Follow new output (like tail -f) |
--wide |
Show the entries and the source that printed each line, and its number (default on a terminal) |
--plain |
Print the lines alone (default into a pipe or a file) |
--source name |
Source to read: console, all, ttyS0 to ttyS3, hvc0, debugcon, events, or the path of an output file or directory under /output (default: console) |
Examples:
1 | machine output run1 the last lines |
Prints:
1 | text ENTRIES SOURCE LINE OUTPUT on a terminal |
See also:
machine output sourcesmachine output bytesmachine output entrymachine replaymachine entriesmachine gomachine debug
machine output entry
Show the entry that printed a byte of the output. See Finding a line.
A line is printed over a range of entries. A byte is printed by one. The command takes the offset of a byte and prints its entry.
The offset counts bytes from 0 over what the console printed. The grep option -b prints the offset of a match. The first number of its output is the operand.
Use --source for a byte another source printed. The offset then counts within
the output of that source.
The entry is a point. Use it with go, fork, rewind and the other commands that take an entry.
1 | machine output run entry [-h] [--source name] offset |
| Argument | Does |
|---|---|
offset |
Byte offset in the output of the source, counted from 0 |
| Option | Does |
|---|---|
--source name |
Source to read: console, all, ttyS0 to ttyS3, hvc0, debugcon, events, or the path of an output file or directory under /output (default: console) |
Examples:
1 | machine output run1 entry 48213 the entry of byte 48213 |
Prints:
1 | text the entry, alone |
Refuses, and the way past:
1 | an offset past the end machine output run1 -n : |
See also:
machine output sources
List the sources that printed and how much each printed.
A source is a serial port such as ttyS1, the virtio console, or an output file. The command prints a row for each source that printed, in the order each first printed.
The lines of a source are counted in its own output. Use the name with
--source to read that source.
An output file with nothing stored is listed after them with 0 bytes. It is a
file the run drops, or a file that was not written. Use its name with
--keep-output on a fork to store it.
The list is made where the output is kept, so the output is not downloaded. The output of the ancestors of the run is counted.
1 | machine output run sources [-h] |
Examples:
1 | machine output run1 sources each source that printed |
Prints:
1 | text SOURCE BYTES LINES ENTRIES, a row for each source |
See also:
machine output bytes
Write the bytes a source printed, exactly as printed.
The command writes the bytes to standard output and changes none. Use it for an output file that is not text.
With the json format the command prints a row for each write instead of the bytes. A row has the entry that wrote, the source, the offset and the length. The offset counts within the output of the source of the row. A row also names the task that wrote.
The bytes are read where the output is kept. The output of the ancestors of the run comes first.
1 | machine output run bytes [-h] [--source name] |
| Option | Does |
|---|---|
--source name |
Source to read: console, all, ttyS0 to ttyS3, hvc0, debugcon, events, or the path of an output file or directory under /output (default: console) |
Examples:
1 | machine output run1 bytes --source /output/keep/app/a.bin a file |
Prints:
1 | text the bytes, unchanged |
See also:
machine output search
Find a pattern in the output and the entry of each match. See Finding a line.
The pattern is a regular expression. A match is within a line. Each match is printed with the entry that printed its first byte and the time of that entry.
A match has at least one character, since an entry printed it. A pattern that matches without any text is refused. The pattern 6* is one, and 6+ is not.
The search is done where the output is kept, so a large output is not downloaded. Its lineage is searched, from the first line an ancestor printed.
Use --from and --to to search the output between two points. A match begins
at --from or after it and ends at --to or before it.
Use -f to go on with what is printed next. Use --max to stop after a number of
matches.
The console is searched. Use --source to search another source. With all,
every source is searched and a match is still within the line of one source.
The entry and the time are points. Use either with go, fork, rewind and the other commands that take a point.
1 | machine output run search [-h] [-f] [--max n] [--from point [point ...]] |
| Argument | Does |
|---|---|
regex |
Regular expression to find |
| Option | Does |
|---|---|
-f, --follow |
Go on with new output (like tail -f) |
--max n |
Stop after n matches |
--from point [point ...] |
Point the search begins at: ^checkpoint, #entry, -N for N entries back, a time such as 10ms or -10ms, console~regex, console:N where line N was printed, parent [n], root, or %mark (default: the start of the output) |
--to point [point ...] |
Point the search ends at, as --from takes one (default: the end of the output) |
--source name |
Source to read: console, all, ttyS0 to ttyS3, hvc0, debugcon, events, or the path of an output file or directory under /output (default: console) |
Examples:
1 | machine output run1 search login each match and its entry |
Prints:
1 | text ENTRY TIME SOURCE LINE:COL TEXT, a row for each match |
Refuses, and the way past:
1 | a pattern that matches no text, as 6* machine output run1 search '6+' |
See also:
machine events
Show the events a program reported.
A program built with an Antithesis SDK reports assertions, its setup and events of its own. The library the machine serves writes each event to /output/events. A program that does not load the library writes the same lines to sdk.jsonl in its ANTITHESIS_OUTPUT_DIR. The command lists the events of both by the entry that wrote them.
Each event shows its entries, its source and line, the task that wrote it and its key. The command shows the last 25 events by default. Use -n to show others, as output does. The sources subcommand lists the files.
Use --key, --outcome, --in, --entries and --source to show some events
alone. Every filter given has to hold. The search subcommand finds a pattern in
them. Use -o jsonl and jq to filter on any field.
The run stores sdk.jsonl at the top of the drop directory and of each service’s directory there. A name the run keeps or drops decides first.
An assertion shows whether it was declared, passed or failed. An Always assertion fails where it is false. An Unreachable assertion fails where it is reached. A Sometimes assertion that is false has not failed.
A source and a line such as /output/events:57 are a point for --at and other
options. Use run --until with the source’s name, ~ and a pattern to stop
where an event is written.
An event is what the program says. The machine stores it as it was written and does not check it. A line that is not one JSON object of one key is shown as its text. A line longer than 65536 bytes is shown up to that limit and marked truncated.
Use -o jsonl to write each event’s fields as a row, for a JSONL reader such as clickhouse local. Use -o raw to write each line as the program wrote it. A line over the limit becomes a machine_error line with its bytes, source and line.
The command reads what the run stored, across its lineage. The machine does not need to run. The events are printed as they are read.
1 | machine events [-h] [-n range] [--key key] [--outcome outcomes] [--in who] |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
-n, --lines range |
Events: N for one, A:B for A through B, A: from A on, :B up to B, : for all, -N or -N: for the last N, and -A:-B counted from the end |
--key key |
Events of this key alone, such as antithesis_setup |
--outcome outcomes |
Assertions of these outcomes alone, comma-separated: declared, passed, false, failed |
--in who |
Events a task wrote: comm=NAME, tid=N, tgid=N or all |
--entries range |
Events of entry N, or of entries A:B, both ends included |
--source name |
Events of one file: events, or the path of an sdk.jsonl |
--wide |
Show each event whole, an assertion’s outcome in a column of its own |
Examples:
1 | machine events run1 the last 25 events |
See also:
machine events sources
List the files that hold the events and how many each holds.
The library the machine serves writes events to /output/events. A program that does not load it writes them to sdk.jsonl. The command prints a row for each file the run stored.
Use the name with --source to read the events of one file.
1 | machine events run sources [-h] |
Examples:
1 | machine events run1 sources the files of events |
See also:
machine events search
Find a pattern in the events and the entry of each match.
The pattern is a regular expression, matched against the line of each event as the program wrote it. A pattern that matches without any text is refused, as output search refuses it.
The events that match are listed as the events are, with the filters the events take.
Use --from and --to to search the events between two points. Use --max to
stop after a number of matches.
1 | machine events run search [-h] [--max n] [--from point [point ...]] |
| Argument | Does |
|---|---|
regex |
Regular expression to find |
| Option | Does |
|---|---|
--max n |
Stop after n matches |
--from point [point ...] |
Point the search begins at: ^checkpoint, #entry, -N for N entries back, a time such as 10ms or -10ms, console~regex, console:N where line N was printed, parent [n], root, or %mark (default: the first event) |
--to point [point ...] |
Point the search ends at, as --from takes one (default: the last event) |
--key key |
Events of this key alone, such as antithesis_setup |
--outcome outcomes |
Assertions of these outcomes alone, comma-separated: declared, passed, false, failed |
--in who |
Events a task wrote: comm=NAME, tid=N, tgid=N or all |
--entries range |
Events of entry N, or of entries A:B, both ends included |
--source name |
Events of one file: events, or the path of an sdk.jsonl |
--wide |
Show each event whole, an assertion’s outcome in a column of its own |
Examples:
1 | machine events run1 search leader events whose line matches |
See also:
machine dump
Dump the state of a machine. See Inspecting a run.
The sections cover vCPU code, registers, stack and page tables, timers,
interrupt controllers, devices, memory and hashes. Use --show to choose
sections. Use --entry to dump the state recorded at an entry.
Without --show, every section the machine has is printed. Use --mem to print
memory alone, or with --show beside other sections. Use -o json for one object
per section.
The hash section is what the entry recorded, before its exit was handled. Memory and the disk are 0 there unless the run hashes them. Use machine hash for the hashes after the entry, with its exit handled.
1 | machine dump [-h] [--entry n] [--show sections] [--mem addr] [--vcpu n] run |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
--entry n |
Entry whose recorded state to dump, instead of the state now |
--show sections |
One or more, comma-separated: code, regs, stack, pt, instr, trace, events, timers, debug, xsave, irq, pic, ioapic, devs, mem, disk, hash, entry, io, msrs, fullhash, all |
--mem addr |
Dump guest memory at an address: pADDR physical, vADDR virtual in the page tables of the vCPU |
--vcpu n |
The vCPU whose state and page tables are read (default: 0) |
Examples:
1 | machine dump run1 vCPU state at the current entry |
See also:
machine hash
Show the state hashes of the machine. Each is computed as it stands. See Comparing two machines.
The command prints a hash of memory. It prints a hash of the disk. Each device
has a hash too. The interrupts held by --irq-delay have their own hash,
irq_pending.
Each vCPU has a hash of each part of its state. Each vCPU also has a hash of the whole machine. Each hash compares with another machine’s at the same point, such as a replay’s.
A hash is not the one dump --show hash prints. Dump prints the hashes the
newest entry recorded, before its exit was handled. This command computes them
after that entry, with its exit handled. Memory and the disk are in its hashes
even when the entry hashed neither.
The hashes are computed whether or not the run hashes memory and the disk at each entry. Memory is read from all of RAM.
The vCPU hashes are of each vCPU now on a host kernel that computes them. Elsewhere they are of each vCPU’s last exit. The command then says so.
The command changes nothing. The run records nothing, and the machine stays where it is.
The command waits until every hash is computed, however long reading RAM takes. The machine refuses commands that would change it until then. Use Ctrl-C or machine cancel to stop it.
1 | machine hash [-h] [--vcpu n] run [hashes] |
| Argument | Does |
|---|---|
run |
Run name |
[hashes] |
One or more, comma-separated: vcpu, devices, mem, disk, irq_pending, or a component such as regs or rtc (default: all) |
| Option | Does |
|---|---|
--vcpu n |
Show the hashes of this vCPU alone |
Examples:
1 | machine hash run1 every hash of the machine now |
See also:
machine vcpu
Show what a vCPU is doing and how its last dispatch ended.
A dispatch is one entry into the machine. It runs until its limit or until the machine exits to the host.
1 | machine vcpu [-h] [--vcpu n] run |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
--vcpu n |
The vCPU (default: 0) |
Examples:
1 | machine vcpu run1 run state of vCPU 0 |
Prints:
1 | first line entry ready pending iter |
See also:
machine ops
List operations on runs and how they finished. See Inspecting a run.
The listing shows the newest 25 operations in every state. Use --limit for a
different page size. Use --state to show some states.
An operation outlives the command that started it. One interrupted with Ctrl-C is still listed here by its id. The next start of a run finishes its unfinished rewind.
Operations on the account’s storage are listed by machine storage ops.
1 | machine ops [-h] [--op-id id] [--state [^]state] [--type [^]type] [--since date|age] |
| Argument | Does |
|---|---|
[run] |
Show operations on one run |
| Option | Does |
|---|---|
--op-id id |
Show one operation, by its id (ignores --state and --type) |
--state [^]state |
Filter by state: running, unfinished, done, failed (default: all; repeat = OR; ^ excludes) |
--type [^]type |
Filter by type: checkpoint, branch, switch, rewind, start, delete, go, fork, rewind-to, switch-start, stop-all, delete-all, replay, run-until (default: all; repeat = OR; ^ excludes) |
--since date|age |
Since a date such as 2026-06-01, or an age such as 7d, 24h or 30m |
--until date|age |
Until a date such as 2026-06-01, or an age such as 7d, 24h or 30m |
--limit n |
Show at most n operations (default: 25) |
--offset n |
Skip the first n operations |
--no-trunc |
Show full run ids |
-w, --watch |
Watch for changes |
Examples:
1 | machine ops the newest operations |
See also:
machine debug
Show debug or error output from a run. See Inspecting a run.
The log subcommand shows the debug output. The err subcommand shows errors and crashes.
1 | machine debug [-h] command ... |
Examples:
1 | machine debug log run1 the log of run1 |
See also:
machine debug log
Show the debug log of a run. See Inspecting a run.
Use -n to select lines, and -f to follow new output.
1 | machine debug log [-h] [-n range] [-f] run |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
-n, --lines range |
Lines: N for one, A:B for A through B, A: from A on, :B up to B, : for all, -N or -N: for the last N, and -A:-B counted from the end |
-f, --follow |
Follow new output (like tail -f) |
Examples:
1 | machine debug log run1 the log of run1 |
See also:
machine debug err
Show the error and crash log of a run. See Inspecting a run.
Use -n to select lines, and -f to follow new output.
1 | machine debug err [-h] [-n range] [-f] run |
| Argument | Does |
|---|---|
run |
Run name |
| Option | Does |
|---|---|
-n, --lines range |
Lines: N for one, A:B for A through B, A: from A on, :B up to B, : for all, -N or -N: for the last N, and -A:-B counted from the end |
-f, --follow |
Follow new output (like tail -f) |
Examples:
1 | machine debug err run1 the error log of run1 |
See also: