Skip to main content
Each command prints the same with --help. With PILOOP_SERVER set, a command that calls the API asks that server (On a server).

piloop agent

Act on one agent.

piloop agent messages

Take the messages that wait for this agent’s turn, and print them. A hook of the harness runs it during a turn, so a message reaches the turn in progress. It prints nothing when no message waits. Parameters:
  • HARNESS, --harness: The harness whose hook reads them: one message a line without it.

piloop agent cancel

Cancel an agent of any role. The daemon acts at once. A requested agent never starts. A running one is ended with every process that it started, at once or, with --wrap-up, after it was told to save its work and stop. For an implementer, this cancels its run (piloop run cancel). Arguments:
  • AGENT_SESSION_ID: The id of the agent. [required]
Parameters:
  • --wrap-up: Tell the agent to save its work and stop first, and end it 10 minutes later.

piloop attach

Print the last lines that an agent wrote, running or ended: [agents] attach_lines of them. An agent is a background process, with no terminal to type into: piloop prompt sends it a message. A running agent’s lines come from the latest snapshot of its session, on any machine: a few seconds old, 30 at most. Arguments:
  • AGENT_SESSION_ID: The id of the agent. [required]

piloop campaign

Act on a campaign as a whole.

piloop campaign parent

Put a campaign under another, or make it a root with —clear. A campaign has at most one parent, in the same piloop home, and never itself or one of its descendants. piloop campaign tree shows the tree. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • PARENT_REF: The campaign to put it under.
Parameters:
  • --clear: Make the campaign a root.

piloop campaign tree

Print every campaign under its parent, with its type and its status.

piloop campaign stop

Stop a campaign. The daemon stops it at once, as when a [stop] condition holds. This works also while the campaign is paused or held by its stop rule. It drops the queued runs and the requested agents. Each running implementer is told to save its work and stop, and is ended 10 minutes later. What the implementers saved is scored. With --kill, the implementers are ended at once, and what they committed is still scored. On a stopped campaign, --kill ends the implementers that are still winding down. The campaign’s piloop.toml is not changed. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --kill: End the running implementers at once, without the wrap-up prompt.
  • --reason STR: Why, for stopped_reason. [default: ""]

piloop campaign fork

Make a new campaign that starts from a version of another one, by default its best, in a clone of its checkout. The source may be in any state, retired too, and goes on as it is. The fork takes its stored config and its repo, so it sees the ideas of every campaign on the repo. It starts with no ideas of its own and an empty workspace. The daemon measures its starting version as its baseline. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --at STR: The version to start from, as the source’s vcs names one. Default: its best.
  • --name STR: The new campaign’s name. Default: <source>-<n>.

piloop campaign sync

Read a campaign’s piloop.toml again. A campaign that the server cloned first takes its repository’s new versions. Its checkout moves forward to them; its candidates and their scores stay. New code comes in with piloop candidate import, or a fork with piloop campaign fork --at. A local checkout is read where it is: piloop init <path> does the same. For a private repository: --secret, or a token piped in with --token-stdin. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --secret STR: The name of the server’s secret that the host of the campaign’s repository asks for.
  • --token-stdin: Read a token that the repository’s host accepts from stdin, for this sync alone: nothing keeps it.

piloop campaign reopen

Set a stopped campaign active again, once it is closed and its runs are over. The runs, hours and tokens that its stop rule limits count again from now, so it gets each of them again. A rule that would stop it at once, a target that it reached say, refuses: change the rule in piloop.toml and run piloop init instead. A retired campaign does not reopen: fork it. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --reason STR: Why, with ids. [required]

piloop campaign retire

Retire a stopped campaign for good, once it is closed and its runs are over. It changes no more, piloop status leaves it out unless --status retired asks for it, and a new campaign may take its name. Its rows, events and archived files stay, and its id still names it. The reason goes into a note on the campaign. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --reason STR: Why, with ids. [required]

piloop candidate

Show a candidate, import a starting point, measure a candidate again, note one, or exclude one from the best.

piloop candidate show

Print a candidate: where it stands, its metrics beside its parent’s, and each rung of the ladder that it measured. The metrics are the means under the campaign’s current evaluator. A rung’s time is its own, without the rungs before it. Arguments:
  • CANDIDATE_ID: The candidate. [required]

