piloop.toml is at the root of the campaign repo. piloop init reads it again each time you run it, and stores a
copy. The daemon uses that copy, so an edit takes effect only when you run piloop init.
The home’s config.toml can give every campaign of the home its [plugins] tables. A campaign’s piloop.toml
overrides them key by key:
PILOOP_CAMPAIGN_<KEY>, piloop.toml, the home’s
config.toml, then piloop’s default. A table merges key by key, and any other value, such as a list, replaces. A table
of config.toml that a campaign does not use is no error.
To override a key when piloop init reads the file, set PILOOP_CAMPAIGN_<KEY>. Join nested keys with __, for
example PILOOP_CAMPAIGN_PLUGINS__RUNTIME__USE=subprocess or PILOOP_CAMPAIGN_PLUGINS__ROLE__IMPLEMENTER__MAX_CONCURRENT=2. The stored copy keeps the
override until the next piloop init. The variable has no effect on piloop serve.
A type in the tables links to the section that describes it. A table that you leave out has the defaults of its
section.
Top-level keys
Tolerance
How far a metric may go: never pastfloor, nor worse by more than margin or fraction.
A guardrail has one, and its regression is from the baseline’s value. Each stop of a rung of the ladder has one
too, and its regression is from the best’s value at that rung.
Metric
One metric that the evaluate command reports, by its name inmetrics of its result.
Its floor, margin and fraction (Tolerance) apply to a guardrail, which needs a margin or a
fraction, and to each primary of a campaign with several tracks: for a candidate of another track, that
primary is a guardrail.
Ratio
A metric that piloop computes from two that the evaluate command reports:numerator / denominator.
A candidate’s value is the ratio of its means.
TrackConfig
[tracks.<name>]: one track of the campaign. A track is an objective with its own primary metric and brief.
A track has the name of its primary’s track, or else the name of the primary. All tracks share one pool, and
each has its own best. A candidate may be best of its track only when it holds the primary of every other track
within that primary’s margin and floor. A table is needed only for an addendum.
Experimental: campaigns with more than one track.
EvaluatorConfig
[evaluator]: how the campaign’s versions are scored, beside evaluate, the command that scores one.
Rung
[[ladder]]: one rung of the evaluation ladder, which a run’s evaluation climbs before the full panel.
A rung without evaluate is reported by the evaluate command itself, as a line with "rung": "<name>" before
its full result. A rung with evaluate runs that command first, which reports one line. After each rung, the
climb of a run’s own version stops when stop says so, and piloop ends the evaluate command.
CampaignAgents
[agents]: how long the campaign’s agents get to wrap up, and its brief’s budget, over the home’s [agents].
[plugins]
[plugins] of piloop.toml holds the plugins of the campaign. A capability that has one instance takes [plugins.<capability>]: provider, the name of its entry point (the default without it), and the keys of that provider. One that has several takes [plugins.<capability>.<name>] for each: its provider is the one called <name> when the table has none, and each provider that needs no keys is an instance of its own name with its defaults. [plugins.<capability>] itself holds the settings of such a capability: use names the instances that the campaign uses, and is unset for the providers that are on by default (DEFAULT). No instance is called use.
[plugins.best_rule]
The best rule. Without a table: baseline.
With provider = "baseline", the table has no other key.
With provider = "command":
[plugins.escalation]
The escalation policy. Without a table: structured.
With provider = "structured":
[plugins.fact_source] use
The fact source instances that the campaign uses, by name, in order. Unset: campaign, optimization.
[plugins.fact_source.<name>]
Each fact source by name.
With provider = "campaign", the table has no other key.
With provider = "command":
With
provider = "leases", the table has no other key.
With provider = "models":
Price
What a million tokens of each kind cost on one model, in USD.
With
provider = "optimization", the table has no other key.
With provider = "spend":
[plugins.harness_choice]
The harness choice. Without a table: round_robin.
With provider = "round_robin", the table has no other key.
[plugins.harness] use
The harness instances that the campaign uses, by name, in order. Unset: claude, codex.
[plugins.harness.<name>]
Each harness by name.
Each table takes the keys of Harness, and those of its provider.
[plugins.lineage] use
The lineage instance that the campaign uses, by name. Unset: optimization.
[plugins.lineage.<name>]
Each lineage by name.
With provider = "optimization", the table has no other key.
[plugins.liveness]
The liveness policy. Without a table: probes.
With provider = "probes":
[plugins.mcp_server.<name>]
Each mcp server by name.
With provider = "http":
With
provider = "stdio":
[plugins.notifier] use
The notifier instances that the campaign uses, by name, in order. Unset: none.
[plugins.notifier.<name>]
Each notifier by name.
Each table takes the keys of Notifier, and those of its provider.
[plugins.price_list]
The price list. Without a table: genai_prices.
With provider = "genai_prices", the table has no other key.
[plugins.role.<name>]
Each role by name.
Each table takes the keys of RoleConfig, and those of its provider.
[plugins.runtime] use
The runtime instance that the campaign uses, by name. Unset: subprocess.
[plugins.section] use
The section instances that the campaign uses, by name, in order. Unset: headline, goal, tracks, trajectory, runs, queue, agents, evaluations, funnel, candidates, same_as_parent, inbox, events.
[plugins.section.<name>]
Each section by name.
With provider = "agents", the table has no other key.
With provider = "candidates", the table has no other key.
With provider = "comments", the table has no other key.
With provider = "concepts", the table has no other key.
With provider = "context":
With
provider = "cost":
With
provider = "database", the table has no other key.
With provider = "evaluations", the table has no other key.
With provider = "events", the table has no other key.
With provider = "funnel", the table has no other key.
With provider = "goal", the table has no other key.
With provider = "headline", the table has no other key.
With provider = "history":
With
provider = "idea_comments":
With
provider = "inbox", the table has no other key.
With provider = "links", the table has no other key.
With provider = "long_jobs", the table has no other key.
With provider = "measure", the table has no other key.
With provider = "orchestration", the table has no other key.
With provider = "pack":
With
provider = "past_campaigns", the table has no other key.
With provider = "priorities", the table has no other key.
With provider = "provenance", the table has no other key.
With provider = "queries", the table has no other key.
With provider = "queue":
With
provider = "runs", the table has no other key.
With provider = "same_as_parent", the table has no other key.
With provider = "scoring", the table has no other key.
With provider = "search", the table has no other key.
With provider = "tools", the table has no other key.
With provider = "tracks", the table has no other key.
With provider = "trajectory", the table has no other key.
With provider = "workspace", the table has no other key.
[plugins.stop_rule]
The stop rule. Without a table: limits.
With provider = "limits":
[plugins.vcs]
The vcs provider. Without a table: git.
With provider = "git":
Harness
[plugins.harness.<name>]: how to launch one coding agent, with which model, and how many at once.
piloop substitutes these placeholders in the argument lists: {model}, {effort} (the role’s effort),
{session_id}, {cwd} (the agent’s working directory), {log_dir} (the directory of the agent’s brief and
logs) and {prompt} (the first prompt, which names the file that holds the brief). An element that is exactly
{mcp} expands to the role’s MCP servers, in the harness’s own flags. The built-in harnesses run without
permission prompts: agents run in worktrees that the daemon owns and throws away, and a sandbox that cannot reach
the repo’s .git cannot commit.
When headless contains {session_id}, piloop creates the session id. Otherwise the runtime reads it with
session_id_pattern. When the agent ends, the harness finds its session file by this id and reads the tokens
the agent spent. Without either, no tokens are recorded.
SecretRef
{ secret = "NAME" }: the value of the secret NAME (piloop secret set), in place of a literal.
Notifier
A notifier: the keys of[plugins.notifier.<name>] besides provider, and how it sends.
RoleConfig
The keys that every[plugins.role.<name>] table accepts. Each role’s table below adds keys and sets defaults.
ImplementerRole
[plugins.role.implementer], and every [plugins.role.<name>] table with runs = true: a role that does runs.
The run queue starts its agents. Each agent claims ideas, in a new checkout of the best (or of another
candidate, --base), and its versions are scored into the pool. A new role of this kind takes the implementer’s defaults, its prompt included.
Global settings: config.toml
$PILOOP_HOME/config.toml holds the settings that every campaign of one PILOOP_HOME shares. To override a key, set PILOOP_<TABLE>__<KEY>, for example PILOOP_STORAGE__MIN_FREE_GB.
[storage]
[storage]: how archiving uses the disk of this PILOOP_HOME. Where the blobs go is [plugins.cas].
[tracing]
[tracing]: what this home measures for the spans that it exports (OTEL_EXPORTER_OTLP_ENDPOINT).
[evaluation]
[evaluation]: what the daemon allows the evaluate command of its campaigns.
[daemon]
[daemon]: the timings of the daemon’s loop and of its launches on this home.
[agents]
[agents]: how the daemon steers and ends the agents of this home.
A campaign’s [agents] in its piloop.toml can set wrap_up_grace and brief_words for its own agents.
[watch]
[watch]: how piloop watch reads the API, and how much it shows.
[sql]
[sql]: the limits of piloop sql. They bind every caller: the agents, the orchestrator and you.
[plugins]
[plugins] of config.toml holds the plugins of the home, which the daemon checks before it starts. A capability that has one instance takes [plugins.<capability>]: provider, the name of its entry point (the default without it), and the keys of that provider. One that has several takes [plugins.<capability>.<name>] for each: its provider is the one called <name> when the table has none, and each provider that needs no keys is an instance of its own name with its defaults. [plugins.<capability>] itself holds the settings of such a capability: use names the instances that the campaign uses, and is unset for the providers that are on by default (DEFAULT). No instance is called use.
[plugins.archive]
The archive provider. Without a table: local.
With provider = "local", the table has no other key.
[plugins.cas]
The CAS provider. Without a table: disk.
With provider = "cached":
With
provider = "disk":
With
provider = "gcs":
With
provider = "http":
With
provider = "s3":
[plugins.executor]
The executor. Without a table: workers.
With provider = "workers":
Pool
The capacity of each worker in a pool. Kubernetes: a node pool’s allocatable, and its eviction thresholds.Provisioner
[plugins.executor.pools.<name>.provisioner]: start the pool’s workers on demand, between min and max.
These keys are the scaling policy, the same for every provider (the Nomad autoscaler’s split of policy and
target). compute is the provider that starts and stops the workers.
[plugins.launch_policy]
The launch policy. Without a table: fewest_live.
With provider = "fewest_live":
[plugins.leader]
The leader provider. Without a table: local.
With provider = "bucket":
With
provider = "local", the table has no other key.
[plugins.network]
The network. Without a table: https.
With provider = "https":
Certificate
The server’s certificate chain and its private key, as PEM files.
With
provider = "proxy":
Rule
A caller whose claims have these values getsaccess.
[plugins.runtime.<name>]
Each runtime by name.
With provider = "docker":
With
provider = "subprocess", the table has no other key.
[plugins.secrets]
The secrets provider. Without a table: local.
With provider = "local", the table has no other key.