Running a Workflow
A Workflow runs a plan with many agents. A lead agent splits the plan into tasks. SimpleEdit runs each task in a hidden worker session and shows progress as a live graph. You start the run, and you pass every review gate yourself.
The lead plans and decides; it doesn’t write code. Each worker does one task in a fresh context and reports a short result to the lead. Steer by changing the plan with the lead. Type into a worker’s terminal only to nudge one task.
Use a Workflow when you have:
- Big steps, one after another. Fresh contexts keep a long project from filling one session.
- A plan you may change. When a task fails, patch the running graph instead of starting over.
- Parts that can run at once, for example one PR per package.
- Work another agent should check. A loop task puts a reviewer on the result every round.
Before you start
- Agree on the plan first. See Reviewing plans with SimpleEdit.
- Check Settings → Workflows:
- Workers at once sets how many workers run in parallel, per provider (1–16, default 4). Claude, Codex, OpenCode, Copilot and Antigravity count separately, each with its own row. An OpenCode model always uses the OpenCode row. A local model always runs one at a time.
- Leads may start workflows: when it is off, nothing runs until you select Start. Keep it off until you trust the lead’s plans.
1. Ask the lead to create the workflow
In the session that holds the plan, ask the agent to turn the plan into a workflow. For example: “Create a workflow for this plan. One task per PR, then a review gate.”
The agent becomes the lead and writes a task graph. Each task has a brief, dependencies, and an agent and model. A task can be:
- A plain task: one worker does it.
- A loop: a worker does the task, and a fresh reviewer agent checks the result every round. See Loops: agents check each other.
- A Deep review: one Deep review of another task’s branch, then a fixer for what it finds. See Deep review tasks.
- A fan-out (map): one earlier task reports a list, such as packages to migrate. The lead’s template runs once per item, in parallel.
- An integrate task: a worker combines the branches of earlier tasks into one PR, a stack, or one PR per branch.
- A review gate (⛩): no worker. You review the work before it. See step 5.
- A QA gate: no worker. Opens a persistent QA board so you can test the running build before code review. See Testing a build on a QA board.
- A verify task: no worker and no terminal. It runs a command through the Verify Queue instead. See Verify tasks.
A big plan can also be split into tracks. See Tracks and landing.
Ask for the shape you want in plain words: “Make the API task a loop with a Codex reviewer.” “One task per package.”
Once the workflow exists, you can compact the lead’s conversation (for example /compact in Claude Code). The workflow, briefs and plan doc hold what the lead needs, so later wake-ups start from a short context.
Verify tasks
A verify task runs a command, such as the project’s full checks, through the Verify Queue instead of a worker session. It has no terminal. Its command is visible on its card before you select Start.
- Before a gate. The task checks another task’s committed work. When it fails, a fresh fixer worker gets the trimmed failure and fixes it, then the task checks again. The lead sets the rounds, 3 by default. After the last round, the lead gets a judgment.
- After a gate, before the work lands. The task checks all approved heads together, batched onto a freshly fetched
origin/main. It has no fixer, because a fix would change work you already reviewed. When it fails, the lead gets a judgment. - A setup problem. If the queue could not prepare the check at all, the task fails at once and tells the lead. Nothing was checked, so no fixer starts.
Select a verify card to open a popup with a Verify tab and one tab per earlier round. A passing verify never passes a gate or accepts anything for you. See Running heavy checks in the Verify Queue.
2. Review the graph
- Open the lead’s Workflow tab. In the sidebar, the lead’s session also offers Open the workflow.
- Read the Goal and each task card. Select a card to read its Brief and what Done means.
- Select Patches to see every change the lead made to the graph. The button shows how many there are.
The graph is the first review gate. Tell the lead what is wrong; it patches the graph, and the patch shows as “since you approved”.
3. Start
Select Start. SimpleEdit starts a worker for each task whose dependencies are done, up to the worker limit. Workers don’t show in the sidebar.
If a worker stops at its provider’s folder-trust prompt (or Codex’s hook review) before its first turn, its card says it is waiting and shows Trust folder (or Trust Codex hooks), and the task appears in Needs you with the same button. Only your click answers the prompt; SimpleEdit changes no provider settings.
Task states:
| Card | Meaning |
|---|---|
| ○ Queued | Waits for its dependencies. |
| Waiting for a worker slot (Claude 4/4) | Ready, but all workers of that provider are busy. It starts when one is free. |
| ▶ Running | A worker is on it. |
| ● Waiting on you | The worker asked a question. |
| ◆ Waiting on the lead | The lead must decide something first. |
| ✓ Done | The worker reported its result. |
| ✕ Cancelled | The task was cancelled. |
| ✕ Failed, ✕ Worker stopped | The task did not finish. The lead gets a judgment to decide what to do. |
A loop task has its own states:
| Card | Meaning |
|---|---|
| ▶ Round n of m · working | A worker is on the task. From round 2 on, it reads “A fresh worker fixes round n findings”. |
| ◇ Round n of m · in review | A fresh reviewer checks the worker’s result. |
| ✓ Clean after n rounds | The reviewer found nothing more. The loop is done. |
| ◆ Didn’t converge · needs the lead | The last round still had findings. The lead decides what happens next. |
| ✓ Accepted · n open findings | The lead accepted the work with the findings still open. |
| ✕ Reviewer failed | The reviewer did not finish. |
Select a card to open its worker’s terminal. Type into it when that one task needs a nudge; for anything bigger, change the plan with the lead.
A worker stops when its task is done or failed, and a reviewer stops when it has given its verdict. Mid-turn, it stops when the turn ends or after 30 seconds; typing into it before then keeps it running. Its conversation is kept: select its card (“This worker stopped when its work was done.”) and Resume to continue it.
Permissions
Workers don’t ask for permission. Starting the workflow is your approval of the plan. Each worker launches in its agent’s guarded auto mode, which never bypasses safety checks:
| Agent | Worker mode |
|---|---|
| Claude Code | Auto mode (--permission-mode auto). A classifier still reviews actions. |
| Codex | --approve-for-me: automatic review inside the workspace-write sandbox. |
| GitHub Copilot CLI | --assisted-approval: a safety judge reviews tool requests. |
Antigravity (agy) | --mode auto: auto-approves edits and safe commands. |
| OpenCode | No guarded auto mode. Workers use your own OpenCode permission settings. |
If your organisation’s managed policy blocks assisted approval, Copilot ignores it with a warning and falls back to your own permission settings.
OpenCode workers stop and wait for you when your config asks before edits or shell commands. Configure OpenCode’s permissions to allow what workers need.
Your own deny rules still apply. Where the agent supports deny rules, workers are also denied gh pr merge: merging stays with the workflow’s own land step. Workers may still git push, because fix workers push their fixes. Plan mode as your default doesn’t stop workers.
Sessions you start yourself, or that an agent starts with spawn_session, still use your own default mode.
Loops: agents check each other
A loop is a task where a reviewer agent checks the worker’s result every round.
- A worker does the task on its own branch and reports done.
- A fresh reviewer reads the branch and reports “clean” or a list of findings.
- With findings, a fresh worker gets the brief, the branch and the findings, and fixes them. A fresh reviewer checks again.
Each round starts new sessions. The lead sets the rounds per loop: 1 to 5, 3 by default.
Cross-provider review. The reviewer can run on another provider than the worker, such as Codex reviewing Claude’s work. Workers and reviewers can run on Claude, Codex, OpenCode, Copilot or Antigravity. Ask the lead: “Use a Codex reviewer for this loop.”
When a loop doesn’t converge. If the last round still has findings, the card shows ”◆ Didn’t converge · needs the lead”. The lead can give the loop more rounds (at most 10 in all) or accept the work as it is. It often finds the plan is the problem; then it asks you and you adjust the plan together.
Look inside a loop. Select the loop’s card to see its sessions as a row of buttons: the current Worker, the Reviewer · round n, and the workers of earlier rounds, each as “Worker · round n”. Each button ends with that session’s state or verdict, for example “Reviewer · round 2 · Clean”. A reviewer that is reused shows its latest round only; the Rounds block lists the findings of every round. Earlier workers stay open until you dismiss the workflow, so you can see how the work got where it is. Select Resume on one to ask it something.
Deep review tasks
A Deep review task is the opposite of a loop: it reviews first and fixes after. It checks the branch of an earlier task, often the integrate task that combined the work.
- Round 1 has no worker. A Deep review of the branch runs, with one to three reviewers (the lead sets how many) and a refuter that tries to disprove each finding. The card reads ”◇ Reviewing · k/n agents”. Select it to open the Deep review tab and read the findings.
- If nothing needs fixing, the card reads ”✓ Clean · nothing to fix”. Otherwise a fresh Fixer gets the findings that held up, then a fresh reviewer checks the fix. This repeats until it is clean, up to the lead’s round limit (3 by default). If the limit is reached with findings still open, the card reads ”✓ Accepted · n open findings” and the findings stay in the Deep review tab.
- If the Deep review itself can’t finish, the card reads ”✕ Deep review failed”.
A Deep review reads the workflow’s shared brief, unless the task has a reviewer brief of its own.
Pick a Deep review over a loop when you want one thorough, multi-agent read of the finished result, rather than a cheap reviewer after every task. A loop is better when each task should be checked as it goes. Findings show only in the Workflow tab, not in the Review Room or on GitHub. Cancel aborts a running Deep review. To tune its reviewers, see Tuning Deep review.
4. Answer when you are needed
The lead is woken only when it must decide something, for example when a task fails or a loop doesn’t converge. These are judgments. The lead answers a judgment by changing the plan: it patches the running graph, for example with a fix task or a new brief, and the run goes on. Every patch shows under Patches. When something waits for you, the lead’s dot turns amber. Needs you, at the top of the Workflow tab, is the one place for what waits for you: each item is a row with its button, for example Open review or Accept.
Opt-in: Workflow Decider
By default, every judgment wakes the planning lead. For long workflows, you can opt into a decider when creating the workflow (decider on create_workflow, with an immutable brief, an optional escalation model, and a per-judgment run limit):
- Routine judgments run in fresh sessions. Failed tasks and review or QA feedback start a fresh decider session instead of waking the planning lead, keeping an append-only decision log under Decider (n) in the Workflow header.
- Escalations wait for you. When a decider cannot decide (or reaches its escalation or run limit), the held task reads ● Waiting on you and appears under Needs you with a Send to lead card (pushed to your phone too). Nothing wakes the planning lead unless you click Send to lead with your instruction.
5. Pass the review and QA gates
A review gate (⛩) stops the run until you review the work before it. A QA gate stops the run until you test the build on a QA board.
Review gates
- When the tasks before the gate are done, the gate opens one review per PR stack the tasks made. The reviews open as tabs in the lead’s workspace.
- Select the stack’s row on the gate card, or Open review under Needs you. While your review is open, the card reads ”● Waiting on your review · n stack(s)”. A gate with no stacks reads ”● Waiting for you to accept”.
- Review the stack in the Review Room. See Reviewing a PR stack.
- Submit the review. A gate’s review goes to the lead only. It never posts to GitHub.
What happens next depends on your verdict:
- You asked for changes: the lead adds fix tasks and reworks the gate. The card shows “Lead reworking”. When the fixes are done, the gate opens the next round of the review.
- You approved: select Accept under Needs you. It is one click. The tasks after the gate start. If some of the stacks are not approved, the row says so before you click, for example “5 not approved yet”.
Only you can pass a gate. The lead cannot.
If you discarded a review, select Re-request to open it again.
QA gates
A QA gate opens a QA tab in the lead’s workspace, also reachable as Open QA board under Needs you. Test the build there, then select Pass QA, or Request fixes to send the bugs to the lead. It reopens as Round 2 once the fixes land. On the phone you can only see the counts and Accept. See Testing a build on a QA board.
Tracks and landing
A release with several parts can be one workflow with several tracks. Each track has a title and its own lead: the session that designed it. The session that created the workflow is the director. Track leads report to the director, and the director keeps the cross-track decisions.
- Track boxes. Each track is a box in the Workflow tab. Its heading names the track, with its lead, a progress bar (done of total), its tokens and, in amber, how many items need you. Select ▸ or ▾ to fold the box. Tracks with something that needs you, or with running tasks, start open; the others start folded. Needs you stays at the top while the tracks scroll below it.
- Start per track. A track starts when you start it, so one that is planned early doesn’t wait for the rest. Start in the header starts every track that is still a draft. A track’s own Start starts that one. Until then it shows as a draft.
- Track leads. A track lead changes only its own track’s tasks. The lead’s session shows the Workflow tab too, with its own track open and the others folded. The director can give a track to another session with Make lead… on the track’s heading.
- Landing. Once every track is in, the director adds the landing stage: a restack task chains the tracks’ branches into one stack and resolves the conflicts between them, then one review gate covers the whole release stack, then a land task (
lands, or averifytask withland: trueon repos without remote CI) merges the stack bottom-up. A track that is finished before then reads “Waiting to land”.
You review the release once, as one stack under Needs you. A lands task is run by SimpleEdit itself: it watches approved PRs on GitHub, rebases cleanly when needed, uses a fresh Fixer + Verify loop when CI fails or teammates ask for changes, wakes you only when the code changes or a teammate needs your review or re-request, and merges once CI settles green and your approved head is covered. Accept alone never merges code that is not approved. The workflow is done when every track has landed. See Landing approved PRs.
6. Finish
When all tasks are done, select Dismiss. This closes the workflow’s worker sessions, removes the task worktrees that are clean, and archives the workflow. Branches that are already in your default branch, or whose pull request is merged or closed, are deleted too. Every other branch stays.
When a workflow finishes or is cancelled, SimpleEdit removes the clean task worktrees it created. A worktree with uncommitted or untracked files is kept, and the lead gets one message listing it. While any task worktree has uncommitted changes, Dismiss does nothing except tell you which worktrees they are and let the lead know. Once the lead has committed, discarded or reported those changes, select Dismiss again.
To stop a running workflow, select Cancel. The workers move to the sidebar as normal sessions, so no work is lost.
Usage
Each task card shows its worker’s tokens, and the status line shows the total. Hover a card to see the tokens by role: Implement, Loop review, Deep review and Fix. Round 1 of a Deep review has no worker, so it only counts under Deep review.
On the phone
The phone shows the workflow’s progress. A workflow with tracks has one section per track. You can Start a drafted workflow or one of its tracks, open a gate’s review, Accept a gate, tap Re-request @login on a landing card, or answer a decider escalation with Send to lead there. Cancel and Dismiss are desktop only.