piloop candidate import

Register the files of a version as a reference candidate: a starting point for a run. The daemon scores it into the pool with the current evaluator, as any candidate: it may become the best. To import a candidate of another campaign, bring its revision into this campaign’s repo first. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • VERSION: A version in the campaign’s repo, as its vcs names one: a revision, a branch, a tag. [required]
Parameters:
  • --summary STR: A summary of the candidate. Default: the version’s own summary.

piloop candidate remeasure

Ask the daemon to evaluate a candidate --repeats more times, with the current evaluator. Use it when a fault of the host spoiled a measurement (a full disk, a lost GPU), or when load made it noisy. The candidate’s mean includes the new evaluations, so the pool and its best follow. It measures soon, after the baseline, also when the campaign is stopped: not while it is paused with --evals, or held by its stop rule. A commit that the daemon never measured, skipped or recovered, gets its first evaluations. If infrastructure failures paused this candidate’s task, the request also resumes evaluations of that task. Arguments:
  • CANDIDATE_ID: The candidate to measure again. [required]
Parameters:
  • --repeats INT: How many more evaluations. [default: 3]

piloop candidate note

Note why a candidate is worth starting from, with follow-up ideas about it. The note is a comment on the candidate, signed as PILOOP_ACTOR. Each --follow-up is an open idea about the candidate, whose run can start from it (piloop idea claim <id> --base <candidate>). An implementer files no follow-ups. Arguments:
  • CANDIDATE_ID: The candidate. [required]
  • REASON: Why the tree is worth starting from. [required]
Parameters:
  • --follow-up STR..., --empty-follow-up: An open idea about the candidate. Repeatable. [default: ()]
  • --track STR: The track of the follow-ups. Default: the track of the candidate’s run, else the first track.

piloop candidate exclude

Take a candidate out of the race for the best, such as one that gamed the evaluation. Its scores stay in the pool, and a run may still start from it. The candidate.excluded_reason event records the reason, signed as PILOOP_ACTOR. To take it back, set excluded_reason and excluded_by to NULL with piloop sql. Arguments:
  • CANDIDATE_ID: The candidate. [required]
Parameters:
  • --reason STR: Why it may not be best, with ids: what the number does not say. [required]

piloop cas

This home’s CAS: print a blob, or serve the CAS to workers on other machines.

piloop cas get

Print a file of the CAS of [plugins.cas] to stdout: a blob as stored, or a chunked file whole. An agent’s session file (agent_sessions.session_file) is a chunked file. Arguments:
  • CID: The address of the file. [required]

piloop cas serve

Serve the CAS of [plugins.cas] until Ctrl-C or SIGTERM. Each caller sends a worker’s token. Where the home’s daemon does not hold its term (a standby under [plugins.leader] provider = "bucket"), it forwards each request to the CAS server of the daemon that does, at the same port, and answers 503 while none does. Parameters:
  • --listen STR: Serve on HOST:PORT. An address that is not loopback needs TLS ([plugins.network]). [required]

piloop doctor

Check the install without writing anything, and say how to fix each failure. It notes a newer piloop at the source of the CLI, and checks that the daemon runs the installed code, the database is at head, each piloop.toml loads, the MCP servers can start, and the harnesses are on PATH and have the skills of this CLI. The commands it names use PILOOP_CLI.

piloop escalate

Ask for a decision: an escalation on a target, with its form as JSON on stdin. The campaign’s [plugins.escalation] provider checks the form and says what to fix. --guide prints its fields, limits and an example. Arguments:
  • TARGET: What it is about, such as idea#12. [required]
Parameters:
  • --priority INT: From 0 (urgent) to 4 (someday). [default: 2]
  • --guide, --no-guide: Print how to fill the form of the target’s campaign.

piloop eval

List or cancel the evaluations that the daemon runs or that wait for a slot.

piloop eval queue

List the running evaluations, then the waiting ones in the order in which they get a slot. The last line counts them. A free slot of the executor goes to the campaign with the fewest running evaluations, and in that campaign to its baseline first, then to the oldest request. A requested remeasure shows as waiting at once. Each row names its evaluator. One that the campaign replaced since is retired: what runs finishes under it.

