The built-in pipelines
Five pipeline files ship in the pipelines/ folder of the Agents repo, and the forge setup puts them in the team’s pipelines repo. Each entry below gives the agent that does the work, where the run happens, the spend cap, how a run starts, and the stages in order. A stage’s name is the word on the run’s page, with _ shown as a space.
bug-fix
Section titled “bug-fix”Takes a bug report to a reviewed pull request, or to a plan when the fix is large.
- Agent.
fixer, in a box. Spend cap $5. - Starts from. A forge issue labeled
bug, the pipeline’s webhook, or a person.
The stages run in this order.
triagereads the report with the repo’s other open issues and decides whether it isnew, aduplicate,already_fixedornot_a_bug. The last three go toclose, which posts the triage summary on the issue and closes it. The run ends as succeeded withClosed without a code change.reproducewrites an automated test that fails because of the bug, then judges the fix aseasy,hardorcannot_reproduce. The last hands off to a person.confirmruns the test the agent named. The test must fail. If it passes before any fix, the run hands off.fixchanges the code, with at most 3 tries. A failedverifysends the output back to the agent.verifyruns the repo’s whole suite and the new test. Both must pass.open_propens a pull request titledFix: <report title>, withFixes #<issue>when the report came from an issue.shepherdis a gate. Approve goes tomerge, which merges the pull request and ends the run as succeeded withFixed and merged.Reject ends the run as stopped.
For a hard bug, plan replaces steps 3 to 7. The agent writes plan.md in the task folder with the cause, the change, the risks and how to test it. The review_plan gate then approves the plan, which ends the run as succeeded, or rejects it, which ends the run as stopped. No code changes.
research-plan-implement
Section titled “research-plan-implement”Takes a request through three phases, each reviewed by a person.
- Agent.
builder, in a box. Spend cap $10. - Starts from. A person or the pipeline’s webhook.
researchwritesresearch.mdin the task folder. The agent reads the repo and changes nothing.research_untouchedis a check that the repo has no changes and no unpushed commits. If it fails, the run returns toresearch.review_researchis a gate with Approve research and Send back. Comment on the document’s lines first. A send-back returns toresearchwith the note and the open comments.planwritesplan.md, and names indata.test_commandthe command whose passing proves the change.plan_untouchedandreview_planrepeat steps 2 and 3 for the plan, with Approve plan and Send back.implementchanges the code to carry out the plan and runs its tests.verifyruns the plan’s test command. A failure returns toimplement.open_propens the pull request.review_changeis a gate with Merge and Send back. A send-back returns toimplementwith the note.mergemerges the pull request and ends the run as succeeded withResearched, planned, built and merged.
research and plan have no allow list, so a command the agent runs there waits for a person to approve it.
improve
Section titled “improve”Changes another pipeline’s file once and proves the change on past runs. See How coach and improve prove a change.
- Agent.
improver, on its home machine. Spend cap $10. - Starts from. A person. Run it on the team’s
pipelinesrepo, and name the pipeline in the title, such asImprove bug-fix.
studyreads the named pipeline’s recent runs with the team record’spipeline_historytool, makes one change to its file, and reports the quotes the change rests on. If the runs give no reason to change anything, the run ends as succeeded.recordkeeps the quotes the runner finds in the cited steps. With none, the run ends as stopped.scorepushes the branch and replays past runs with the change and without it. A change that does not score better, or that breaks a rule for changes, ends the run as stopped.open_propens a pull request on thepipelinesrepo with both scores and the checked quotes.shepherdis a gate. Approve merges the pull request, and Reject turns the change down.settlerecords the decision on every hunk, so a turned-down change is not proposed again on the same evidence. After a merge the run ends as succeeded withMerged. The change is now the current version.
Turns corrections that people keep making to an agent into changes to that agent.
- Agent.
improver, on its home machine. Spend cap $5. - Starts from. A person. Name the agent in the title or body, as a whole word, such as
Coach fixer.
pickchooses the agent’s sessions with steps nobody has read. If none, the run ends as succeeded withNothing new to read.readhas a cheap model read each session once and report findings, each quoting one step.recordkeeps the quotes the runner finds. A correction needs 2 sessions before it is ready. Until one is, the run ends as succeeded.writeproposes at most 5 hunks, each citing its findings.proposeturns the hunks into a proposal and refuses any that break the rules for changes.replayreplays the turns behind the proposal, with and without the change.judgehas a cheap model decide whether each replay fixed its correction or made another turn worse.decidescores both versions. A change that does not win ends the run as stopped.shepherdis a gate where you keep or turn down each hunk, then approve or reject.settleapplies the kept hunks.
app-change
Section titled “app-change”Changes a repo that has a policy, under the coding framework.
- Agent.
builder, in a box, with reviewers namedreviewerand a verifier namedverifier. Spend cap $20, and the repo’s policy can lower it. - Starts from. A person or the pipeline’s webhook.
Run a change through a repo policy lists its stages and gates.