Workflows
A workflow runs several agents in one session, each step with its own role, model and effort. Use it to split a job into steps such as scout, plan, implement and review, and to steer the run while it goes. You choose how much it asks you and how much it may spend.
Run a preset
To run a preset, open Start a run and pick Preset under How, or type ~ and its name. The run gets a Lead with the preset as its plan, and its row reads "Lead · plan Fix a layout". A preset's steps, roles and models are edited in the Workflows studio.
Older runs
A run started before every run had a Lead stays as it was.
- On an orchestrated run a model picks each next step, with its role, model, effort and a reason. It keeps its row, its page and its line, "Workflow · Orchestrated" with a gray "older run". Continue and Start finish it on the orchestrator.
- A preset run started before keeps its line, such as "Workflow · Preset Fix a layout", and its steps.
- New runs never start the orchestrator. A draft left on Orchestrated opens on Lead.
- The orchestrator stays while such a run can still be open, then goes. The rows stay readable after that.
A preset as the plan a run starts from
A preset you pick in Start a run, or one your ask matches, starts a Lead with that preset as its plan. The run's line reads "Lead · plan Fix a layout". The Lead reads your ask first, then the preset's steps.
- With the preset sets how close the Lead keeps to the steps.
- Keep steps runs the saved steps in their order. The Lead asks before it adds, skips or moves one. A preset you name with
~starts this way. - May change steps lets the Lead add, skip or move a step, and it says why. A preset your ask matches starts this way.
- A run started before 0.38 keeps its own line, such as "Workflow · Preset Fix a layout · Keep steps", and runs on as an older run.
Preset and Custom
A preset is a ready sequence of steps, each with its role and model, kept in the Workflows studio. A run started from it follows it as a plan, as above; a run you like can be saved as a preset from its page with Save as preset.
Built-in workflows
Start from Refactor, Plan and ship or Fix a bug. A built-in you delete stays deleted until you press Restore built-in workflows, which keeps your existing workflows as they are.
Runs of a workflow
The Workflows list is one grid: name, Built in or Edited in gray, the roles of its steps in gray ("Scout, Implementer +1"), the step count, when it last ran, and a link with its run count ("3 runs", "No runs"). The row opens the workflow. A workflow with no runs offers Start from this preset, which opens the New session page on the Preset form with that preset picked. The run count link opens the runs of that workflow beside the list, newest first, each a state dot, its session, its spend and its age; a row opens that run in its session. Import workflows… and Restore built-in workflows… sit in the page menu. Past ten runs, All, Running and Failed narrow the list. If the runs cannot load, the pane says so with Retry.
A run that stopped on a failure, paused at its limit or finished a step and waits for you to continue puts its session in Needs you on the board, in Sessions and for the next-session key, with the same words as the run's row.
Saved steps
Reuse steps across workflows. The built-in steps are read-only, and Save a copy makes your own.