piloop eval cancel

Cancel the evaluation of a candidate: a waiting one never starts, and the daemon stops a running one. It also cancels a requested remeasure. A cancel records no measurement, and it stands: the daemon does not evaluate the candidate again under that evaluator, not to confirm it, not on the sealed split, and not after a restart. It is evaluated again only when someone asks (piloop candidate remeasure). The candidate keeps its origin and its scores. A baseline that never measured pauses its campaign’s measurements: ask for it, then resume. Arguments:
  • CANDIDATE_ID: The candidate whose evaluation to cancel. [required]

piloop events

Print the events after a cursor, oldest first, then the cursor to read after next. The cursor moves over every event that the read examined, also those that —campaign and —kind leave out. Read a snapshot first (piloop status --json or piloop inbox --json), then the events after its cursor: nothing is missed in between. Save the cursor after you have handled the events, and read from it again after a disconnect. An event can come twice then: skip an id that you have handled. Parameters:
  • --after INT: The cursor to read after: the next of the last read, or the cursor of a snapshot. [default: 0]
  • --campaign STR: Only the events about rows of this campaign.
  • --kind STR..., --empty-kind: Only events of this kind. Repeatable. [default: ()]
  • --limit INT: The most events to print. [default: 100]
  • --follow: Wait for an event when there is none yet, up to —timeout.
  • --timeout FLOAT: With —follow: seconds to wait. [default: 1800]
  • --json: Print one JSON document on stdout, for a program. Messages go to stderr.

piloop history

Print the research pack: the campaign’s metrics, analysis, ideas, new bests and notes. It shows the metrics, the analysis artifacts, the latest ideas with their outcomes, the new bests, the latest notes and the digests, as many as [plugins.section.pack] says. Without a campaign, it uses the campaign that the current directory is in, else the only active campaign, else every campaign. Arguments:
  • REF: The campaign name, its id, or a path inside its repo.

piloop idea

Add an idea to the board, claim or propose one for your run, and change an idea: its status, links or track.

piloop idea add

Add an idea to the board. It is open. The files key of a role says whether its agents may add ideas. The orchestrator and humans may add ideas. The idea is signed as PILOOP_ACTOR. The idea and its links are written together, so the daemon never sees the idea without them. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • TITLE: A short title for the idea. [required]
Parameters:
  • --hypothesis STR: Why this should help, and by how much. Default: the title.
  • --plan STR: The steps for the implementer.
  • --from STR: What prompted the idea, with ids or a URL. Example: “note comment#881: …”.
  • --priority INT: From 0 (urgent) to 4 (someday). [default: 2]
  • --track STR: The track it works on. Required when piloop.toml has more than one track.
  • --after INT..., --empty-after: An idea id to wait for. Repeatable. A worker can claim the idea once all are done or dropped. [default: ()]

piloop idea claim

Claim an open idea for your run: you work on it until your run ends, and no other run takes it. Only a worker claims, once per run. An idea that an after link holds waits until its prerequisites are done. It prints the idea’s hypothesis and its plan, which the board does not show, and, with several tracks, what the idea’s track asks of your run. With --base, your run starts from that candidate: your checkout moves to it. Without, a run that the campaign’s best (or trunk) passed since it was queued moves to the new one. Arguments:
  • IDEA_ID: The idea. [required]
Parameters:
  • --base INT: The candidate that your run starts from, instead of the best: any candidate of the campaign. Your checkout moves to it, and your submissions build on it.

piloop idea propose

Add an idea of your own to the board and claim it for your run, in one step. Only a worker proposes, instead of a claim. The idea is signed as PILOOP_ACTOR. With --base, your run starts from that candidate: your checkout moves to it. Arguments:
  • TITLE: A short title for the idea. [required]
Parameters:
  • --hypothesis STR: Why this should help, and by how much. Default: the title.
  • --plan STR: The steps you take.
  • --from STR: What prompted the idea, with ids or a URL.
  • --track STR: The track it works on. Required when piloop.toml has more than one track.
  • --base INT: The candidate that your run starts from, instead of the best: any candidate of the campaign. Your checkout moves to it, and your submissions build on it.

