Describe the work with /workflow-run. OpenCode loads the authoring contract, writes a JavaScript script, and starts the run in the background.
/workflow-run Audit src/auth and src/billing for missing authorization checks. Use VERA reviewers, confirm each finding independently, and return source references.
The run has a stable ID. Your conversation stays available while its agents work. Each worker uses a native OpenCode session with its selected profile, model, and permissions.
- Run
/workflows. - Select a run to open its panel.
- Select a step with the arrow keys and press Enter, or click it, to open its native worker conversation.
You can also open a run's panel from these places:
- The prompt footer. While workflows run, the footer shows a count such as
1 workflow. Click it to open that run's panel. When several runs are active, the click opens the/workflowslist. - The sidebar. The Workflows section lists up to five unfinished runs with their status and step count, such as
running · 1/3 steps. Click a row to open its panel. Finished runs appear only in/workflows. Pressctrl+x bto show or hide the sidebar. The panel takes the sidebar's place. On a narrow terminal, pressctrl+x bagain after you close the panel to bring the sidebar back.
The panel shows phases, step outcomes, verdicts, evidence, retained directories, recorded usage, and the final result. Step counts include work recorded so far; a dynamic script can add more steps. Press f for the full-screen view or Esc to close the panel.
The navigator lists every run owned by the current coordinator session, including completed and failed runs. The detail panel shows one selected run. Other coordinator sessions have their own run lists.
A worker that needs a directory outside its location can ask for your approval in its own conversation. The footer and the Threads list mark it as needing input, and the step waits for your answer. To avoid the prompt, name the directories the task needs in your request; the workflow grants them to a step with paths. Explicit denies in your configuration still apply.
Ask the agent to inspect the run when you need its complete saved script or structured handoffs:
Inspect that workflow and summarize the confirmed findings and missing evidence.
Press p in the run panel to pause new scheduling. Active steps finish before the run becomes paused.
Press x to stop the run and interrupt its active workers. Completed results and worktree directories remain available.
Press r to resume. For a waiting checkpoint, enter a JSON response. For example, enter true, 42, or a quoted string.
After a service restart, reopen the original conversation and select the run with /workflows. Resume reconciles its existing sessions before scheduling more work. It does not assume that an interrupted write left the directory unchanged.
For an uncertain write, ask the agent to inspect the retained worker and directory. Send the resolution request to that same worker. After the worker reports and finishes, resume the run. Use the recovery contract for crash and legacy-journal limits.
- Select its run in
/workflows. - Press
s. - Enter a new name.
- Select Project or User.
The saved file contains the script. Run arguments and worker conversations stay in the original run. Existing files are not overwritten.
Invoke /workflow-<name> to reuse the script with new input. Project scripts live in .opencode/workflows/. Personal scripts live in the workflows/ directory under your OpenCode configuration.
An edited script starts a new run. A run's script and arguments remain fixed so resuming it cannot silently reuse results from different instructions.
After editing a saved file directly, run /workflow-refresh to reload its command. The names run and refresh are reserved.
Ask for VERA when the task needs its engineering and evidence rules. The workflow chooses configured role IDs such as vera-engineer and vera-auditor-readonly; /setup-vera remains the place to change their models.
Keep an implementation and its runtime verification on the same retained worktree. Give the auditor the changed paths and verification evidence. The root conversation inspects the artifacts and owns integration and the final verdict.
- For script syntax, limits, tools, and recovery rules, read the runtime contract.
- To change default limits, see server options.
- For measured throughput and safe operating limits, see capacity findings.