Screenshot from Goodboy 0.40.1
Model per step
Put a light model on a scout and a strong one on the planner. A step follows its role by default, and Pin a model gives it its own provider, model and effort, with the same compact provider row as the model picker. Goodboy records what actually ran.
Asks you
Choose how often a run stops for you: Every step, After the plan to approve once and then run on, or Never. The old names (Autonomy, Ask me, Balanced, Autopilot) still find it in search. A run on Never goes on until it is done or reaches its limit. That limit is on the run, the session, or a monthly limit on every provider the run can use. With no limit, an agent that ran 4 times in an hour without you reads Needs you, and a notice says "Ran 4 times in an hour with no limit set." Its page says the same, after a restart too. Anything you write to it resets the count. The count lives in each window on its own.
Pause, resume and skip
Pause lets the step in flight finish and starts nothing new, even after a restart, and Continue picks up from there.
Stop in the dock waits until the step has really ended: the run reads Stopping, then Stopped, and the step reads Not finished. Continue picks that same step up, and the run keeps its stop until the step has started again. When the run went on its own before you stopped it, Continue turns that back on, also after a reload. If the step does not stop, the run stays running and says so.
Skip passes a step that has not finished and keeps what it already wrote. If a step says nothing for 15 minutes, the run offers Continue. When an agent stops without saying it is done and without asking you anything, the agent page reads "This step ended without a result". The agent page offers Mark step done.
The run page has one title. Its state, here Needs you, is a chip on the line under the title, beside the branches, and the page body does not repeat the word. It reads Needs you once, with Open step 3. On the step page the dock holds one state line, Not finished, with Retry and Continue. The composer reads "Answer the step".
Goodboy also moves a step to that state within a few seconds if it is still running after its turn ended with nothing to continue it. That adds one line to the app log.
Steps that cannot finish
A step that cannot finish ends as Not finished, and the level you picked decides if the run goes on.
An agent that cannot finish a step says so. Goodboy also decides it for an agent that forgot to: a step that stops twice without saying it is done is not finished. With Never or After the plan the step ends as Not finished in amber, the run goes on, and the next steps are told what is missing. The rows after it say "without step 2", and a part that depends on it does not start. The run ends as "Finished, 1 step not finished", never plain Done, with a link to the step. Keep working on the row sends the same agent back to the step. Skipped stays the word for a step you skipped yourself.
With Every step the step stops as blocked and Skip step sits on its row. The field on the step page, whose button reads Continue, is the only place to type. Two steps in a row that do not finish stop the run at any level, and it asks. The reason shows only on the agent's own page, never on the run page or in a notification.
Runs in Settings
Set what every new run starts with on the Runs page in Settings. When a run stops for you holds Stops for your OK, one level for workflows and the Lead. Spending holds the Limit with Pause or Warn only. Agents holds Reply length. Guidance is one field for the agents that write code, with Polish. Advanced stays closed and holds Parallel agents; it says so while they are on. A change reaches new runs only. Searching Run defaults or Start as finds the page.
The limit here applies to a run started from a chat prefix or a suggestion, and the run page names it default. Every kind starts from this one limit; a limit saved earlier as the Auto limit is folded into it. A new run starts from them, and a From your rules line shows where one run differs, with a Reset on that control. Provider order lives on the Models page.
Limit
Cap what a run or a session can spend, and choose Pause workflows or Warn only. Amounts take cents, such as 2.50, and Enter applies them. A paused run offers Raise limit.
Workflow run
Follow a run step by step, with its sub-agents under their agent and one button that moves it on. A preset run and an orchestrated run draw one page: the goal, one status line, the steps top down, and on a preset run Add step under them. Agents beside the page holds the same steps with their sub-agents. Pick a step and it opens as its page, with Back to the run. A sub-agent that carries a part of a plan names its wave, such as Runs first or Then, in parallel. The line at the end says what the run waits for. Every step stays on the branch the run started on, even when you switch branch. Closing or removing a branch that a run still uses asks first: Stop run first or Unmount anyway. A branch whose row is already closed cannot be forgotten until the run stops. A step whose branch was detached shows as blocked and names that branch. Its line offers Reattach, Use the branch you write to, or Pick a branch, and your choice starts the step. With no other branch to write to, it offers Add a project. Pick one and Add it, and the step starts on it. A failed add keeps the line and shows the error. A new hint waits in the queue until you choose. The Writes to chip on the run names the branch of the step that is current. The run header holds the one button that moves it on, such as Start step 3, Review plan, Answer or Raise limit, or Pause run while nothing waits on you (once paused, Continue takes its place). Everything else sits in the run's ⋯ in one order: see, steer, settings, copy, then Stop run (it acts at once and the toast offers Continue), Archive run (it acts at once and the toast offers Undo) and Delete run. An orchestrated run opens from Runs in the session and reads as one document: the goal with one chip each for when it asks you, its limit and its models (each opens only its own setting, applied as you pick it), one checklist of the steps it decided, the hints it read and what is left, the line that says what the orchestrator does now with the reason for its last choice, the result once done, and the hint box at the bottom. The checklist sits under a Steps label and reads top down. Each step is one quiet line: Step 3, the role icon, the task, the state and the time. A finished step is a small green check. The step that works now has a spinning node and says Running, and a queued step is gray and says Queued. Only a step that needs you or failed takes a colored node and a thin bar at its edge. Rest on the role icon to see the role card. A set of finished sub-agents folds to one line, such as 3 scouts, with a check. A step opens beside it. The time on a step row and on the line at the end counts only the time the agents worked, never the time a step waited for you. After a restart, Continue all restarts every stopped agent.
A run that stopped, whether at its limit, by you, on a failure or for an approval, still shows the questions its steps asked. They sit above the line that says why it stopped when they block the run, and below it otherwise. Answer them from the run page as anywhere else.
While the session's workflows load, the run page draws its goal, its facts and three step rows as a skeleton, after 120 ms and never as a blank page.


