DocsWorkflows

Workflows

What workflows are, how to run one, what to do when it asks for your approval, and how to steer a long job between stages.

A single agent loop decides its own path: it reads, edits, runs and answers in whatever order it chooses. A workflow decides the path for the agent. It says which steps run, in what order, what each step may use, and what must be checked before it can finish.

Rusty ships 20 workflows, available in every project, from a two-step investigation to a full audit, fix and re-audit. You pick one from the Mode menu in Agent Mode, or let Rusty choose for you.

This page is about using workflows. For what happens inside a run (steps, handoffs, checks that send work back, approvals, limits), see How workflows work.

Single agent Workflow
Path The agent decides. The workflow decides.
Tools Whatever the chat's skill allows. Each step has its own: a planning step cannot edit files at all.
Context One long conversation. Each step starts fresh and receives the previous step's written handoff.
Checks Up to the agent. Build must run the project's checks before it reports, and an independent Verify step checks every acceptance criterion. A failed criterion sends the work back to Build.
You decide Whenever you reply. At set points: you approve the plan before anything is built, and you try the checks only a person can do.
Best for Quick questions and small edits. Work you want broken into steps you can follow, and review.

Run a workflow

  1. Open Agent Mode.
  2. In the workflow bar above the message box, open the Mode menu and choose a workflow. Stages are labelled Stage:, pipelines Workflow:. Hover the summary line to read what the selected one is for.
  3. Describe what you want and press Enter.

While it runs, the bar lists the steps in order and tells you where it is, for example Running step 4 of 8: Build. Each step shows its state:

State Meaning
not run The step has not started yet.
running The step is working. A small ×2 means its second attempt.
waiting for permission A command or tool is waiting for you to allow it.
waiting for your answer An approval card is open above the message box. See When a workflow asks you.
retrying The step will run again: after an error, or because a later step sent the work back.
done The step finished.
failed The step failed. Hover it for the reason.

Each agent step runs in a fresh, isolated session that inherits your workspace, your model and your permission policies, and the chat marks where each step's output begins.

Every step starts by writing its own plan, as the agent does in a normal chat, and the Plan panel on the right shows it as Write spec plan 2/5. Earlier steps' plans fold above the current one; click one to see what it did. A retry, or the next task of a task queue, gets its own list, such as Build (2). A step cannot finish until it has made a plan and closed every item in it, by marking each one done or cancelled. The chat also logs what the engine does between steps, such as Acceptance sent the work back; running Build again (attempt 2).

The workflow's final message is its result, so read it. A finished run means every step finished, not that every check passed. In the built-in pipelines the result is Verify's summary: what was built, the outcome for each requirement, what you still need to check by hand, and follow-ups.

If a step fails, the bar says so and your next message resumes at the failed step. Steps that already finished are kept. Choose Start over instead to discard them.

Long runs

A step that is busy with a long command or a slow model can be quiet for a while. After a minute without activity the bar says how long it has been quiet and offers Stop workflow. The built-in workflows cancel and retry a step that shows no sign of life for 10 minutes; time spent waiting for your permission or your answer does not count. Press Stop at any time to end the run.

When a workflow asks you

Some steps wait for you. The run pauses, the bar says waiting for your answer, and a card opens above the message box with a question, the result to review, a Notes box and buttons. The workflow waits until you answer, however long that takes.

Approve the plan

Every built-in workflow that changes files shows you its plan before anything is built. The plan lists the requirements, their numbered acceptance criteria, the tasks, how each criterion will be checked, and the decisions and risks you should confirm.

You choose What happens
Approve Building starts.
Notes, then Approve Plan revises the plan to include your notes, then building starts without asking you again. Use it for small corrections such as "use the existing retry helper" or "skip the migration".
Notes, then Request changes Plan revises the plan with your notes and shows it to you again. Use it when you want to see the result first.
Reject The run ends. Nothing has been changed.

Build, Verify and any final review all work from the plan as you approved it, and they also see your notes. Where your notes, the plan and your original request disagree, your notes win.

Try the manual checks

Some things cannot be checked inside the workspace: how a page looks, a flow on a device, a real external service, a command that cannot run on this machine. Verify reports those as manual, and once everything else has passed, a Manual checks card lists each one with the exact steps to try.

  • If they work, choose Approve.
  • If something does not, describe what you saw in the notes and choose Request changes. The work goes back to Build with your description, and Verify checks it again.

When there is nothing to check by hand, the step passes without asking. Pipelines with a final review or a security recheck may ask a second time, for that step's own manual checks.

Decide about a stuck task

In the pipelines that build one task at a time (see Task queues), a task that still fails its review after its repairs asks what to do: Try again (your notes guide the next try), Skip this task, Revise the plan (your notes go to Plan), or Stop. Tasks that were already accepted are kept.

Auto mode

Tick Auto mode in the workflow bar and nothing waits for you: the plan is approved as written, manual checks are approved untried, and a stuck task is tried once more and then skipped (never stopped). Commands and other prompts pass too; see Auto mode. Steps marked Always ask a person are approved as well. Read the result afterwards.

Stages and pipelines

The built-in workflows come in two kinds.