piloop idea status

Set an idea’s status, with a note on the idea that says why. open puts it back on the board, and dropped takes it off, which frees the ideas after it. Only a run makes an idea done. A claimed idea has an open run: it can only be dropped, and its run finishes. Arguments:
  • IDEA_ID: The idea. [required]
  • STATUS: open or dropped. [required] [choices: open, claimed, done, dropped]
Parameters:
  • --reason STR: Why, with ids. It goes into the event or a note on the idea. [required]
Link an idea that exists to another idea of its campaign: it waits until the target is done. The link is written in one transaction, so no worker claims the idea in between. A claimed idea takes no link: its run started already. A link that closes a cycle is refused. Arguments:
  • IDEA_ID: The idea. [required]
  • KIND: after: wait until the target is done or dropped. [required] [choices: after]
  • TARGET_ID: The idea it links to. [required]
Parameters:
  • --reason STR: Why, with ids. It goes into the event or a note on the idea. [required]
Delete an idea’s link, for example an after link to a prerequisite that is still open, to free the idea. Arguments:
  • IDEA_ID: The idea. [required]
  • KIND: after. [required] [choices: after]
  • TARGET_ID: The idea it links to. [required]
Parameters:
  • --reason STR: Why, with ids. It goes into the event or a note on the idea. [required]

piloop idea track

Move an idea to another track of its campaign, with a note on the idea that says why. Its runs are scored on that track’s primary. A scheduled idea keeps its track: its run is scored on it. Arguments:
  • IDEA_ID: The idea. [required]
  • TRACK: A track of piloop.toml. [required]
Parameters:
  • --reason STR: Why, with ids. It goes into the event or a note on the idea. [required]

piloop inbox

Read and acknowledge what the agents address to you: decisions, escalations and notes. Commands:
  • ack: Acknowledge items to say that you have seen them.
  • choose: Answer an escalation with one of its choices: a decision reply signed as PILOOP_ACTOR, and an ack.
  • reply: Answer an item with a decision on the root of its thread, in_reply_to the item, signed as PILOOP_ACTOR.
  • show: Show the thread of a comment: its root in full, the replies with what each answers, then the citations.
  • wait: Wait until something needs the orchestrator, print it one line per item, then print the command to wait again.
Arguments:
  • REF: The campaign name, its id, or a path inside its repo.
Parameters:
  • --kind COMMENTKIND..., --empty-kind: Only items of this kind. Repeatable. [default: ()]
  • --all, --no-all: Show acknowledged items too.
  • --json: Print one JSON document on stdout, for a program. Messages go to stderr.

piloop inbox show

Show the thread of a comment: its root in full, the replies with what each answers, then the citations. Arguments:
  • COMMENT: The id of the item. [required]

piloop inbox wait

Wait until something needs the orchestrator, print it one line per item, then print the command to wait again. These events end the wait: a new or edited unacknowledged inbox item that someone else wrote, a campaign that the daemon stopped, and the daemon’s score of a candidate. Your own decisions, as PILOOP_ACTOR, do not end it. At —timeout it returns with nothing. Each return also names the escalations that still wait for you, unacknowledged and unanswered, with their age. Set the timeout of your shell tool higher than —timeout. Without a campaign, it waits for every campaign. Arguments:
  • REF: The campaign name, its id, or a path inside its repo.
Parameters:
  • --timeout FLOAT: Seconds to wait before it returns with nothing new. [default: 1800]
  • --after INT: The event id to start after: the cursor that the last wait printed. Default: now.

piloop inbox ack

Acknowledge items to say that you have seen them. Nothing waits for an acknowledgement. To change a decision, write a decision comment on its target. Arguments:
  • IDS: The ids of the items.
Parameters:
  • --up-to INT: Acknowledge every unacknowledged item up to this id instead. —campaign and —kind narrow it.
  • --campaign STR: With —up-to: only the items of this campaign.
  • --kind COMMENTKIND..., --empty-kind: With —up-to: only the items of this kind. Repeatable. [default: ()]

piloop inbox reply

