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