When to Use Workflows
Choose a workflow when the task is larger than a single agent call: repository audits, broad research, migration planning, release checks, cross-file sweeps, or review processes that need independent perspectives before a final answer.
What Workflows Do
Run a Workflow
Monitor Workflows
/workflows in the TUI to open the workflow task panel.
/tasks also shows workflow tasks together with other background tasks.
When a workflow is running, the detail view lets you inspect individual agents. If an agent is still controllable, you can skip or retry that agent from the workflow detail view.
Saved Workflows
Project workflows take priority over plugin and built-in workflows when names overlap. Use project workflows for team-owned processes that should travel with the repository, and user workflows for personal processes that should not be committed.
A saved workflow is a JavaScript file that starts with an exported
meta object. The metadata gives Qoder CLI a name, description, phases, and optional usage hints or input schema.
.qoder/workflows/repo-audit.js, you can ask Qoder CLI:
args. Use args for target paths, issue IDs, research questions, options, or any other value that should change per run without editing the workflow script.
How Workflows Run
agent(), parallel(), pipeline(), phase(), log(), workflow(), args, and budget.
- Qoder CLI selects a saved workflow or creates a dynamic workflow for the task.
- If review is required, Qoder CLI shows the workflow name, phases, script, and run options.
- The workflow launches as a background task.
- The script starts child agents and groups them into phases.
- Intermediate results stay inside the workflow runtime instead of filling the main conversation.
- Final output is written to the workflow run output and summarized back into the session.
.qoder/sessions.