Answer an item with a decision on the root of its thread, in_reply_to the item, signed as PILOOP_ACTOR. The answer is an inbox item of its own, so every orchestrator but you sees it in piloop inbox wait. Arguments:
  • COMMENT: The id of the item. [required]
  • BODY: The answer. [required]
Parameters:
  • --priority INT: From 0 (urgent) to 4 (someday). [default: 2]

piloop inbox choose

Answer an escalation with one of its choices: a decision reply signed as PILOOP_ACTOR, and an ack. Arguments:
  • COMMENT: The id of the escalation. [required]
  • CHOICE: The id of one of its choices, such as A. [required]

piloop init

Make a directory a piloop campaign and register it. It is safe to run again. When needed, it runs git init and makes a baseline commit. When there is no piloop.toml, it writes piloop.toml, brief.md and evaluate.py from the template, and keeps the files that exist. While evaluate.py is still the template stub, it stops and says what to edit. Then it starts the daemon, unless one runs, registers the campaign with HEAD as its baseline candidate, and waits while the daemon measures it. A baseline that fails to evaluate pauses the campaign, and init exits with why. Ctrl-C stops only the wait: the campaign stays registered. For a campaign that is registered already, it reads piloop.toml again. Arguments:
  • PATH: The campaign directory. [default: .]
Parameters:
  • --example STR: Write a bundled example instead of the blank template: enwik8, titanic-tracks, inference.
  • --name STR: Register the campaign under this name, not the name of piloop.toml.

piloop install-skills

Install the orchestrator skills into ~/.agents/skills, and for every harness on PATH. Codex, pi, Gemini CLI, Cursor and every other harness that follows agentskills.io read them from ~/.agents/skills. Claude Code reads them from ~/.claude/skills (or $CLAUDE_CONFIG_DIR/skills). PILOOP_CLAUDE_SKILLS_DIR and PILOOP_AGENT_SKILLS_DIR install them elsewhere, for a second install such as a build of main next to a release. It replaces piloop’s own skills there and nothing else. A running harness loads them at its next session. The installer and piloop upgrade run this command.

piloop launch

Ask the daemon for one more agent of a role. The daemon launches it at once, within the role’s max_concurrent. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • ROLE: The role of the agent: one that a package adds, which starts its agents itself. The daemon launches the agents of a role that does runs by itself, one for each queued run. [required]
Parameters:
  • --harness STR: Use this harness instead of the rotation.
  • --model STR: The model id, as the harness names it.
  • --reason STR: Why you request the agent. The agent’s brief includes it. [default: requested from the CLI]

piloop limits

Change a live key of a provider of the home while the daemon runs. Commands:
  • set: Set a live key. It wins over config.toml at once, and holds until piloop limits unset.
  • unset: Remove a limit: config.toml holds again at once.

piloop limits set

Set a live key. It wins over config.toml at once, and holds until piloop limits unset. The value is JSON (1, null, 1.5), or else text. Arguments:
  • ASSIGNMENT: KEY=VALUE: executor.pools.serve.slots.evaluation=1. [required]
Parameters:
  • --reason STR: Why: it shows next to the value. [required]

piloop limits unset

Remove a limit: config.toml holds again at once. Arguments:
  • KEY: The key of the limit. [required]

piloop measurement

Record a measurement made outside the daemon.

piloop measurement add

Record a measurement of a candidate under the campaign’s current evaluator. Its mean includes it at once. Use it for an evaluation that you ran yourself, for example the evaluate command on the candidate’s commit after the daemon’s run timed out. metrics takes the metrics of piloop.toml, all of them unless error says why the evaluation failed. seconds and error are optional. The output says where the candidate stands now. The measurement is signed as PILOOP_ACTOR. Arguments:
  • CANDIDATE_ID: The candidate that was measured. [required]
Parameters:
  • --report PATH: A JSON file: {“metrics”: {“<name>”: <value>}, “seconds”: <s>, “error”: “<why>”}. [required]

piloop message

Write to the campaign’s orchestrator, signed as PILOOP_ACTOR. It ends the orchestrator’s piloop inbox wait. The orchestrator answers with piloop inbox reply, and the answer is in your inbox. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • BODY: What to say. [required]
Parameters:
  • --seat INT: Address a numbered orchestrator seat.
  • --priority INT: From 0 (urgent) to 4 (someday). [default: 2]

