DocsWorkflows
Built-in workflows
Every workflow and profile that ships with Rusty, what each step does, when to use it, and what it hands over to.
Rusty ships 12 profiles and 20 workflows, available in every project without any setup. The built-in ones are read-only: choose Customize a copy in the Behaviors tab to change one. For how workflows work in general, see Workflows.
On this page a step's profile is described by what it can do:
- Reads only. Reads the workspace (some also search the web). Cannot write files or run commands.
- Runs checks, never edits. Cannot write files. May run approved, non-destructive commands.
- Can change files.
Built-in profiles
Each profile has one responsibility, so a workflow can give each step only what it needs. A step's profile, not the chat's skill, sets its tools.
| Profile | What it does | What it can do |
|---|---|---|
| Research | Investigates external sources and workspace context to produce sourced options and recommendations. | Reads only. Reads the workspace and searches the web. |
| Analyze | Explains how the current code works, where a change belongs, and what it may affect. | Reads only. Workspace only. |
| Plan | Turns requirements and code findings into an ordered implementation plan. | Reads only. Reads the workspace and searches the web. |
| Architect | Designs components, contracts, data flow and failure handling with explicit trade-offs. | Reads only. Reads the workspace and searches the web. |
| Debug | Reproduces failures, tests hypotheses and identifies the root cause. | Runs checks, never edits. May run approved commands to reproduce. |
| Build | Implements an approved change and checks the result before reporting. | Can change files. Runs focused checks for its assigned task. |
| Verify | Independently checks completed work against the request, plan and actual workspace. | Runs checks, never edits. May run approved checks. |
| Review | Finds correctness and maintainability issues and returns prioritized, actionable feedback. | Reads only. Cannot run commands. |
| Security | Audits trust boundaries, data handling, dependencies and configuration for exploitable risks. | Reads only. Reads the workspace and searches the web. |
| Document | Creates accurate documentation and examples grounded in the current implementation. | Can write files and run the project's checks; cannot run other commands. Its instructions limit writing to documentation files. |
| Refactor | Improves internal structure while preserving observable behavior. | Can change files. Runs focused checks for its assigned task. |
| Optimize | Improves measurable performance using baseline and after-change evidence. | Can change files. Runs focused checks for its assigned task. |
Profiles use explicit tool allow lists. Reviewers can inspect files but cannot edit or run commands. Profiles supply role boundaries; workflow nodes supply scope. The editing profiles (Build, Refactor, Optimize, Debug and Verify) can also search the web, so a failed download or a missing tool can be looked up and fixed. Each profile's completion gate requires real tool activity before the agent may finish (Plan must have read the code, Build must have run a check after its last edit), and acceptance steps judge Verify's criteria one by one.
Stages
Stages are focused runs that stop at a written result. Run the next stage in the same chat and it builds on that result. Auto can choose any of them. See Auto flows.
Research & analyze
Research → Analyze. Reads only.
Use it to understand how some existing functionality works, or to compare options, before deciding anything. Research gathers sourced options, trade-offs and a recommendation. Analyze then ties them to how your code actually works.
You get a research brief with sources, then an analysis with file and symbol references, the flow of data and control, risks, and the likely change surface.
Try: How does sync work, and what are my options for making retries safer?
With flow switching on, it can hand over to Debug & plan a fix or Security audit & fix plan.
Architect & plan
Architect → Plan. Reads only.
Use it to turn findings, or a clear requirement, into a design and then an ordered plan, before any code is written. Architect compares at least two alternatives and recommends the simplest design that fits. Plan turns the design into steps another session can carry out.
You get a design (components, contracts, data flow, failure behavior, alternatives rejected) and a plan of numbered steps, each naming the files and symbols to change and an observable acceptance check.
Try: Design the retry fix: one policy in the queue worker.
Hands over to: Research & analyze, Debug & plan a fix.
Debug & plan a fix
Debug → Plan. Cannot edit files.
Use it when something is broken: an error, a failing test, wrong behavior or a regression. Debug establishes expected versus actual behavior, finds the smallest reliable reproduction and names the root cause. Plan turns the recommended fix into steps. Nothing is edited.
You get a diagnosis (reproduction, evidence, hypotheses tested, root cause, the smallest safe fix, the regression test that should cover it) and a fix plan.
Try: Saving a file twice sometimes duplicates it. Find out why.
Hands over to: Research & analyze, Security audit & fix plan.
Security audit & fix plan
Security → Plan. Reads only.
Use it when you want to know whether code is secure. Security identifies the assets and trust boundaries, then inspects input handling, authentication and authorization, secrets, filesystem, network and command boundaries, dependencies and configuration. Plan orders the fixes by severity.
You get findings ranked by likelihood and impact, each with evidence, an attack scenario and a remediation, then a remediation plan.
Try: Audit the upload endpoint.
Hands over to: Debug & plan a fix.
Verify & review changes
Review → Verify. Cannot edit files.
Use it to independently check work that is already done, yours or an earlier run's. Review first looks for correctness problems, edge cases, regressions and missing tests. Verify then runs appropriate checks and reports what it verified and what it could not.
You get a verdict and prioritized findings, each with a severity, the exact file and symbol, the impact and a concrete fix.
Try: Check the changes I just made to the sync queue.
Hands over to: Debug & plan a fix, Security audit & fix plan.
Build & verify
Plan → you approve → Build → Verify → acceptance → manual checks. Can change files.
Use it to carry out an approved plan or a clearly scoped request. If the chat already holds a plan or design you agreed to (from Architect & plan, Debug & plan a fix or Security audit & fix plan), Plan adopts it and only updates what the code shows is out of date; otherwise it writes one from the request. You approve the plan, Build implements it, and Verify checks every acceptance criterion against the workspace.
You get Verify's summary: what was built, the outcome for each acceptance criterion, what you still need to check by hand, and follow-ups.
Try: Go ahead and build it.
Because it can change files, Auto announces that when it starts it (· can change files); it does not ask first. It hands over to Debug & plan a fix or Security audit & fix plan.
Pipelines
Pipelines run a whole job. Auto never starts one by itself: choose one from the Mode menu. All of them can change files, and all of them ask you to approve the plan first.
The Verify loop
Every editing workflow runs the same loop. Each step is told where it stands in the workflow, what the steps before it handed over, and who reads its result. For the mechanics behind it, see How workflows work.
Plan writes requirements with numbered acceptance criteria, and the tasks that change the code. Work that only someone outside the workspace can do (rotating credentials, deployments, rewriting history) stays out of the tasks and is listed in its summary as follow-ups for you.
You approve the plan before anything is built. Approve starts building. Write notes and choose Approve to have the plan revised with your notes first; building then starts without asking you again. Request changes revises the plan and shows it to you again. Build, Verify and the final review all work from the plan as you approved it and also see your notes: where your notes, the plan and your original request disagree, your notes win.
Build implements the plan. If a command fails, it reads the output and tries another way (an installed mvn, another download URL, a web search for the error) rather than stopping, and a check that really cannot run is reported with the exact command for you to run. In Research, design & build, High-risk change, Security remediation and Refactor safely, the plan's tasks are built one at a time, each by a fresh builder and checked by a reviewer before the next one starts.
Verify checks every acceptance criterion against the real workspace, reading the changed code and running the project's checks, and reports each one as pass, fail or manual. The acceptance gate sends any failure back to Build with Verify's evidence as its repair list. Build can be entered up to three times, and a run may make at most 40 step attempts in total. A step that shows no sign of life for 10 minutes is cancelled and retried; waiting for you does not count.
Manual checks come last: whatever only a person can check (a device, a real service, a visual result) is listed for you with exact steps. Approve when it works. If it does not, describe what you saw and choose Request changes: the work goes back to Build with your description and is verified again. Pipelines with a final review or a security recheck ask for that step's own manual checks separately, and only when it has any.
Steps pass each other plain Markdown. Rusty reads the reply itself: a missing status is inferred, a missing summary falls back to the reply text, requirement and task IDs are numbered for you, and an unclear result counts as unverified, never as a pass. A step does not fail because a heading or an ID is missing.
Successful checks can be reused within the run only when their command, selection and workspace fingerprint match. Missing or changing fingerprints force execution. Use fresh checks when results depend on remote services or other external state. No live-model speedup is implied by this reuse policy.
All built-ins can retrieve the complete earlier conversation and handover through a paged context tool. The run trajectory captures effective native model requests after application instructions have been applied, with credential redaction. Large requests are saved as ordered parts, so the trace does not silently lose the end of the prompt.
Reading the step lists
Each pipeline below lists its steps in the order they run. You approve is the plan approval card, acceptance is the check on Verify's criteria that sends failed work back, and manual checks is the card that lists what only a person can try, shown only when there is something to try. Task by task means the plan's tasks are built one at a time by fresh builders, each checked by a reviewer (see Task queues).
Plan, build, verify
Plan → you approve → Build → Verify → acceptance → manual checks. Can change files.
The everyday choice for a change whose path is clear. Plan investigates read-only and writes requirements, acceptance criteria and tasks; you approve the plan; Build implements it and runs the project's checks; Verify checks every criterion against the workspace and sends failures back to Build.
Try: Add a "copy path" item to the file tree's context menu.
Hands over to: Research & analyze, Debug & plan a fix, Security audit & fix plan.
Analyze, plan & build
Analyze → Plan → you approve → Build → Verify → acceptance → manual checks. Can change files.
For a change to existing code that should be understood first. Analyze maps how the code works today: the files and symbols, the data and control flow, the change surface, the tests and the risks. Plan builds on that analysis, using the patterns and test locations it found.
Try: Make the settings store save in the background instead of on every keystroke.
Hands over to: Debug & plan a fix, Architect & plan.
Research, design & build
Research → Architect → Plan → you approve → Build, task by task → Verify → acceptance → manual checks. Can change files.
For a feature that rests on unfamiliar libraries, standards or architectural choices. Research gathers sourced options and a recommendation, Architect designs the solution (interfaces, data shapes, boundaries, and why), and Plan breaks the design into small tasks in the Architect's order of work. Each builder follows the design and says what differs when the code makes part of it impossible.
Try: Add OAuth device-flow sign-in for the GitHub integration.
Hands over to: Debug & plan a fix, Security audit & fix plan.
Fix a bug
Debug → Plan → you approve → Build → Verify → acceptance → manual checks. Can change files.
Fixes a failure end to end. Debug reproduces it and finds the root cause. Plan's first task is the regression test the diagnosis specifies, which fails today; the next fixes the cause. Build writes the test, runs it to see it fail for the diagnosed reason, fixes the code, and runs it again to see it pass. Verify confirms the test exercises the reported failure, that the fix addresses the root cause rather than hiding the symptom, and that the tests around it still pass.
Try: Saving a file twice sometimes duplicates it. Fix it.
Hands over to: Research & analyze, Security audit & fix plan.
High-risk change
Analyze → Plan → you approve → Build, task by task → Verify → acceptance → Final review → acceptance → manual checks → final review's manual checks. Can change files.
For changes where mistakes are expensive: shared code, data formats, public interfaces. Analyze maps the blast radius. Plan keeps every task small and safe on its own, puts tests that pin current behavior before the change that could break it, and makes compatibility and rollback explicit criteria. After Verify, a Final review looks at the change as a whole for risk: callers that may break, data compatibility and migrations, partial failure, concurrency, and whether a rollback is possible. A problem it finds sends the work back to Build, then through Verify and the final review again.
Try: Change the chat file format to store attachments separately, and keep old chats loading.
Hands over to: Debug & plan a fix, Security audit & fix plan.
Security remediation
Security audit → Plan → you approve → Build, task by task → Verify → acceptance → Security acceptance → acceptance → manual checks → security acceptance checks. Can change files.
Audit, fix, then re-audit. The audit ranks confirmed findings by severity (S1, S2, …). Plan makes each one a requirement whose acceptance criterion proves the exploit no longer works, highest severity first. Each fix is built at the trust boundary, not only at one call site, with a test that shows the exploit fails where that is feasible. Security acceptance then takes each original finding by its id, confirms it is fixed, looks for bypasses and partial fixes, and checks the fixes introduced no new risk. Anything that needs action outside the workspace, such as rotating a leaked secret, is a manual check with exact steps.
Try: Find and fix authorization problems in the API routes.
Hands over to: Debug & plan a fix.
Refactor safely
Analyze → Plan → you approve → Refactor, task by task → Verify → acceptance → Final review → acceptance → manual checks → final review's manual checks. Can change files.
Restructures code without changing what it does. Analyze pins the behavior and interfaces that must stay the same. Plan puts tests that pin uncovered behavior first, and every task keeps the project building and the tests passing. The Refactor profile runs the tests before and after each change, and may change a test only for an interface change the plan names. The Final review compares old and new code paths and checks every caller still gets the same results and errors: a behavior change the plan did not call for sends the work back.
Try: Split the 1,300-line AgentTab component into smaller components without changing behavior.
Hands over to: Debug & plan a fix, Security audit & fix plan.
Optimize performance
Analyze → Plan → you approve → Optimize → Verify → acceptance → manual checks. Can change files.
Makes something measurably faster or lighter. Analyze finds the candidate bottleneck and how to measure it. Plan makes the measurement part of the plan: a baseline with the exact command, the change, then the same measurement again, with each target stated against the baseline. Optimize measures before and after and reports both numbers from real runs only. Verify checks the numbers come from the same command and conditions, reruns the measurement if it can, and runs the tests: a claimed improvement without a real measurement fails.
Try: Opening a large folder is slow. Make the file tree load faster.
Hands over to: Research & analyze, Debug & plan a fix.
Write documentation
Analyze → Plan → you approve → Document → Verify → acceptance → Final review → acceptance → manual checks → final review's manual checks. Can change files.
Writes or updates documentation from the code itself. Analyze finds the gaps and the source of truth. Plan names each document or section, where it lives and who it is for. Document writes for that audience, checks every name, option and default against the code, and runs the examples where it can. Verify checks the same against the code (wrong or stale documentation fails), and the Final review reads the docs as their audience would.
Try: Document the configuration options of the MCP integration for users.
Hands over to: Research & analyze.
Spec workflows
Five workflows run the steps of spec-driven development. They work on a change folder under specs/, write their results into it, and are started from the Specs page in the Documentation tab. They have no route, so Auto never picks them, and they never hand over to another workflow.
Survey the project
Analyze → Write project file → List capabilities. Reads only.
Reads the repository (or your description of a new project) and writes specs/project.md and specs/onboarding.md, a list of the capabilities it found with a purpose and the paths to read for each. Writes no capability spec: you review the list first. See Onboarding an existing project.
Write a capability spec
Analyze → Write capability spec. Reads only.
Writes the spec of one capability from the survey's list: it reads the code at the listed paths and its tests, then writes named requirements with WHEN … THEN scenarios, without covering the other capabilities' ground. One run per capability, started from the Project page.
Specify a change
Analyze → Clarify → Write spec → Checklist. Reads only.
Reads the project file, the existing capabilities and the code, then sorts what it learned into decided, assumed and unknown. Clarify settles what the code can answer and ranks the few questions only you can answer, each with a recommended answer. The spec is then written with requirements, ids and criteria in WHEN … THEN form, a Capability: line for each, the assumptions taken and the open questions, and checked once against its own rules before it is saved. Checklist then tests the spec's quality with questions about the writing (complete, clear, consistent, measurable, edge cases covered), ticks the ones the spec answers and saves them as checklist.md. Open items are counted on the Specs page and read by Design & tasks. Run again to revise both.
Design & tasks for a spec
Design → Check → Tasks. Reads only.
Writes design.md (with a check against the project's principles). Check then compares spec and design: every criterion needs a part of the design and a test, and gaps and conflicts are rated Blocker, Important or Minor. Tasks writes tasks.md with that report in hand: small ordered tasks that each name the requirements and criteria they satisfy.
Implement a spec
Build (a step plan, a builder and a review for each unticked task) → Verify → acceptance → manual checks. Can change files.
Has no Plan step and no plan approval: the plan is the change folder. Builds the tasks that are not ticked, then Verify checks every criterion of the spec. The finished tasks are ticked in tasks.md, each gets a document under tasks/, and verification.md and the change's status are updated. See Implement.
Where they live
The built-in workflows and profiles are part of the app, not files in your workspace, and appear in the Behaviors tab tagged Built-in. Their IDs start with rusty-ide.builtin.. A copy you customize is saved in .rusty/workflows/ and .rusty/profiles/. See Profiles & workflows for the format.