Skip to content

nuf: agent burst

nuf is a command-line tool for a machine where many coding agents work at once. It runs a change's checks as jobs, records each result in a ledger, and answers with an exit code an agent can act on.

How a check runs

nuf check waits until the jobs finish, then answers with an exit code. Each step is written to a ledger.

  1. 1

    Ask

    nuf check names the checks, such as types or unit, the code to check and who asks.

  2. 2

    Run

    Each check runs as a job on one exact commit, within the budget set in Policy, nuf's settings file.

  3. 3

    Record

    The job's states and its result go into an append-only ledger.

  4. 4

    Answer

    The command exits 0 green, 1 red, 2 did not run or 3 held.

One folder beside your repositories

Everything nuf keeps is in .nuf/, inside the folder that holds your repositories. It adds nothing to your search path and no scheduled job.

projects/ # the project folder
.nuf/ # launcher, settings, ledger
shop/ # a repository nuf serves
ui-kit/ # another one
worktrees/ # made by nuf
Terminal window
.nuf/nuf check types unit --set feat-fold --by builder-7

Exit codes

Agents call nuf with --json and read the exit code first.

0yesgreen, taken, recorded
1nored, or a definite refusal
2cannot judgedid not run, timed out, unreadable
3heldstopped on purpose: a hold is open, or Policy changed and is not adopted yet
64usagea malformed line or an unknown name; the act writes nothing
70bugan internal error

Any other code reads as 2. nuf env run ends with its own command's exit code.

Where it stands

What runs on nuf's main branch today, and what the design adds in the next stages.

Built
  • Jobs on the local machine, with the ledger, Policy and budgets
  • The nuf folder: nuf init, nuf where, the launcher
  • The job environment and nuf env run
In progress · stage 1
  • Checks run on machines rented for one job each
  • GitHub-hosted runners, for public code, as the first rented machines

Documentation