piloop migrate

Migrate the database to the schema of this piloop, and print what changed and where its backup is. Before it migrates, it copies the database next to it (migration_backups in config.toml). Only this command, piloop serve when it starts and piloop upgrade migrate. Every other command refuses a database at another schema revision, and says what to run. It refuses to migrate under the running daemon of an older piloop, and refuses an agent that the daemon launched.

piloop orchestrate

Run COMMAND with the stable identity of numbered SEAT. Use one process per seat in the campaign repo. Pass the agent command after —. Each seat shares the campaign board and workers and reads its own inbox. Arguments:
  • SEAT: [required]
  • COMMAND: [required]
  • ARGS:

piloop pause

Pause a campaign: nothing new launches, and nothing is escalated. piloop resume ends the pause. The daemon queues no run, requests no role and launches no requested row. Running work goes on, and its commits are scored. The daemon still measures again what a new evaluator or piloop candidate remeasure needs, so the pause can end on a measured best. --evals holds those measurements too. The pause is in the database: it holds wherever you run the command. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
Parameters:
  • --reason STR: Why, with ids: what the pause waits for. [required]
  • --evals, --no-evals: Hold the measurements that the daemon starts too: after a new evaluator, or asked.

piloop plugins

Show every capability, each of its providers and the package it comes from, then what the configuration selects. It loads the entry points as the daemon does when it starts, and fails on one of a capability that the daemon uses that does not load, is not of its kind, or reuses a name. A broken package of a capability that nothing selects, which the daemon does not load, is shown with its error.

piloop prompt

Queue a message for the next turn of a running agent of any role, and say whether it is queued. The message is a note on the agent. The daemon queues it through the agent’s executor and its runtime. When it cannot, the command says why. After 20 seconds without an outcome, the daemon still queues it once the agent runs. Arguments:
  • AGENT_SESSION_ID: The id of the agent, as piloop status lists it. [required]
  • TEXT: The message. [required]

piloop restart

Restart the running daemon on the installed code, in the same process. Running agents keep running. The daemon stops its loop, then the same process execs piloop serve. The new start re-attaches to every agent and finishes their runs. The process keeps its pid and its environment, so systemd, launchd or the terminal that started it still holds it. To change the environment of a service unit, use the restart of the service manager. Parameters:
  • --timeout FLOAT: Seconds to wait for the daemon to start again. [default: 30]

piloop restore