Screenshot from Goodboy 0.40.1
Runs opens on your runs. New in the head starts the next one, and Start a run from ⌘K opens the field above the list, where Esc closes it. With no run yet the field is the page.
The groups are Needs you, Running, Idle, Finished and Archived. An agent you stopped reads Stopped. A preset that has not started reads Ready. The row always offers the real Continue or Start, and Connect when the provider is signed out. A row names the branch its run works on, and the rest as +N.
With two or more branches a switch groups the page By branch or By state, one choice per session. By branch has a group per branch or pull request series, and No branch comes last. Groups that need you come first, finished runs fold, and archived runs fold apart, last. The choice stays after a reload. A run on several branches stands in each, with Also on feat/retry-budget. With one branch the page is the same list.
A row's branch chip opens the Branch page, Also on shows the same run in its other group, and a title click opens the run at once. Right click a row and pick Rename to edit its title. The Branch page has a Runs tab with the runs, questions and artifacts of that branch, the same rows as these pages. All runs opens this page with the group of the branch open, in the grouping you chose. Open branch on a group opens that Work tab, and Back from a run returns to it.
When something listens on a port on this branch, the line under the branch name shows up to two ports with a live dot and their name, then +1 more. A click on a port opens it. Ports opens Monitoring on this branch. Nothing runs, nothing shows.
Hints to the orchestrator
Every hint is your message on the run's line, not a step. It has a small speech node and its text in a bubble, with You · read at step 3 at the end. The line runs through it, and on through hints after the last step. Queued hints sit under the steps, under Queued, read at the next decision. A queued hint has an outlined bubble and says You · not read yet.
A hint's text sits on one line. A hint that is cut, or has a second line, has Show more to read the rest and Show less to fold it. Its images are small thumbnails at the end of the same line, and a click opens them in the viewer.
The box under the page holds only the input and, while hints wait, one line such as 3 hints queued with Show, which scrolls to them. That line never moves the input. The queue stays on the line when a run is blocked and the input swaps to Continue. When the orchestrator reads a queued hint, it moves to the steps. An image you attach to a hint shows once, on its hint, and not again under the goal. Focus stays on your thumbnail. Esc in an open viewer returns to it.
A read hint sits before the step that read it. Once the step is on the list, read at step 3 is a link that moves to the step, or opens it when it is out of view. Until then it is plain text. A hint keeps its open text and its open image when the orchestrator reads it. The words you are typing stay in the box when a step ends or the page changes under it, and go only when the hint is saved.
Steer a run while it goes with a markdown hint, images included. A run that only reads, and has no worktree yet, still takes the images. Queue keeps it for the next decision; on a finished run, Read 2 queued reads them all in one new turn. Send now stops the step in flight, keeps what it wrote and decides again. A complete orchestrated run keeps a field at its end, Continue with a hint: send one and the run reopens and the orchestrator picks the next step from the goal and your hint. The orchestrator picks the steps, so an orchestrated run has no Add step. When the project has more than one mount, it sees each one and sends a step to the mount whose repository the step changes. It also says how hard each step is, and Goodboy picks the model for that role and difficulty on your preferred provider; Models in workflows in Models lets the orchestrator name the model itself.


Screenshot from Goodboy 0.40.1
Why each step, and the run recap
See why each step was picked. A short Recap says what is done and what is left, and it is rewritten after each decision.


