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 editcompressor.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:"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
3
Watch the campaign
enter to open the campaign, and q to quit. The daemon goes on.What happens
The implementer editscompressor.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:
[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
HEAD as the baseline. Runs start at once, and the
implementers propose their own ideas. To give them yours:name in piloop.toml, by default the name of the directory.Change the configuration
Editpiloop.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.