AI

AI

Workflows

Ship a change: plan → approve → code → tests → review → PR

Runs on the assignee's computer with their coding agent. The agent plans, a person approves the plan, the agent writes the code and tests, failing tests go back to it, it reviews its own work and opens a pull request.

EngineeringAssignee's computerNo runs in the last 30 days
  • Runs inAssignee's computer
  • ReadsTask + its context
  • Verified by2 automatic checks · 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. 1PlanAsk the AIopus
    Model
    opuspassed to the agent (--model)
    Role

    A staff engineer: reads the code before planning.

    Gets
    Task + context
    Result goes to
    read by Step 3 · Implement · read by Step 5 · Self-review · shown to the approver at Step 2 · Approve the plan
    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 task below and the code in this folder. Write a short change plan in Markdown: ## Approach, ## Files to touch, ## How it will be tested, ## Risks. Do not edit code yet. Ask only if the task leaves the expected behaviour unclear.
    
    {{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 staff engineer: reads the code before planning.
    
    Read the task below and the code in this folder. Write a short change plan in Markdown: ## Approach, ## Files to touch, ## How it will be tested, ## Risks. Do not edit code yet. Ask only if the task leaves the expected behaviour unclear.
    
    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. 2Approve the planWait for approvalAnyone who may edit the task · Step 1 · Plan
    Who
    Anyone who may edit the task
    Can
    • Approve: the run goes on; a note is passed to the next step.
    • Ask for changes: Step 1 · Plan runs again with the request, then every step after it.
    • Stop the run.
  4. 3ImplementAsk the AIsonnet
    Model
    sonnetpassed to the agent (--model)
    Gets
    Task + contextResult of step 1Approver notes (step 2)
    Result goes to
    checked at Step 4 · Tests pass
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    Doesn't ask: where something is unclear it decides and says what it assumed.

    Instruction

    Carry out the plan below on a new branch named after the task code; a note from the approver, if any, is at its end and comes first. Add tests for the change. Commit when done: the first line of the message says what changed, the body why. Then summarize what you changed.
    
    Plan:
    {{previous}}
    
    {{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

    Carry out the plan below on a new branch named after the task code; a note from the approver, if any, is at its end and comes first. Add tests for the change. Commit when done: the first line of the message says what changed, the body why. Then summarize what you changed.
    
    Plan:
    result of step 1
    
    task + context
    
    (the answers to the run's questions, when there are any)
    
    Do not ask any more questions: where something is still unclear, make a reasonable assumption, say which, and do the step.
    
    (when an approver sent the result back: their request and the previous result)
  5. 4Tests passCheck automatically$ npm test
    Judge
    Exit code 0 passes; anything else fails and its output is the issue list.
    If it still fails
    Sends the work back to Step 3 · Implement up to 3 times. The run fails and says why.
  6. 5Self-reviewAsk the AIopus
    Model
    opuspassed to the agent (--model)
    Role

    A strict code reviewer.

    Gets
    Task + contextResult of step 1
    Result goes to
    checked at Step 6 · Tests still pass
    Tools
    The agent's own: its MCP servers, skills and the files in the working folder.
    Questions
    Doesn't ask: where something is unclear it decides and says what it assumed.

    Instruction

    Review the changes on this branch against the main branch and against the task: bugs, edge cases, missing tests, anything the task asked for that is not done. Fix what needs fixing and commit. Then write for the human reviewer: ## What changed, ## Look closely at, ## Not done.
    
    The plan:
    {{steps.plan}}
    
    {{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.
    
    Review the changes on this branch against the main branch and against the task: bugs, edge cases, missing tests, anything the task asked for that is not done. Fix what needs fixing and commit. Then write for the human reviewer: ## What changed, ## Look closely at, ## Not done.
    
    The plan:
    result of step 1
    
    task + context
    
    (the answers to the run's questions, when there are any)
    
    Do not ask any more questions: where something is still unclear, make a reasonable assumption, say which, and do the step.
    
    (when an approver sent the result back: their request and the previous result)
  7. 6Tests still passCheck automatically$ npm test
    Judge
    Exit code 0 passes; anything else fails and its output is the issue list.
    If it still fails
    Sends the work back to Step 5 · Self-review up to 2 times. The run fails and says why.
  8. 7Open a pull requestRun a command$ git push -u origin HEAD && gh pr create --fill

    Runs in the working folder on the assignee's computer. Its output is the step's result; a non-zero exit stops the run as failed.

  9. 8Move to In reviewMove the taskIn review

    Moves the task to In review, as the person who pressed Run.

  10. End

    The result of step 7 · Open a pull request is delivered: Comment on the task.