Stages are short runs that stop at a written result you can read and amend: findings, a design, a plan, a verdict. Most are two read-only steps. Build & verify is the stage that carries a plan out, so it can change files and asks you to approve the plan first.

Pipelines run a whole job from start to finish: plan, build, verify, and so on.

Use a pipeline when the path is clear and you want it done. Use stages when you want to look at each result before the next thing happens, when you are not sure yet what to build, or when the change is risky.

See Built-in workflows for every one, step by step.

Steer a long job between stages

A stage ends with a result in the chat. The next workflow you run in the same chat starts from that result: Rusty hands it to the first step as context, and that step builds on it instead of starting over.

That gives you a point to intervene between stages. For example:

  1. Run Stage: Research & analyze on "how does sync work". Read the findings.
  2. Reply with your correction, such as "keep the queue, skip the migration, and design the retry fix", and run Stage: Architect & plan. It sees the findings and your correction. Read the plan and edit it in your next message if you want.
  3. Run Stage: Build & verify to carry the plan out, then Stage: Verify & review changes for a second look.

Things to know:

  • The context is the last result in the chat: the most recent assistant result, leaving out step markers and errors. Very long results are cut at about 24,000 characters.
  • Every built-in workflow reads it, so you can start a pipeline after a stage too.
  • A new chat starts clean. Start one when the next job has nothing to do with the last.
  • A single-agent answer counts as a result too, so a stage can build on a quick question you asked first.

Tutorial: audit, then fix what it found

A worked example of the stage-by-stage flow, for a project that needs a security pass.

  1. Choose Stage: Security audit & fix plan and send "audit the API for authentication and authorization problems". Security inspects the code and ranks its findings (S1, S2, …) by severity; Plan turns them into a fix plan. Nothing is changed. Read the result. Anything only you can do, such as rotating an exposed credential, is listed as a follow-up.
  2. Reply with what to include or skip, for example "fix S1 and S3 first; leave the dependency upgrades for later".
  3. In the same chat, choose Stage: Build & verify and send "go ahead". Its Plan step adopts the fix plan from the chat, applies your reply, and updates only what the code shows is out of date.
  4. The Plan approval card opens. Check that the plan covers S1 and S3 and leaves the upgrades out. If one detail is wrong, write it in the notes and choose Approve: the plan is revised and building starts.
  5. Build changes the code and runs the project's checks. Rusty asks before it runs a command, so keep the project open and allow the ones you recognize.
  6. Verify checks every acceptance criterion against the workspace. If one fails, the chat says Acceptance sent the work back, and Build fixes exactly what failed before Verify checks again.
  7. If something can only be checked by a person, for example logging in with a real account, the Manual checks card lists the steps. Try them, then approve, or describe what went wrong and choose Request changes.
  8. Read the result: what was fixed, the outcome for each criterion, and any check you still need to run yourself, with the exact command.

For a bigger job, Security remediation does all of this in one run, builds the fixes one at a time, and ends with a security recheck of every original finding.

Keep chatting after a run

A finished workflow does not end the conversation. Your next message in the same chat keeps the context:

  • A stage that reads the earlier result gets the last result in the chat as context, as described above.
  • A workflow of your own that does not read the context receives your earlier requests and the last result behind your new request, marked as background. A follow-up such as "now fix what you found" does not start from nothing.
  • The Single agent always sees the whole chat.
  • On Auto, Rusty reads your message together with what you asked earlier, then picks a workflow or the single agent by itself. It does not ask.

The Result is saved

A workflow that only reads (research, analysis, plans, reviews) saves its Result when it finishes, as a Markdown file in .rusty/findings/ in your workspace, named by date, time and topic. The file holds the request and the Result, so you can pick the work up later. The chat shows where it went: Result saved to .rusty/findings/….

A run that changes files does not save one, because the changes are the outcome. The single agent does not save one either.

What each step can do

Every step runs under a profile that sets its tools. The profiles fall into three kinds:

  • Reads only. Research, Analyze, Plan, Architect, Security and Review. They read your workspace (and some search the web) but cannot write files or run commands.
  • Runs checks, never edits. Debug and Verify cannot write files. They may run approved, non-destructive commands to reproduce a failure or check a result.
  • Can change files. Build, Refactor, Optimize and Document.

While a chat follows a workflow, the skill menu stays on build and reads tools set per step. Each step's profile decides its tools, and a skill such as plan would otherwise limit what every step can use. Your own skill choice comes back when you switch to Single agent. Permission prompts still apply: commands ask before they run. See Permissions & safety.

A model for each step

With automatic model selection on, a workflow does not run on one model. Each step is rated on its own just before it starts, so Research and Verify can run on a light model while Architect runs on a heavy one, in the same run. See A model for each step.

Let Rusty choose

Choose Auto in the Mode menu and Rusty picks the workflow, or the single agent, for each message. It can also hand a running workflow over to another when what a step found changes the plan. Both are covered in Auto flows.

Make it yours

The built-in workflows are read-only, so they always stay in a known-good state. Choose Customize a copy in the Behaviors tab to get an editable version saved in your workspace, or build your own from scratch. Workflows and profiles are plain JSON.

Esc

Type to search the docs.