AI

AI

Workflows

Review a pull request: review → security → report → approve

Runs on the reviewer's computer with their coding agent. The agent reads the pull request named in the task, lists what must be fixed and what is missing, checks security and data, merges both into one review, and waits for the reviewer before it is posted on the task.

EngineeringAssignee's computerLast 30 days: 1 run · 100% finished · 9m 36s on average · 7,200 AI units on average
  • Runs inAssignee's computer
  • ReadsTask + its context
  • Verified by1 automatic check · 1 approval
  • Limits60 min a run · 10 min a step · may ask people
  • DeliversComment on the task
  1. Start

    The assignee presses Run on their task. Their connected computer picks the run up and does each step there, with their coding agent.

    Advanced: what an instruction can point at
    {{task}}
    the task: code · title · description (up to 4,000 characters), then its context: the project and its week, parent task, subtasks, recent comments, files, documents it names, similar tasks (up to 6,000 characters).
    {{previous}}
    the last result before the step (an AI step's or a command's), with any notes approvers gave since; up to 8,000 characters.
    {{steps.key}}
    an earlier step's result, by its key.
    {{input.key}}
    what the person filled in at Run for that field.
    {{resources}}
    the playbook, pages, text files and the list of other files and links (up to 20,000 characters); added before the instruction when not placed.
    {{answers}}
    the answers people gave to the run's questions so far; added at the end when the instruction doesn't place them.
  2. 1ReviewAsk the AIopus1 done · 0 failed · 1m 36s
    Model
    opuspassed to the agent (--model)
    Role

    A strict code reviewer: every finding has a file, a line and a reason.

    Gets
    Task + context
    Result goes to
    read by Step 3 · One review
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    May ask the people on the task before it works, and again after their answers (up to 3 rounds).

    Instruction

    The task below names a pull request or a branch. Check it out in this folder (gh pr checkout, or git fetch and git switch) and read its changes against the main branch. Do not edit code. Report in Markdown: ## Summary (what the change does, in two sentences), ## Must fix (bugs, broken edge cases, data loss), ## Should fix, ## Missing tests. Each finding: file and line, what is wrong, the change you suggest.
    
    {{task}}
    Show what the model receives

    A coding agent gets no system prompt from the workspace: the role goes at the top of its input.

    user

    Your role for this step:
    A strict code reviewer: every finding has a file, a line and a reason.
    
    The task below names a pull request or a branch. Check it out in this folder (gh pr checkout, or git fetch and git switch) and read its changes against the main branch. Do not edit code. Report in Markdown: ## Summary (what the change does, in two sentences), ## Must fix (bugs, broken edge cases, data loss), ## Should fix, ## Missing tests. Each finding: file and line, what is wrong, the change you suggest.
    
    task + context
    
    (the answers to the run's questions, when there are any)
    
    If something essential to this step is unclear and you cannot make a reasonable assumption, do not guess. Instead reply with only this block and stop:
    ```workspace-ask
    {"questions": [{"text": "<your question>", "options": ["<answer A>", "<answer B>"], "default": "<answer A>"}, {"text": "<another question>", "default": "<your best guess>"}]}
    ```
    At most 5 short questions, in the language of the task, all at once. Ask again after the answers only about something new they raise. First use the context above and the answers so far; never ask what they already say. Give "options" when the possible answers are known, and "default" with your best guess from the context, so people only correct it. The people on the task answer, then this step runs again with their answers. Ask only when it matters; otherwise do the step.
    
    (when an approver sent the result back: their request and the previous result)
  3. 2Security and dataAsk the AIsonnet1 done · 0 failed · 1m 36s
    Model
    sonnetpassed to the agent (--model)
    Role

    A security reviewer: assumes every input is hostile.

    Gets
    Task + context
    Result goes to
    read by Step 3 · One review
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    May ask the people on the task before it works, and again after their answers (up to 3 rounds).

    Instruction

    Read the changes on the checked-out branch against the main branch again, for security and data only: missing permission checks, unvalidated input, injection, secrets in code or logs, personal data exposed, migrations that lose data. Do not edit code. Return only the findings, each with file and line, the risk and the change you suggest; write "Nothing found" when there is nothing.
    
    {{task}}
    Show what the model receives

    A coding agent gets no system prompt from the workspace: the role goes at the top of its input.

    user

    Your role for this step:
    A security reviewer: assumes every input is hostile.
    
    Read the changes on the checked-out branch against the main branch again, for security and data only: missing permission checks, unvalidated input, injection, secrets in code or logs, personal data exposed, migrations that lose data. Do not edit code. Return only the findings, each with file and line, the risk and the change you suggest; write "Nothing found" when there is nothing.
    
    task + context
    
    (the answers to the run's questions, when there are any)
    
    If something essential to this step is unclear and you cannot make a reasonable assumption, do not guess. Instead reply with only this block and stop:
    ```workspace-ask
    {"questions": [{"text": "<your question>", "options": ["<answer A>", "<answer B>"], "default": "<answer A>"}, {"text": "<another question>", "default": "<your best guess>"}]}
    ```
    At most 5 short questions, in the language of the task, all at once. Ask again after the answers only about something new they raise. First use the context above and the answers so far; never ask what they already say. Give "options" when the possible answers are known, and "default" with your best guess from the context, so people only correct it. The people on the task answer, then this step runs again with their answers. Ask only when it matters; otherwise do the step.
    
    (when an approver sent the result back: their request and the previous result)
  4. 3One reviewAsk the AIsonnet1 done · 0 failed · 1m 36s
    Model
    sonnetpassed to the agent (--model)
    Gets
    Result of step 1Result of step 2
    Result goes to
    checked at Step 4 · Findings are usable · shown to the approver at Step 5 · Approve the review · delivered when the run ends
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    May ask the people on the task before it works, and again after their answers (up to 3 rounds).

    Instruction

    Merge the two reviews below into one, in Markdown: ## Summary, ## Must fix, ## Should fix, ## Security and data, ## Missing tests, ## Verdict (approve, approve after fixes, or request changes, and why in one sentence). Remove duplicates, keep every finding's file and line, order each section by severity. Add nothing new.
    
    Code review:
    {{steps.review}}
    
    Security review:
    {{steps.security}}
    Show what the model receives

    A coding agent gets no system prompt from the workspace: the role goes at the top of its input.

    user

    Merge the two reviews below into one, in Markdown: ## Summary, ## Must fix, ## Should fix, ## Security and data, ## Missing tests, ## Verdict (approve, approve after fixes, or request changes, and why in one sentence). Remove duplicates, keep every finding's file and line, order each section by severity. Add nothing new.
    
    Code review:
    result of step 1
    
    Security review:
    result of step 2
    
    (the answers to the run's questions, when there are any)
    
    If something essential to this step is unclear and you cannot make a reasonable assumption, do not guess. Instead reply with only this block and stop:
    ```workspace-ask
    {"questions": [{"text": "<your question>", "options": ["<answer A>", "<answer B>"], "default": "<answer A>"}, {"text": "<another question>", "default": "<your best guess>"}]}
    ```
    At most 5 short questions, in the language of the task, all at once. Ask again after the answers only about something new they raise. First use the context above and the answers so far; never ask what they already say. Give "options" when the possible answers are known, and "default" with your best guess from the context, so people only correct it. The people on the task answer, then this step runs again with their answers. Ask only when it matters; otherwise do the step.
    
    (when an approver sent the result back: their request and the previous result)
  5. 4Findings are usableCheck automaticallyChecks Step 3 · One review1 done · 0 failed · 1m 36s
    Judge
    The agent's default modelwhatever the connected computer's agent uses
    Requirements
    • Every finding names a file and a line or function
    • Every finding says what is wrong and suggests a change
    • The review ends with a verdict and its reason
    • No finding appears twice
    If it still fails
    Sends the work back to Step 3 · One review once. The run goes on with the issues on record, for the approver to see.
  6. 5Approve the reviewWait for approvalWhoever started the run · Step 3 · One review1 done · 0 failed · 3m 12s
    Who
    Whoever started the run
    Can
    • Approve: the run goes on; a note is passed to the next step.
    • Ask for changes: Step 3 · One review runs again with the request, then every step after it.
    • Stop the run.
  7. End

    The result of step 3 · One review is delivered: Comment on the task.