risky_changes lists the commits since a ref, then gives them to an agent step that decides which are risky to ship. Which diffs it reads depends on what each commit changed, so a fixed list of steps can’t do it.
Set up the agent step
Thereview step’s input tells the agent what to do and what to return:
promptis the task, with the commits filled in from the step before.toolslists the only tools the agent may call.maxIterationscaps the model rounds. Each round is one model call.outputSchemais the shape of the answer, which later steps read as{{review.output}}.
Run it
outputSchema. iterations is how many rounds the agent took, and final is false when it ran out of rounds before answering:
Related guides
Iterate with map and reduce
Run steps once per item instead of one agent over the list.
Agents
Write an agent file to reuse as
agent__<name>.Debug a plan
Step through a run in the workbench.