Ideas
An idea is one thing to test: a title, a hypothesis and, optionally, a plan for the worker.ready ideas in order of priority: 0 is urgent, 4 is someday, and 2 is the default. An idea has one
of these statuses:
Who adds what:
- You, the orchestrator and the research agent add defined ideas with
piloop idea add. - The watchdog files only seeds.
- A worker files neither. It writes a hunch in its
findingcomment, and the research agent reads it.
Links between ideas
--after <id>: the idea waits until every idea that it names isdone. Then it runs from the head, which holds what those ideas kept. So a research sweep can propose a chain of ideas at once.--supersedes <id>: the idea is a sharper version of the ideas that it names. The daemon rejects a superseded idea that never ran, with a note that names the new one.
Starting points
A run starts from the head by default: the latest keep. Pin another starting point with--base <candidate>. A run
from another starting point is a branch run. Its keeps form a branch and do not move the head. Use a pin when an
idea builds on a specific tree, such as an older keep or a note.
piloop candidate import <project> <commit> registers any commit of the repo as a reference: a starting point
from outside the lineage, such as a branch or the result of another campaign. The daemon measures it, and an idea
can start from it with --base.
So that the campaign explores, at least one run in every [roles.worker] explore_every runs (4 by default) starts
from a pinned idea when one is ready, whatever its priority.
Seeds
A seed is a hunch with pointers: a follow-up that a result suggests, two candidates to combine, a paper. File one when you do not have time to define the idea:- It develops the seed into a defined idea with
piloop idea develop: a hypothesis, the evidence, the cheapest check that could kill it, the metric that decides success, and the expected effect. - It rejects the seed with a note that names the earlier work that settled the question.
piloop inbox and at the top of the ideas panel in piloop watch.
Runs
A run is one attempt at an idea by one worker, with one harness and one model. When a worker slot is free, the daemon:- Takes the most urgent ready idea that no other idea blocks, and queues a run of it.
- Chooses the harness: the next one of the rotation in
harnesses, unless the idea pins one with--harness. - Creates a git worktree at the starting point of the run, and links the
linkpaths andworkspace/into it. - Writes the brief: the worker instructions, your
brief.md, the SQL procedures, the idea, the base candidate, the recent candidates and every comment on the idea and on its earlier runs. - Starts the worker. It runs until it exits or until
[roles.worker] timeout.
done. If the run failed or timed out and
the idea has attempts left, the idea goes back to ready instead. An idea has two attempts by default.
A run whose agent could not be launched, or that ended within two minutes without a token, a commit or a comment, is not
an attempt. The daemon starts the same run again with a new worker, up to two times. If the third start fails too,
the run fails and counts as an attempt. When that was the idea’s last attempt, the idea is parked. After three
failed starts within 10 minutes, the daemon stops launching agents for the project and escalates.
Commit trailers
A worker can end a commit message with a trailer:Piloop-Note: <why>: the commit regressed, but it is worth starting from. See Notes.Piloop-Eval: skip: the commit is scaffolding. The daemon does not measure it and marks itunmeasured.
Steer a running worker
- A
note,findingordecisioncomment on a running run, or on its idea, reaches the worker. Within a few seconds, the daemon types the first line of the comment (up to 200 characters) into the worker’s pane, with a query for the full text. Put the instruction in the first line. piloop prompt <worker-id> "<text>"sends text to a worker directly.
runtime = "herdr". With the default subprocess runtime, a worker is a background process and cannot
receive text. The next run of the idea reads the comment in its brief.