piloop.toml. By default, two implementers run at a time, for at most an hour each, in turn
on Claude Code and Codex. This campaign runs ten:
piloop init after each change. The configuration reference lists every
key of a role.
Each agent is an agent session, with an id, a log and the tokens that it used. It signs its writes
<role>#<id>, such as implementer#4.
The built-in roles
The implementer does runs: each run claims ideas, as many as its implementer wants. With
persistent = true, an
implementer works until its timeout, the period of the flush: it claims, asks for (piloop escalate) or proposes
ideas as it wants, and the next run starts from the best. A plugin can add a role that does none, whose commits are
never scored: see Roles. The coding agent that you talk to answers escalations and messages:
see the orchestrator.
Define a role
A table with a new name andruns = true defines a role that does runs, with the implementer’s defaults. This one
runs short sessions on Codex:
Sections
A section is one part of whatpiloop status or a brief shows, such as ## Goal or ## Queue.
[plugins.section] use lists those of piloop status, and a role’s sections those of its briefs, in order. Without a
list, each shows every section that declares it. A section with parameters has a table:
brief.md, then the role’s addendum, then its sections. A guide, such as
database, is a section that says how to do one thing. piloop schema <guide> prints any guide.
Harnesses
A harness is the coding agent CLI that an agent runs in.[plugins.harness] use lists the ones that fresh runs use
in turn. A [plugins.harness.<name>] table sets a harness’s model, changes a built-in harness, or adds one:
provider is that provider over its defaults. Without provider, it is its argv and
nothing else: see Harnesses. piloop refuses a harness table that no rotation names.
pi is opt-in: add
"pi" to use, with a [plugins.harness.pi] table and its model. On a Claude subscription, pi
draws from extra usage, not from the plan’s limits.
An agent ignores your own setup of its harness, such as your CLAUDE.md, skills, plugins and hooks, so it works the
same on every machine. The repo’s own files and the machine’s login still load. user_config = "load" in a harness’s
table loads your setup.
Runtimes
A runtime starts, steers and stops the agents’ processes.[plugins.runtime] use sets it for the campaign, and a
role’s runtime for one role. To run each agent in a container, see Run agents in containers.
Watch and steer an agent
A run’s brief, log and transcript are in
~/.piloop/runs/<run>/, and those of an agent without a run in
~/.piloop/agent_sessions/<id>/. When an agent ends, piloop ends every process that it started.