Skip to main content
These are the commands that your agent runs for you in the Quickstart. Install piloop first, and log in to Claude Code (claude auth login) or Codex (codex login).

The enwik8 example

The enwik8 example is a small Hutter Prize: compress the first 10 MB of Wikipedia into as few bytes as possible. The agents edit compressor.py. The baseline is zlib.
1

Create the campaign

piloop init copies the example, downloads the data, makes a git repo, starts the daemon and measures the baseline:
The example uses Claude Code. To add Codex, add "codex" to use in [plugins.harness] of piloop.toml, give it a [plugins.harness.codex] table with its model, and run piloop init again.
2

Add an idea

The daemon starts a run on each free implementer slot. Each implementer claims an open idea, or proposes its own.
3

Watch the campaign

Press enter to open the campaign, and q to quit. The daemon goes on.

What happens

The implementer edits compressor.py, commits and submits. The daemon runs evaluate.py on the commit. The script checks that the round trip gives back the exact input, then reports two metrics:
The daemon scores each submission into the campaign’s pool. A candidate with fewer bytes than the best, that holds the guardrail, becomes the best, and the next runs start from it. Here the lzma idea took 2 minutes and 356k tokens:
The implementer heard where its commit stands:
The example stops after 20 scored runs ([plugins.stop_rule] max_runs). To let an agent answer the escalations, open your coding agent in ~/piloop-enwik8 and ask it to “orchestrate the piloop campaign”. Two more examples: titanic-tracks has two objectives (Tracks), and inference makes a small model serve faster (Optimize inference).

Your own repo

1

Create the files

piloop init writes piloop.toml, brief.md and a stub evaluate.py, and commits them. It keeps every file that exists already, and stops while evaluate.py is the stub. With an evaluate.py of your own, it does not stop: it registers the campaign with the template’s piloop.toml, whose baseline usually fails and pauses the campaign. Then fix piloop.toml and run piloop init again.
2

Write the evaluate command

Make evaluate.py measure your code, or set evaluate in piloop.toml to a command that you have. See the evaluate command.
3

Edit piloop.toml

Set name, evaluate, the [[metrics]] tables, use in [plugins.harness], and the model of each harness. Set the budget in [plugins.stop_rule]: max_hours, and a USD cap (Stop conditions and cost). The template lists every key, and the configuration reference describes them.
4

Edit brief.md

Tell the implementers what to improve, which files they may edit, which they must not touch, and what needs a human decision. Keep it under 400 words ([agents] brief_words). When the campaign changes, rewrite the brief: never append a rule.
5

Register the campaign

This commits your edits, starts the daemon and measures HEAD as the baseline. Runs start at once, and the implementers propose their own ideas. To give them yours:
The campaign’s name is name in piloop.toml, by default the name of the directory.

Change the configuration

Edit piloop.toml and run piloop init again: the daemon uses the copy that the last piloop init stored. A change to the evaluate command, or to the name or direction of a metric, makes a new evaluator.