Screenshot from Goodboy 0.40.1
Step handoff summary
Each step starts from a short brief instead of the whole previous chat. When a step runs on a model that does not keep the conversation (Cursor, Codex, Gemini), its history comes as at most 8,000 estimated tokens with the original request always included, and the step's transcript says what was carried over and what was left out. If the summary fails, Goodboy tries the other models you allow, and only then keeps the start and end of the chat and marks the brief as degraded, with Retry.
Open questions
Each question arrives as one card with whether it is Blocking, and numbered answers with the recommended one tagged and already picked. Press Enter to send it, pick another with a number key, or write your own. Let an agent decide, Send as message and Dismiss question sit in the More menu of the card, so Answer is the one filled button. A blocking question holds its step until you answer or choose Send as message. The step is not nudged to carry on while it waits. When an agent asks again in a later turn, only its newest blocking question stays open. A run page shows the same card. Several questions from one agent page as "1 of 3" with the number left, and the last Answer sends them together. The session's Questions page lists them under Needs you and Answered, with the answer in gray; a row opens its card in the drawer, and answering moves to the next one. With two or more branches among the questions the same By branch and By state switch applies, with the same choice for the session. A branch with a waiting question comes first. Its answered questions fold into 2 answered. A question with no agent, or whose branch was detached, sits in No branch. A question of an agent on two branches is drawn in both groups with Also on feat/retry-budget. Answering, handing off or dismissing it in one group moves it in both. Every way to a question lands on that page with the question open, and a reload brings it back. Close goes back to where you came from, even after the last answer. The role in the drawer title ("Implementer asks") opens the agent that asked, or its run step when it asked inside a run, and Open agent in a row's right click menu does the same; an agent that was deleted keeps its role with no link.


Screenshot from Goodboy 0.40.1
Let an agent decide
Hand a question to another agent with a hint and a model from Let an agent decide, then press Send to agent. Its answer counts as yours, and Answer it yourself takes it back.


