Multi-Agent Workflow Guide
Scheduling
Goal
Guide manual multi-agent coordination for complex work that spans PM, frontend, backend, mobile, and QA responsibilities.
Intent signature
- User wants step-by-step coordination, manual agent spawning, or multi-domain work planning without full automation.
- Task spans multiple specialist agents and requires contract alignment.
When to use
- Complex feature spanning multiple domains (full-stack, mobile)
- Coordination needed between frontend, backend, mobile, and QA
- User wants step-by-step guidance for multi-agent coordination
When NOT to use
- Simple single-domain task -> use the specific agent directly
- User wants automated execution -> use orchestrator
- Quick bug fixes or minor changes
Expected inputs
- Complex feature or project goal
- Required domains and priority tiers
- Workspace/session constraints and API/data contract needs
Expected outputs
- Manual coordination sequence
- PM task decomposition, agent spawn order, monitoring guidance, and QA review step
- API/data contract alignment checkpoints
Dependencies
- PM, frontend, backend, mobile, QA, and orchestrator skills
- CLI
oma agent spawn and progress/result memory conventions
Control-flow features
- Branches by task complexity, priority tiers, dependency ordering, and whether automation is desired
- Spawns independent same-priority tasks in parallel when appropriate
- Monitors progress files and contract alignment
Structural Flow
Entry
- Confirm the task is complex enough for multi-agent coordination.
- Start with PM task decomposition.
- Identify priority tiers and shared contracts.
Scenes
- PREPARE: Define session, domains, and task decomposition needs.
- ACT: Spawn agents by priority with separate workspaces.
- VERIFY: Monitor progress and API/data contract alignment.
- FINALIZE: Run QA review and coordinate remediation.
Transitions
- If task is simple, route to one specialist.
- If user wants automated execution, use orchestrator.
- If QA finds CRITICAL issues, re-spawn responsible agents.
Failure and recovery
- If contracts diverge, pause downstream frontend/mobile work until backend/API contract is reconciled.
- If agent workspaces conflict, split ownership boundaries.
- If progress stalls, inspect progress files and reissue focused instructions.
Exit
- Success: specialist outputs are coordinated and QA-reviewed.
- Partial success: blocked agents, contract conflicts, or QA failures are explicit.
Logical Operations
Actions
| Action |
SSL primitive |
Evidence |
| Read request and domains |
READ |
User prompt and project context |
| Select agent plan |
SELECT |
PM decomposition and priority tiers |
| Spawn agents |
CALL_TOOL |
oma agent spawn |
| Monitor progress |
READ |
progress-{agent}[-{sessionId}].md |
| Validate contracts |
VALIDATE |
API/data model alignment |
| Notify coordination status |
NOTIFY |
Final coordination summary |
Tools and instruments
oma agent spawn, PM/frontend/backend/mobile/QA agents
- Memory/progress/result files
- Serena MCP for exploration and modification when used by specialists
Canonical command path
oma agent spawn pm "<planning task>" <session-id> -w ./pm
oma agent spawn backend "<backend task>" <session-id> -w ./backend &
oma agent spawn frontend "<frontend task>" <session-id> -w ./frontend &
wait
When native runtime dispatch is available (per-agent target vendor equals the current runtime vendor), prefer the runtime's native subagent path and use oma agent spawn as the cross-vendor fallback — same resolution rule as oma-orchestration.
Useful agent spawn options: -m/--model <vendor> (CLI vendor override), --isolation worktree (git worktree per spawn, prevents file conflicts), --read-only (non-destructive tools only, e.g. for review/QA passes).
Resource scope
| Scope |
Resource target |
LOCAL_FS |
Progress/result files and workspaces |
PROCESS |
Agent spawn commands |
MEMORY |
Session state and task board |
CODEBASE |
Shared contracts and implementation areas |
Preconditions
- Task requires multiple domains.
- PM decomposition can identify independent priority tiers.
Effects and side effects
- Spawns or guides multiple agents.
- Coordinates workspace ownership and QA feedback.
Guardrails
- Always start with PM Agent for task decomposition
- Spawn independent tasks in parallel (same priority tier)
- Define API contracts before frontend/mobile tasks
- QA review is always the final step
- Assign separate workspaces to avoid file conflicts (or use
--isolation worktree for a git worktree per spawn)
- Always use Serena MCP tools as the primary method for code exploration and modification
- Never skip steps in the workflow; follow each step sequentially without omission
Workflow
Step 1: Plan with PM Agent
PM Agent analyzes requirements, selects tech stack, creates task breakdown with priorities.
Step 2: Spawn Agents by Priority
Resolve the dispatch path per agent, then spawn:
- Resolve the per-agent target vendor from oma-config.yaml (
agents: override, else model_preset)
- If the target vendor equals the current runtime vendor and a native subagent path exists, use native dispatch
- Otherwise use
oma agent spawn for that agent
- Spawn all same-priority tasks in parallel using background processes
# Example: spawn backend and frontend in parallel
oma agent spawn backend "task description" session-id -w ./backend &
oma agent spawn frontend "task description" session-id -w ./frontend &
wait
Step 3: Monitor & Coordinate
- Use memory read tool to poll
progress-{agent}[-{sessionId}].md files (spawned agents write the session-suffixed form)
- Verify API contracts align between agents
- Ensure shared data models are consistent
Step 4: QA Review
Spawn QA Agent last to review all deliverables. Address CRITICAL issues by re-spawning agents.
Automated Alternative
For fully automated execution without manual spawning, use the orchestrator skill instead.
References
1---2name: oma-coordination3description: Guide for coordinating PM, Frontend, Backend, Mobile, and QA agents on complex projects via CLI. Use for manual step-by-step coordination and workflow guidance.4---5
6# Multi-Agent Workflow Guide
7
8## Scheduling
9
10### Goal
11Guide manual multi-agent coordination for complex work that spans PM, frontend, backend, mobile, and QA responsibilities.
12
13### Intent signature
14- User wants step-by-step coordination, manual agent spawning, or multi-domain work planning without full automation.
15- Task spans multiple specialist agents and requires contract alignment.
16
17### When to use
18
19- Complex feature spanning multiple domains (full-stack, mobile)
20- Coordination needed between frontend, backend, mobile, and QA
21- User wants step-by-step guidance for multi-agent coordination
22
23### When NOT to use
24
25- Simple single-domain task -> use the specific agent directly
26- User wants automated execution -> use orchestrator
27- Quick bug fixes or minor changes
28
29### Expected inputs
30- Complex feature or project goal
31- Required domains and priority tiers
32- Workspace/session constraints and API/data contract needs
33
34### Expected outputs
35- Manual coordination sequence
36- PM task decomposition, agent spawn order, monitoring guidance, and QA review step
37- API/data contract alignment checkpoints
38
39### Dependencies
40- PM, frontend, backend, mobile, QA, and orchestrator skills
41- CLI `oma agent spawn` and progress/result memory conventions
42
43### Control-flow features
44- Branches by task complexity, priority tiers, dependency ordering, and whether automation is desired
45- Spawns independent same-priority tasks in parallel when appropriate
46- Monitors progress files and contract alignment
47
48## Structural Flow
49
50### Entry
511. Confirm the task is complex enough for multi-agent coordination.
522. Start with PM task decomposition.
533. Identify priority tiers and shared contracts.
54
55### Scenes
561. **PREPARE**: Define session, domains, and task decomposition needs.
572. **ACT**: Spawn agents by priority with separate workspaces.
583. **VERIFY**: Monitor progress and API/data contract alignment.
594. **FINALIZE**: Run QA review and coordinate remediation.
60
61### Transitions
62- If task is simple, route to one specialist.
63- If user wants automated execution, use orchestrator.
64- If QA finds CRITICAL issues, re-spawn responsible agents.
65
66### Failure and recovery
67- If contracts diverge, pause downstream frontend/mobile work until backend/API contract is reconciled.
68- If agent workspaces conflict, split ownership boundaries.
69- If progress stalls, inspect progress files and reissue focused instructions.
70
71### Exit
72- Success: specialist outputs are coordinated and QA-reviewed.
73- Partial success: blocked agents, contract conflicts, or QA failures are explicit.
74
75## Logical Operations
76
77### Actions
78| Action | SSL primitive | Evidence |
79|--------|---------------|----------|
80| Read request and domains | `READ` | User prompt and project context |
81| Select agent plan | `SELECT` | PM decomposition and priority tiers |
82| Spawn agents | `CALL_TOOL` | `oma agent spawn` |
83| Monitor progress | `READ` | `progress-{agent}[-{sessionId}].md` |
84| Validate contracts | `VALIDATE` | API/data model alignment |
85| Notify coordination status | `NOTIFY` | Final coordination summary |
86
87### Tools and instruments
88- `oma agent spawn`, PM/frontend/backend/mobile/QA agents
89- Memory/progress/result files
90- Serena MCP for exploration and modification when used by specialists
91
92### Canonical command path
93```bash
94oma agent spawn pm "<planning task>" <session-id> -w ./pm
95oma agent spawn backend "<backend task>" <session-id> -w ./backend &
96oma agent spawn frontend "<frontend task>" <session-id> -w ./frontend &
97wait
98```
99
100When native runtime dispatch is available (per-agent target vendor equals the current runtime vendor), prefer the runtime's native subagent path and use `oma agent spawn` as the cross-vendor fallback — same resolution rule as oma-orchestration.
101
102Useful `agent spawn` options: `-m/--model <vendor>` (CLI vendor override), `--isolation worktree` (git worktree per spawn, prevents file conflicts), `--read-only` (non-destructive tools only, e.g. for review/QA passes).
103
104### Resource scope
105| Scope | Resource target |
106|-------|-----------------|
107| `LOCAL_FS` | Progress/result files and workspaces |
108| `PROCESS` | Agent spawn commands |
109| `MEMORY` | Session state and task board |
110| `CODEBASE` | Shared contracts and implementation areas |
111
112### Preconditions
113- Task requires multiple domains.
114- PM decomposition can identify independent priority tiers.
115
116### Effects and side effects
117- Spawns or guides multiple agents.
118- Coordinates workspace ownership and QA feedback.
119
120### Guardrails
121
1221. Always start with PM Agent for task decomposition
1232. Spawn independent tasks in parallel (same priority tier)
1243. Define API contracts before frontend/mobile tasks
1254. QA review is always the final step
1265. Assign separate workspaces to avoid file conflicts (or use `--isolation worktree` for a git worktree per spawn)
1276. Always use Serena MCP tools as the primary method for code exploration and modification
1287. Never skip steps in the workflow; follow each step sequentially without omission
129
130### Workflow
131
132#### Step 1: Plan with PM Agent
133
134PM Agent analyzes requirements, selects tech stack, creates task breakdown with priorities.
135
136#### Step 2: Spawn Agents by Priority
137
138Resolve the dispatch path per agent, then spawn:
139
1401. Resolve the per-agent target vendor from oma-config.yaml (`agents:` override, else `model_preset`)
1412. If the target vendor equals the current runtime vendor and a native subagent path exists, use native dispatch
1423. Otherwise use `oma agent spawn` for that agent
1434. Spawn all same-priority tasks in parallel using background processes
144
145```bash
146# Example: spawn backend and frontend in parallel
147oma agent spawn backend "task description" session-id -w ./backend &
148oma agent spawn frontend "task description" session-id -w ./frontend &
149wait
150```
151
152#### Step 3: Monitor & Coordinate
153
154- Use memory read tool to poll `progress-{agent}[-{sessionId}].md` files (spawned agents write the session-suffixed form)
155- Verify API contracts align between agents
156- Ensure shared data models are consistent
157
158#### Step 4: QA Review
159
160Spawn QA Agent last to review all deliverables. Address CRITICAL issues by re-spawning agents.
161
162### Automated Alternative
163
164For fully automated execution without manual spawning, use the **orchestrator** skill instead.
165
166## References