1
Install piloop
piloop CLI and the piloop skills for each coding agent on your PATH. With uv
already installed, you can install only the CLI and the skills:2
Open your agent in your repo
Start Claude Code, Codex, pi, Gemini CLI or Cursor in the repo to improve. This is the only agent that you talk
to. The implementers run on Claude Code and Codex, so install at least one of them.
3
Tell it what to improve
Say “piloop”, so that the agent uses the piloop skills:To try piloop on an example first, ask for “the enwik8 example campaign from piloop”.
The setup
The agent follows thepiloop-setup skill:
- It checks git, uv and the logins of the coding agent CLIs. It asks you to log in only where a CLI needs a browser.
- It reads your repo and interviews you. It asks only what the repo does not answer.
- It writes
brief.mdfor the implementers,piloop.tomlwith the metrics and limits, and the evaluate command, and shows you the files. - It runs
piloop init ., which starts the daemon and measures the baseline. A baseline that surprises you usually means that the evaluate command is wrong. - It becomes the orchestrator, in this session or in a background subagent.
The daemon enforces only the limits in
piloop.toml. A limit that is only in brief.md is a request to the agents.
While the campaign runs
Your agent waits on the inbox withpiloop inbox wait, so it uses no tokens while nothing happens. It answers
escalations and records each decision that it takes for you in your inbox, with how to revert it. It leaves to you
the decisions that cannot be undone.
To check in, ask any agent with the piloop skills, also in a new session: “How is the campaign going?” To look
yourself, run piloop watch (Watch and review a campaign).
Stop
The campaign ends by itself at the limits of[plugins.stop_rule] in piloop.toml
(Stop conditions and cost). To end it sooner, ask your agent, or run
piloop campaign stop <campaign>.
piloop stop stops the daemon, not the campaigns: the next piloop serve --detach continues them.