Skip to main content
piloop runs coding agents on a goal that a program can measure. Each agent tries one idea in its own checkout of your repo, and submits the commits that it would ship. piloop scores each one with your evaluate command. Every score stays in the campaign’s pool, and the best candidate in it is the result. piloop watch on the enwik8 example campaign The enwik8 example after 10 runs: Claude Code agents took the first 10 MB of Wikipedia from 3,688,770 bytes (zlib) to 2,361,893 bytes (−36%) in 1.6 hours.

Start

Open your coding agent in your repo and tell it what to improve:
The agent sets up the campaign, starts it, and answers for you while it runs. See the Quickstart.

How a campaign works

  1. The daemon, piloop serve, starts a run on each free implementer slot: 2 at a time by default. An implementer is a coding agent, Claude Code or Codex, in its own checkout of the best candidate.
  2. The implementer claims an idea from the campaign’s board, or proposes its own. It commits and submits.
  3. The daemon runs your evaluate command on each submission, and scores it into the pool. A score that beats the best is evaluated again until it is confirmed. Then it is the new best, if its guardrails hold.
  4. Your coding agent, the orchestrator, answers what the implementers escalate, and records each decision in your inbox.

Why piloop

  • No agent scores its own work. piloop runs the evaluate command in a clean checkout of each commit.
  • A gain must be real. A candidate that beats the best is evaluated noise_runs times before it can be the best. A sealed split that no agent can read can check it too.
  • Guardrails hold. A second metric, such as latency, can get worse only by the margin that you set.
  • Your state stays local. piloop keeps a SQLite database in ~/.piloop and git refs in your repo. It has no hosted service and no account. The agents send your code and prompts to their model providers, as they do when you use them yourself.

Requirements

  • Linux (x86-64 or ARM, glibc 2.28 or later) or macOS on Apple silicon. On an Intel Mac, the install builds covalence from source, which needs a recent Rust.
  • git 2.40 or later, and uv. The installer installs uv.
  • Claude Code or Codex, logged in. pi is opt-in. The agent that you talk to can also be Gemini CLI or Cursor.