Write archived files back into the campaign’s shared workspace: agents that start after get them in ./workspace/. The daemon archives a settled subject’s workspace files, such as a done idea’s, and what is left when a campaign stops, into the artifact store and removes the local copies. This brings them back from the local store or its remote. A file that is already there with other content is kept, never overwritten. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]
  • TARGET: A subject (idea#12, or 12 for an idea): its files; else a workspace-relative path: it or everything under it. Left out: every archived file.

piloop resume

Resume a paused campaign. The daemon queues runs and requests roles again at once. Arguments:
  • REF: The campaign name, its id, or a path inside its repo. [required]

piloop run

Act on one run.

piloop run cancel

Cancel a queued or running run. The daemon acts at once. A queued run never starts, and a run whose implementer fails to start is not launched again. A running implementer is ended with every process that it started, at once or, with --wrap-up, after it was told to save its work and stop. The run closes as cancelled, unless the implementer ran piloop run end before the daemon ended it: a later end is refused. Its commits are scored, and its idea is open again: drop it to take it off the board. Arguments:
  • RUN_ID: The id of the run. [required]
Parameters:
  • --wrap-up: Tell the agent to save its work and stop first, and end it 10 minutes later.

piloop run extend

Give a running run’s implementer more time. Its timeout ends it --by later, also on a worker elsewhere, and a note tells it its new deadline. Extensions add up. Arguments:
  • RUN_ID: The id of the run. [required]
Parameters:
  • --by TIMEDELTA: How much more time, such as 1h or 90m. [required]

piloop run end

End your own run now, with every process that you started. Optional: when your session exits, your run ends as submitted if it submitted a version, else as gave_up. submitted settles your idea as done once your work is scored: in a campaign that scores what you submit, only after a piloop submit. gave_up puts your idea back on the board, with your reason if you give one. Arguments:
  • HOW: submitted: your work is done. gave_up: you stop without a result. [required] [choices: submitted, gave-up]
Parameters:
  • --reason STR: Why you give up, with ids.

piloop schema

Print the guides to the database and every table, or only the guides that you name. A brief has the guides of its agent’s role; this prints any guide, also one that no brief has, such as orchestration. The examples name no campaign, and say what the default vcs provider writes. Arguments:
  • NAMES: The guides to print, such as provenance or queries. Without one, every guide, then every table.

piloop secret

The secrets that agents get in their environment. No command shows a value.

piloop secret set

Set a secret, in place of any, from stdin: printf %s "$KEY" | piloop secret set EXA_API_KEY. On a terminal, it asks for the value and does not show it. Agents get the value from their next start. An agent sets only its own campaign’s secrets. Arguments:
  • NAME: The name of the secret: the variable that agents get it in. [required]
Parameters:
  • --campaign STR: The campaign whose secret it is, over the home’s of the same name. Unset: the home’s.

piloop secret list

The secrets: the name, whose it is, and who set it last and when. Never a value.

piloop secret rm

Delete a secret. An agent that starts after it no longer gets it. Arguments:
  • NAME: The name of the secret: the variable that agents get it in. [required]
Parameters:
  • --campaign STR: The campaign whose secret it is, over the home’s of the same name. Unset: the home’s.

piloop serve

Run the daemon, which launches the agents and reaps the agents that end. Only one daemon runs per PILOOP_HOME. The file serve.pid holds its lock. Parameters:
  • --detach, --no-detach: Start the daemon in the background. Its output goes to serve.log.
  • --check, --no-check: Check that the daemon can start (its plugins, and what config.toml binds), and start nothing.
  • --listen STR: Serve other machines on HOST:PORT ([plugins.network] listen). An address that is not loopback needs TLS. Port 0 takes a free port, which piloop restart keeps. piloop status shows the URL.

piloop service-unit

Print a systemd user unit (a launchd plist on macOS) that keeps piloop serve running. It prints the unit only, and installs nothing. The unit carries the variables that the homes of the installed harnesses and of the registered campaigns’ harnesses name.

piloop sql

Run one SQL statement on the piloop database, with the campaign’s own tables attached as the schema team. These are denied: schema changes outside team, ATTACH, transactions, and writes to alembic_version and session_actor. In team, CREATE and DROP of a TABLE, an INDEX or a VIEW, and ALTER TABLE, are allowed. Only the PRAGMAs that describe the schema are allowed. A statement runs for at most 5 s and team grows to at most 256 MiB ([sql] in config.toml). actor() returns whom the statement signs as. A query prints at most 500 rows. With -, the statement is read from stdin: piped in from a quoted heredoc (<<'EOF'), an agent’s text reaches the database as written, where a double-quoted argument would let the shell run what is in backticks or $(…) first. Arguments:
  • STATEMENT: One SQL statement, or - to read it from stdin. [required]
Parameters:
  • --campaign STR: The campaign whose team tables are attached: its name or id. By default the only campaign that is not retired, else the one cwd is in. An agent’s are always its own campaign’s.

piloop status

Print the state of the daemon and the live keys that config.toml or a limit sets, then each campaign. Each campaign shows the sections of its [plugins.section] use: by default the best, the goal and the progress against the stop rule, the tracks, the trajectory, the open runs, the queue, the live agents with their last line, the evaluations, the recent candidates, the incidents that agents got, the inbox and the recent events. Without a campaign, it uses the campaign that the current directory is in, else the only active campaign, else every campaign but the retired ones (--status). With —json, it prints the daemon’s pid and the URL it listens on, and the main facts of each campaign, read at one cursor: follow them with piloop events --after <cursor>. Arguments:
  • REF: The campaign name, its id, or a path inside its repo.
Parameters:
  • --status CHOICE...: Without a campaign, list those of this status. Repeatable. [choices: active, stopped, retired] [default: (active, stopped)]
  • --json: Print one JSON document on stdout, for a program. Messages go to stderr.

piloop stop

Stop the running daemon with SIGTERM, and wait for it to exit. The daemon kills the agents that are running, and their runs fail. A run whose implementer already ran piloop run end ends as it said instead: the next daemon scores its commits. Parameters:
  • --timeout FLOAT: Seconds to wait for the daemon to exit. [default: 45]

piloop store

The artifact store that archived workspace files live in: what it holds, eviction, checks.

piloop store status

What the store holds, where, and how much of each campaign’s workspace was archived into it.

piloop store evict

Upload what the remote lacks, then drop local copies as [plugins.cas] says; the daemon does it hourly too.

piloop store verify

Check that every blob of every archive is in the store: local copies are re-hashed, evicted ones asked of the remote. Exits non-zero when one is missing or corrupt. Arguments:
  • REF: The campaign name, its id, or a path inside its repo.

piloop submit

Score a commit of your run. It returns at once: where it stands comes to you as a [piloop] message. piloop runs the campaign’s evaluate command on the commit, and scores it into the campaign’s pool. Keep working meanwhile. The message gives its score and its gain over its parent, your line’s best and the campaign’s best. A commit whose first score beats the best is evaluated again until it is confirmed, then it can be the best. A campaign can cap the submissions of a run ([evaluator] submissions). A submission is for one of your claims, by default your newest: when the run ends, an idea is done once a submission for it has a score. Arguments:
  • REVISION: The commit to submit. Default: the one that your checkout is at.
Parameters:
  • --idea INT: The claim that it is for. Default: your run’s newest claim.

piloop token

The bearer tokens of piloop serve and piloop cas serve.

piloop token create

Make a token and print its secret. Only its hash is kept: copy the secret now. Arguments:
  • NAME: The name of the caller that uses it, such as a worker. [required]
Parameters:
  • --access CHOICE: What its caller may do. [choices: read, act, admin, worker] [default: worker]

piloop token list

The tokens: name, access and when each was made. Never the secrets.

piloop token revoke

Delete a token: the next call with it gets 401. Arguments:
  • NAME: The token to revoke. [required]

piloop upgrade

Upgrade the CLI, the skills and the database to the latest version, and restart a running daemon. It reads the source that uv installed the CLI from (the uv receipt), and runs uv tool upgrade --reinstall-package piloop piloop. Then the new code runs piloop install-skills. A running daemon restarts in place, as with piloop restart: its agents keep running, and the new code migrates the database and re-attaches to them. When no daemon runs, the new code migrates the database and the daemon stays stopped. A checkout installed with uv sync is not a uv tool: upgrade it with git pull. It refuses an agent that the daemon launched. Parameters:
  • --timeout FLOAT: Seconds to wait for a running daemon to restart. [default: 30]

piloop watch

Show the campaign on one screen, with keys to act on it. It shows every campaign, or one campaign when you name it. A campaign has numbered panels (inbox, agents, candidates and status) and the detail of the selected row. ? lists the keys of the focused panel, / filters it, esc goes back to every campaign and q quits. It reads the API, so it works with PILOOP_SERVER too. Writes are signed as PILOOP_ACTOR. Arguments:
  • REF: The campaign name, its id, or a path inside its repo.
Parameters:
  • --mouse, --no-mouse: Take the mouse. —no-mouse leaves it to the terminal: a multiplexer can misread the mouse of the app. [default: True]

piloop worker

The workers that run jobs on leases. Commands:
  • list: List each worker: its pool, when it was last heard, its host sample, its jobs, and why it got no lease.
Parameters:
  • --server STR: The URL of the server that piloop serve --listen runs. [required]
  • --pool STR: The pool of the server whose slots this machine has. [required]
  • --once, --no-once: Take one lease, run its job, and exit.
  • --orphan-exit FLOAT: Exit after this many seconds without an answer of the server, once no job runs.

piloop worker list

List each worker: its pool, when it was last heard, its host sample, its jobs, and why it got no lease. Then each worker that a provisioner starts, until it ends: its pool, its state, and when it was asked for.