When to Use Workflows
| Use | Best for |
|---|---|
| Subagent | One focused side task where only the summary needs to return to the main conversation. |
| Skill | Reusable instructions, domain knowledge, or a process that the main agent should follow. |
| Workflow | Repeatable orchestration across many subagents, phases, branches, or verification passes. |
What Workflows Do
| Capability | Description |
|---|---|
| Scripted orchestration | Keep the loop, branches, phases, and intermediate state in a workflow script. |
| Multi-agent fan-out | Start multiple subagents for independent slices of work. |
| Phased execution | Show progress through named stages such as scan, analyze, verify, and summarize. |
| Parallel or pipelined work | Run independent branches together, or move each item through staged processing. |
| Background execution | Continue using Qoder CLI while the workflow runs. |
| Reusable flows | Save named workflows for project, personal, plugin, or built-in use. |
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
| Scope | Location | Use when |
|---|---|---|
| Project | .qoder/workflows | The workflow belongs to the current repository or team. |
| User | ~/.qoder/workflows | The workflow is personal and should be available across projects. |
| Plugin | Plugin-provided workflows | The workflow is shipped as part of a plugin. |
| Built-in | Qoder CLI built-ins | The workflow is provided by Qoder CLI. |
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.