- Version: 1.0.0
- Author: setdef
- License: MIT
- Repository: https://github.com/setdef/Proof
Proof sends your project from the computer you work on to the other Linux, Windows, and macOS computers you have, runs its tests and builds there, streams their output back, and exits with their status.
The task's output goes to standard output. The lines Proof prints go to standard error, and each begins with "proof:".
Run the test task
Sends the working tree and runs the project's test task on a runner of an operating system the task works on.
proof run test
Build on two operating systems at once
Runs the package task on a Linux runner and a Windows runner in parallel, then downloads both runs' artifacts.
proof run package --os linux --os windows --download
Run a script without defining a task
proof run --script bench.sh --os linux
Come back to a run
Streams run m3d8q's output and exits with its status.
proof watch m3d8q
- Usage:
proof [FLAGS] [SUBCOMMAND]
--no-color— Print no color, as when NO_COLOR is set or standard error isn't a terminal--no-input— Never prompt; fail and name the flag to use instead-q --quiet— Print only the task's output and the result lines-d --debug— Print what Proof does at each step, to standard error--version— Printsproof VERSIONto standard output, where VERSION is the version of this build, and exits with 0.
- Usage:
proof run [FLAGS] [task] [args]… - Effect: modifies state
Sends your working tree as it is, with uncommitted changes and untracked files that Git doesn't ignore, or the commit you name with --commit, and runs a task or a script there. Streams the output while it runs and exits with the run's status. With several --os flags, runs one run per operating system in parallel and exits with the first of these that applies:
- 130, 141, or 143, when Proof canceled the runs: you pressed Ctrl-C, standard output was closed, or Proof received TERM.
- The status of the first run whose command failed, or that someone else canceled, which counts as 130, in the order of the --os flags, not the order the runs finish. With --os all, the order is linux, macos, windows.
- 78, when a run failed because of its artifacts: its command exited with 0 but Proof couldn't keep them, or the server was short of space and the command never started.
- 75, when the pool failed, as when a runner's host went away.
-
A refusal, 2, comes before anything is sent, so it never mixes with these.
Proof's flags work anywhere before --. The words for the task follow --, as they do for
cargo run and npm run, and go to the task as they are, so they mean what they mean to mise. A
flag Proof doesn't have, before --, is a mistake: Proof names it, suggests the nearest flag it
has, and exits 2 without sending anything.
::: starts the next task, before or after --, as it does for mise run. The word after :::
is that task's name, and its words again follow --.
The words for a script follow -- too, as in proof run --script bench.sh -- --quick, and go to
the script as its arguments, as bash FILE ARGS would pass them. A task and --script can't go
together: Proof refuses the line and exits 2.
Press Ctrl-C to cancel the run. To start a run without waiting for it, use --detach.
[task]— The task to run, from the project's mise.toml or .config/proof.kdl[args]…— After--, the words for the task or the script;:::starts the next task, whose name follows it and whose words follow a--after that name
-
--script <file>— Run this script file instead of a task; give - to read it from standard input -
--os <os>— Runs on this operating system; repeat the flag to run on several in parallel. Without --os, Proof places the run on any operating system with a runner free, or only on those the project file lists for the task. "any" means the same, and "all" runs once on every one of them.Choices:
linux,macos,windows,any,all -
--label <label>— Runs only on a runner that has this label, in addition to the task's labels. A label is 1 to 63 characters: ASCII letters, digits,-,_, and., beginning and ending with a letter or a digit, with no space. Proof compares labels without regard to case, so GPU and gpu are one label. Proof refuses a label that breaks the rule.Choices:
gpu,kvm,desktop,sound,podman,xcode -
--commit <rev>— Send this commit, with its history, instead of the working tree -
-C --project <dir>— Use the project whose Git repository contains this folder -
--cpus <count>— Request this many CPUs, in place of the task's request -
--memory <size>— Requests this much memory, in place of the task's request. A size is a number, an optional space, and a unit: MB, GB, or TB, or MiB, GiB, or TiB, in any case. The number is whole, such as 8, or decimal with digits on both sides of the point, such as 1.5, with no sign, exponent, or thousands separator. Every unit counts in 1,024s, so 1GB is 1,024 MB. A size that isn't a whole number of megabytes rounds up to the next whole megabyte. Proof refuses a size that breaks the rule, with the forms that work. -
--timeout <duration>— End the run after this long, such as 30m, in place of the task's time limit -
--empty— Start in an empty workspace, with nothing reused from earlier runs -
--keep <pattern>— Keep the files matching this pattern as artifacts, in addition to the task's -
--input <run>— Give this run the artifacts of an earlier run, in $PROOF_INPUTS/RUN_ID -
--input-file <path>— Give this run a file or folder from this computer, in $PROOF_INPUTS/files -
--download— Download the run's artifacts when it succeeds -
-o --output <dir>— Download artifacts into this folder instead of the project's folder -
--detach— Start the run, print its ID, and exit without waiting for it -
--json— Print one JSON object per run in place of the result lines
| Code | Meaning |
|---|---|
0 |
The run succeeded, or --detach started it. |
2 |
Proof refused the run before sending anything: the command line or the project file has a mistake, or no host has the resources the run requests. |
75 |
A runner or its host went away, or Proof couldn't reach the server. Run the same command again. |
78 |
The run failed because of its artifacts: its command exited with 0 but Proof couldn't keep them, because a --keep or artifact pattern matched no file or they exceeded the pool's limit; or the server was short of space, and the command never started. |
124 |
The run reached its time limit, and the runner ended it. |
130 |
The run was canceled: you interrupted Proof with Ctrl-C, or someone else, or the pool, canceled it. The result line says who canceled it. |
137 |
The run held more memory than it requested while its host ran short, or was killed. |
141 |
Standard output was closed, as by a pipe into head, and Proof canceled the run. |
143 |
Proof received TERM, as when an agent harness stops it, and canceled the run. |
Run a task
proof run test
Check the last commit, with its history
proof run test --commit HEAD
Run on every operating system the task works on
proof run test --os all
Give the task a flag
The words after -- go to the task, as for cargo run and npm run.
proof run test -- --seed 1234
Run two tasks in one run, as mise runs them
proof run lint ::: test
Give two tasks different words
proof run lint -- --fix ::: test -- --seed 1234
Build on Linux and download what it built
proof run build --os linux --keep 'pkg/*.gem' --download
Run a script from standard input
proof run --script - --os macos
Give a script its words
The words after -- go to the script as its arguments.
proof run --script bench.sh -- --quick
- Usage:
proof watch [--json] <run> - Effect: read-only
Streams a run's output until it ends, and exits with its status. Picks up a run that is still going, from any terminal. Press Ctrl-C to stop watching; the run goes on.
<run>— The run's ID, or its last five characters
--json— Print the run's result as JSON when it ends
| Code | Meaning |
|---|---|
0 |
The run succeeded. |
2 |
The command line has a mistake. |
75 |
The run's runner or its host went away, or Proof couldn't reach the server. If Proof couldn't reach the server, run the same command again. |
78 |
The run failed because of its artifacts: its command exited with 0 but Proof couldn't keep them, because a --keep or artifact pattern matched no file or they exceeded the pool's limit; or the server was short of space, and the command never started. |
124 |
The run reached its time limit, and the runner ended it. |
130 |
Someone canceled the run, and the result line says who; or you pressed Ctrl-C, and Proof stopped watching and left the run going. |
137 |
The run held more memory than it requested while its host ran short, or was killed. |
141 |
Standard output was closed, as by a pipe into head; Proof stopped watching and left the run going. |
143 |
Proof received TERM, as when an agent harness stops it; Proof stopped watching and left the run going. |
proof watch m3d8q
- Usage:
proof logs [--tail <lines>] [--no-pager] <run> - Effect: read-only
Prints a run's whole output. Works for any run Proof still keeps, finished or not. On a terminal, Proof shows the output in a pager.
<run>— The run's ID, or its last five characters
--tail <lines>— Print only the last this many lines--no-pager— Print to standard output without a pager
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof logs m3d8q
Print the end of the output
proof logs m3d8q --tail 100
- Usage:
proof cancel <run>… - Effect: destructive — may delete or irreversibly overwrite
Cancels runs, and ends everything their commands started. A run that is still queued is canceled without a runner, and ends canceled. When someone else cancels a run, the proof run or proof watch following it exits with 130, and its result line says who canceled it.
<run>…— The runs' IDs, or their last five characters
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof cancel m3d8q
- Usage:
proof download [-o --output <dir>] [--json] <run> [pattern]… - Effect: modifies state
Download a run's artifacts
<run>— The run's ID, or its last five characters[pattern]…— Download only the artifacts matching these patterns
-o --output <dir>— Download into this folder instead of the current one--json— Print each downloaded file's path and size as JSON
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof download m3d8q
Download some artifacts into another folder
proof download m3d8q 'pkg/*.gem' --output dist
- Usage:
proof status [--json] - Effect: read-only
Shows the runners, the queue for each operating system, and your recent runs, with their IDs. For each queued run, shows what it is waiting behind, and for each run a runner has, what it is doing. For each runner, shows whether a person is active at its host.
--json— Print the status as JSON
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof status
- Usage:
proof login [--code-file <file>] <server> - Effect: modifies state
Signs in to a pool's server from this computer. Asks for the one-time code that proof server setup printed, such as Q8MR-2T4W. Proof never takes a secret as an argument. The code works once, for 15 minutes, and stops working after 5 wrong attempts. Proof accepts it in either case, with or without the hyphen, and reads O as 0 and I or L as 1.
<server>— The server's address, such as server.home.arpa
--code-file <file>— Read the one-time code from this file instead of asking for it
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof login server.home.arpa
- Usage:
proof logout - Effect: modifies state
Sign out of the pool's server from this computer, and delete the token Proof kept
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof logout
- Usage:
proof verify [--json] - Effect: modifies state
Send a known run to every runner, and report each result
--json— Print each runner's result as JSON
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof verify
- Usage:
proof skill <SUBCOMMAND>
Install Proof's Agent Skill, which teaches coding agents to use Proof
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
- Usage:
proof skill install [--to <dir>] - Effect: modifies state
Install the Agent Skill that matches this version of Proof
--to <dir>— Install it into this skills folder, instead of ~/.agents/skills
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof skill install
Install it where one agent tool reads skills
proof skill install --to ~/.claude/skills
- Usage:
proof server <SUBCOMMAND>
Set up, upgrade, or uninstall the server, on the computer it runs on
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
- Usage:
proof server setup [-n --dry-run] - Effect: modifies state
Sets up this computer as the pool's server. Run it as the account the server will run as: an account set aside for Proof, not the account of anyone who uses the computer, and never root; setup refuses to run as root. Checks the computer and lists every change it will make before it makes any. Then starts the server as a service of your account, and prints a one-time code for signing in. Safe to run again.
-n --dry-run— List the changes setup would make, and make none
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
See what setup would change
proof server setup --dry-run
proof server setup
- Usage:
proof server upgrade [-n --dry-run] - Effect: modifies state
Upgrade the server; its runners upgrade themselves to match
-n --dry-run— Say which version Proof would install, and install nothing
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof server upgrade
- Usage:
proof server uninstall [-f --force] - Effect: destructive — may delete or irreversibly overwrite
Stop the server and delete it, with every run's record, output, and artifacts
-f --force— Uninstall without asking first
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof server uninstall
- Usage:
proof runner <SUBCOMMAND>
Add, approve, list, and remove runners
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
- Usage:
proof runner setup [FLAGS] <server> - Effect: modifies state
Sets up this computer as a runner of the pool. Run it as the account the runner will run as: an
account set aside for Proof, not the account of anyone who uses the computer, and never root;
setup refuses to run as root. Prints a short code to approve with proof runner approve, so you
never type a long token at a text console. Where a step needs an administrator, such as adding
the account to the kvm group, setup prints the exact commands for you to run, and checks them
when you run setup again. On Windows, also sets up a runner in WSL. Safe to run again.
<server>— The server's address, such as server.home.arpa
--name <name>— Name the runner this, instead of the computer's network name--desktop— On macOS, run the runner in this account's signed-in session, so runs can open windows--no-wsl— On Windows, set up the Windows runner only, without one in WSL-n --dry-run— List the changes setup would make, and make none
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof runner setup server.home.arpa
- Usage:
proof runner approve [code] - Effect: modifies state
Lets a runner that asked to join into the pool, and adds its host to the pool file. The code works once, for 15 minutes, and stops working after 5 wrong attempts. Proof accepts it in either case, with or without the hyphen, and reads O as 0 and I or L as 1.
[code]— The code the runner printed, such as XK7P-42MQ; without it, lists the runners waiting for approval
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof runner approve XK7P-42MQ
- Usage:
proof runner start - Effect: modifies state
Start this computer's runner again after proof runner stop
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof runner start
- Usage:
proof runner stop [-f --force] - Effect: destructive — may delete or irreversibly overwrite
Stop this computer's runner, and cancel its runs, until proof runner start
-f --force— Stop without asking first
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof runner stop
- Usage:
proof runner list [--json] - Effect: read-only
List the runners, with their versions, labels, and resources
--json— Print the runners as JSON
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof runner list
- Usage:
proof runner revoke [-f --force] <name> - Effect: destructive — may delete or irreversibly overwrite
Remove a runner from the pool, and revoke its token
<name>— The runner's name, asproof runner listshows it
-f --force— Revoke without asking first
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
75 |
Proof couldn't reach the server. Run the same command again. |
proof runner revoke nuc-linux
- Usage:
proof runner uninstall [-f --force] - Effect: destructive — may delete or irreversibly overwrite
Stop this computer's runner, and delete its workspaces and caches
-f --force— Uninstall without asking first
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof runner uninstall
- Usage:
proof hook <SUBCOMMAND>
Install or remove a Git pre-push hook that runs a task
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
- Usage:
proof hook install [-f --force] <task> - Effect: modifies state
Adds a pre-push hook to this clone that runs a task on the commits you push. Git stops the push when the run fails. Proof doesn't replace a pre-push hook it didn't install, unless you pass --force.
<task>— The task the hook runs
-f --force— Replace an existing pre-push hook
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof hook install test
- Usage:
proof hook uninstall - Effect: modifies state
Remove the pre-push hook that Proof installed in this clone
| Code | Meaning |
|---|---|
0 |
The command did what it was asked. |
2 |
The command line has a mistake. |
proof hook uninstall