How nuf works
nuf lets one machine run many coding agents and their checks without becoming the bottleneck. Your machine keeps everything you look at or approve. Heavy work, such as a change’s full test suite, goes to machines rented for one job each.
The idea
Section titled “The idea”nuf turns each check into a job. A job runs on exact code, its result is recorded, and the agent that asked gets one answer it can act on.
Your machine, the local machine, stays in charge. It decides where each job runs, within your Policy and budget. It stages the exact code the job needs, collects and checks the result, and records it. Nothing of nuf’s is installed on a rented machine or left running there.
The rules of the design
Section titled “The rules of the design”- The local machine decides, shows and lands. Everything else is rented, one job at a time.
- No vendor is at the centre. Each compute or agent vendor is reached through a driver that can be replaced, and vendors are named only in Policy.
- Records, not claims. A job’s state, a check result and a verdict are records in an append-only ledger. A gate decides from the records, never from what a session types.
- Policy is yours. Accounts, budgets, limits and production branch names live in Policy. An agent changes Policy only when you ask it to, and adopting a changed Policy is your command.
- nuf stands alone. It knows no particular machine, person, repository, port or path. Everything specific to your setup is data: Policy, your machine’s settings, and each repository’s
nuf.yaml.
Two kinds of job
Section titled “Two kinds of job”- An execution job runs checks on pinned code, with no agent. Its result is a check result: pass, or fail with the failing step. Built, on the local machine. Running it on rented machines is stage 1, in progress.
- An agent job gives a brief to a builder agent on a rented machine. Its result is a proposal: commits, to be reviewed and checked. Planned for stage 4.
What happens to a check
Section titled “What happens to a check”- An agent asks with
nuf check, naming the checks, the code and itself. - nuf works out the job’s identity from the code, the checks and the shared job environment. If an identical job already has a result, nuf can reuse it.
- The job runs and every step writes a record to the ledger, in
.nuf/state/. nuf checkanswers with an exit code: 0 green, 1 red, 2 did not run, 3 held.
Because a job’s state is worked out from its records, any later command can pick up any job after a crash. There is no server and no background process. Every command starts, does its work and exits.
More: jobs and checks.
Who talks to whom
Section titled “Who talks to whom”nuf is built for a setup in which you talk to one agent session, the hub agent. The hub agent dispatches builder agents, asks for checks and reviews, and tells you what to try and what waits on you. nuf never talks to you directly. Its two planned guards are hooks on the hub agent’s session, and they ask you there before an agent changes Policy or merges to a production branch.
Where a finished change goes (designed)
Section titled “Where a finished change goes (designed)”Stage 2 gives every finished change two paths that never merge:
- The preview path puts the change into your preview at once, so you can try it. It proves nothing.
- The verification path runs review and the full test suite in parallel. Then a landing gate lets the change land, and a merge queue ships landed changes in a release train, one pull request into the base branch.
Only the merge queue ever pushes to the remote repository.
The design diagram
Section titled “The design diagram”The design diagram has six pages:
- the overview;
- the jobs controller’s components;
- its job states;
- its results;
- the setup;
- a code map.
It is the design as drawn, not a guide, and it is not indexed by search engines.