Screenshot from Goodboy 0.40.1
Import workflows
Bring custom workflows over from your other workspaces with Import in the Workflows studio. Edits are reversible with the Undo toast or ⌘Z outside text fields.
Under the hood
- Provider routing:
workflowRoutingCodec.tsreads provider ids and effort levels from the shared registry.orchestratedRun.sqlite.test.tsxcovers a Copilot step starting and Retry after its agent write failed. Stored rows need no repair. - Older runs: the rows stay in
session_workflowswith theirexecution_mode(packages/db/src/migrations/m091-workflow-execution-mode.ts), and no migration touches them.sessionRunsOfkeeps theorchestratedandpresetkinds,runKindLineOfwords their line, andRunsGridRowadds the grayNAMES.runKind.olderRuntag. The orchestrator engine is removed no earlier than two minor releases after 0.38.0, the first release where new runs never start it (versioning.md). - Preset as a plan:
runRouteOfsends a named preset topresetRouteOfwithfollowand a matched one withadapt.startRoutedRunspawns the Lead withleadPlanBriefOf, which puts the ask first, then the steps, then the closeness line. The chip words areSTART_KIND_COPY.closenessand the route wordsRUN_ROUTE_COPY.closeness(startRoutedRun.test.ts). - Run transcript doors:
workflowRun.stepTranscriptandOrchestratedTailVerbnavigate to the step agent page and close the drawer, keeping one composer (workflowRun.subagent.test.ts,run-pages.test.tsx,failure-links.test.tsx). - Older runs: an orchestrated run stopped halfway keeps its "Workflow · Orchestrated" row in Runs, and Continue finishes it on the Orchestrator with no Lead tree (
olderRunsResume.sqlite.test.tsx).
This part is for contributors and agents who change the feature.
- Stopped run questions:
runQuestionsPlacementOfdecides ifOrchestratedTailandRunTaildraw the run's open questions, and where. It reads the phase and the run stop. The questions show in the paused, limit, failed, stopped, needs-approval and plan-approval phases. They also show on any stop other thanquestions, whatever the phase. Inplan-questionandplan-revisingthe planner's tail and the header Answer own the questions, so the cluster stays hidden. They sit before the state line when one questionisBlocking, else after it. A finished run and the in-flight phases with no stop hide them. - Stopped run questions are the same cards as in Needs you.
answerOpenQuestions,sendQuestionAsMessageandspawnQuestionDelegatestake no stop into account, so an answer reaches the asking agent as it does from the drawer. - Stopped run tail of a preset run:
RunTaildraws the cluster from the run stop, whatever the tail verb. A step still running or an agent stopped by a restart does not hide it.stoppedQuestionTailOfgives each non-question stop kind its own word, so no stop reads "Waiting for your answer". - Run tail words:
runTailOfsays one word ofNAMES(Running, Needs you, Needs approval, Stopped, Paused, Failed, Not finished, Ready, Queued) and at most one verb. The sentence of a stop sits at the head of the agent page (NextActionStrip,QuietStepStrip), never on the tail (runTailOf.test.ts). - Turn breaker: every workflow turn passes
admitWorkflowTurn.readAgentRunLimitreads the session budget and the monthly rules fresh, and a failed read is reported and leaves the breaker on. A limit is a run or session limit in pause mode, or a monthly rule on every provider the agent can route to. With one,admitRunBudgetrefuses a turn past it and saves the run stop. With none, the turn claimsclaimWorkflowTurn.haltRunawayWorkflowAgentwritesblockedwithstoppedBy: 'breaker'and posts "Ran 4 times in an hour with no limit set."resolveNextActionreadsbreakerback as that sentence on the agent page (resolveNextAction.test.ts). A failed write is reported and the turn is still not sent (store.workflow-turn-breaker.test.ts). - Run page checklist:
RunTreeRowdraws every step onActivityRowdensity="feed", with the step label in thewideordinal slot.runStepTonepicks the tone, so the bar shows only on attention and failed. No title is bold (RunTree/index.test.tsx). - Step state:
RunTreeChecklistCellsputsRunTreeStepStatein theActivityMetastate column, then the stuck action and the time. The column saysNAMES.running,NAMES.queued, or the word of a step that did not finish. A step that waits or failed shows it by node and bar only, so Needs you stays once on the page. - Fold row:
RunTreeFoldRowdraws the quiet doneWorkNodeand shows the summary without its trailing done, which stays in the button's name (index.folds.test.tsx). - Planned steps:
OrchestratedPlanRowkeeps the step columns (w-12ordinal, the role glyph), so its label lines up with the task of a step. OrchestratedChecklistdraws the Steps label withSectionLabeland counts the top-level agents once.- Hint node:
OrchestratedHintRowdraws a queued, reading or read hint asActivityMessagedensity="feed". The quiet messageWorkNodesits in theOrchestratedPlanSlotcolumn, andOrchestratedHintBylinewrites the byline (hintRows.test.tsx).OrchestratedChecklistdraws all three states: read ones before their step or intrailing, queued and reading ones throughOrchestratedQueueintrailing, after the read ones.OrchestratedComposerholds only the input and thedata-hint-queue-linewith Show, which scrolls[data-hint-queue]into view. The line floats over the input inAnchoredLayer. - Hint thumbnails: the row gives
AttachmentStripsize="compact"(24px, fromstripLayout) right after the bubble.GoalAttachmentsStripleaves out ids in anyhint.attachmentIdsof the run (useRunHintAttachmentIds). - Hint draft:
OrchestratedComposerkeeps the unsent text inorchestratorHintDrafts(slicestore/slices/orchestratorHintDrafts), keyed by run id and evicted with the run, and hands it toOrchestratorHintComposerasdraft.OrchestratedContinue, the box on a done or blocked run, shares that entry. Text typed before the swap carries over. It empties the entry only after a successful send. The composer empties it on send. If the save fails, it callsrestoreOrchestratorHintDraft. That writes the text only while the entry for the submitted run is empty. A newer draft is never overwritten. Staged files stay inusePromptFileslocal state and do not survive a remount. - Hint state:
HintRowStateProviderinOrchestratedRunPagekeeps its expansion and open image by run and hint id.useHintRowStatemoves focus to the same control when the row moves. - Hint line:
RunTreeRowshands each hint the ink of the segment above it (railInkAbove), andOrchestratedHintRowdraws it through the row withrailThroughOfandTimelineRail, at the heightuseMeasuredNodemeasures. The last hint gets no line below. - Hint text:
useMeasuredNodemeasures the bubble. Open, the body shows the lines after the first, or the whole text of a one line hint.hintIsLongadds the newline rule to decide when Show more shows. - Hint list:
orchestratedChecklistOfgives one read hint per row. It sends a hint read with no recorded step to the trailing hints. - Hint images:
useHintImageItemsasksloadGoalAttachmentsonce per run. A failed load is reported on the session and shows Retry. - Hint figure: the
workflow-hintsfigure indocs/figures.jsonstill shows the old queued chip with its line count. - Carried history:
PRIOR_TURNS_BUDGET_TOKENSsets the 8,000 token budget. - Run step mount: a step agent is created with
mountIdfromselectRunStepMountId. It is the mount the orchestrator names instep.mountId. Else it is the mount of the run's latest step agent that has one. An id that is not a writable mount of the session is ignored, so a made-up id never starts a step elsewhere. - Orchestrator mounts:
orchestrateNextStepputs the writable mounts of the session inOrchestratorInput.mounts(id, project name, branch), for preset runs too. With two or more,buildOrchestratorUserPromptlists them andorchestratorSystemPromptForadds the rule that teaches themountIdstep field. With one mount the prompts do not change. prepareTurnaims a run step at its own pin, else at that latest pin, and uses the active mount only when the run has none yet.resolvePhaseAgentthen writes the mount the turn ran in toagents.mount_id, so the first step pins it.- Not finished is
skippedwith a non-emptyoutputSummary:notFinishedKindOf(@goodboy/core/workflows) reads it, and a user skip writes no summary. A part that did not start carries theDid not start:prefix and is never counted as stuck.continueOrPausereturnsstuckfor a hands-free agent (autoRun on) that sent<<step-stuck>>or<<cluster-stuck>>, or stopped after the retry, andfinalizeWorkflowSteporadvanceClusterImplementationthen ends it throughskipStuckStepAndAdvancewithagentIdandreason. A silent stop storesSILENT_STUCK_REASON.isAfterStuckAgentblocks the second one in a row.keepWorkingOnStepreopens a not finished step,composeMissingStepsSectionlists what is missing in the next kickoff, andRunNotFinishedLinksdraws the links of the end line. - A pinned mount that is gone blocks the step:
blockRunStepOnGoneMountmarks itblockedand throwsRunStepMountBlockedError, whichorchestrateNextStepswallows. An explicit mount on the turn overrides the pin and replaces it. selectMountBlockedStepderives the block from the store state it is given: the first root step that isblockedand whose pin (pinnedMountIdOf) is not a writable mount. It carries the branch, whether the row and the folder still allow a reattach, the active mount as the suggestion and the other writable mounts.OrchestratedMountBlockdraws it in the run tail, withStepProjectAdd(it sharesProjectPickListwithAutoProjectAsk) when there is no reattach and no other writable mount: it callsensureProjectMountedfor the session, thenresolveMountBlockedStepwithuseon the new mount, and shows a failure inline,orchestratedTailOfkeeps nothing beside it, andAgentStepRowdrops the estimate of a blocked step that never started.resolveMountBlockedStepruns the three choices. It re-checks the block, attaches the mount for Reattach, writespendingand the chosenmountIdwithinvokeAgentUpdateStatus, then callsactivateWorkflowAgent. A failed start writesblockedback and rethrows.- While a block exists,
orchestrateNextStepreturns before it decides andaddWorkflowOrchestratorHintqueues the hint, so the run never makes a second step on the same pin.recoverStuckStepreturns for the blocked step: the block stays the one ask. selectCurrentStepPingives the run header chip (RunWriteDestination): the pin of the first unsettled root step, else the last one. It replaces the session's active mount only when they differ or the pin is gone.- The detach guard reuses the
forgetMountcheck:pinnedRunsOflists the open runs with a step on the mount.mount.close(pinnedRunIds,pinnedRunLabelonMountFacts) andDetachConfirmshow Stop run first and Unmount anyway;forgetMountstill refuses. - Auto children already launch on the mount of their delegation.
- Re-asked questions:
autoPopulateContextcallssupersedeEarlierBlockingQuestions. It closes the agent's open blocking questions from earlier turns of the run. They become answered with[resolved by agent], already delivered. No schema change. A question of the same turn stays. holdForUserQuestionholds a step whose agent has an open blocking question insessionOpenQuestions.continueOrPausethen never sends the continue prompt.