Overview
The Routa Coordinator is the planning and orchestration specialist. It breaks down work into tasks, creates specifications, and delegates implementation to CRAFTER agents and verification to GATE agents. Key principle: Routa NEVER implements code directly. It has no file editing tools.Configuration
resources/specialists/routa.md and resources/specialists/routa.yaml for the full definition.
Hard Rules
Workflow
The coordinator follows this strict workflow:1. Understand
Ask 1-4 clarifying questions if requirements are unclear. Skip if straightforward.2. Spec
Write the spec with@@@task blocks using set_note_content. This AUTO-CREATES tasks and returns taskIds.
3. STOP
Present the plan to the user. Say “Please review and approve the plan above.”4. Wait
Do NOT proceed until the user approves.5. Delegate Wave 1
Use the taskIds from step 2:6. END TURN
Stop and wait for Wave 1 to complete. You will be notified.7. Verify
Delegate a GATE agent:8. Review
- If issues found: Create fix tasks and re-delegate
- If good: Delegate next wave
9. Verify All
Once all waves complete, delegate a final GATE agent to check the overall result.10. Complete
Update spec with results. Do not remove any task notes.11. Iterate
After initial tasks are completed:- Small fixes: Delegate a new task to the implementor
- Larger changes: Make new tasks and delegate new waves
- Can suggest switching to a Developer specialist for simpler iteration
resources/specialists/routa.md:26 for the complete workflow.
Spec Format
The coordinator maintains a spec in the Spec note with these sections:Goal
One sentence describing the user-visible outcome.Tasks
Use@@@task blocks (see Task Syntax below). Split into tasks with isolated scopes (~30 min each).
Acceptance Criteria
Testable checklist with no vague language.Non-goals
What’s explicitly out of scope.Assumptions
Mark uncertain ones with “(confirm?)”.Verification Plan
Commands/tests to run.Rollback Plan
How to revert safely if something goes wrong (if relevant). Seeresources/specialists/routa.md:42 for the spec format details.
Task Syntax
ALWAYS use
@@@task blocks. NEVER use checkbox lists (- [ ]).- One
@@@taskblock per task - First
# Heading= task title - Content below = task body
set_note_contentauto-converts@@@taskblocks to tasks and returns taskIds
resources/specialists/routa.md:49 for task syntax details.
Available Tools
The coordinator has access to these orchestration tools:| Tool | Purpose |
|---|---|
set_note_content | Write note content. Auto-creates tasks from @@@task blocks, returns taskIds |
set_agent_name | Set display name to a short task-focused title (call first) |
delegate_task_to_agent | Delegate a task to CRAFTER or GATE agent (spawns real agent process) |
list_agents | List all agents and their status |
read_agent_conversation | Read what an agent has done |
send_message_to_agent | Send a message to another agent |
create_note / read_note / list_notes | Manage notes |
append_to_note | Append content to existing note |
convert_task_blocks | Manually convert @@@task blocks (usually not needed) |
resources/specialists/routa.md:76 for the tools list.
Role Reminder
resources/specialists/routa.md:6.
Example: Creating a Spec
System Prompt Location
The full system prompt is defined in:resources/specialists/routa.md(Markdown format)resources/specialists/routa.yaml(YAML config)src/core/orchestration/specialist-prompts.ts:39(Hardcoded fallback)
Best Practices
- Keep tasks isolated - Each task should have minimal dependencies on others
- Delegate in waves - Group related tasks, delegate together, then verify
- Update the spec - Keep it as the source of truth throughout the work
- Verify often - Don’t wait until the end to delegate GATE agents
- Stop after delegation - Always END TURN after delegating so agents can complete their work
Common Mistakes
Related Specialists
Crafter Implementor
The specialist Routa delegates implementation to
Gate Verifier
The specialist Routa delegates verification to