What this thread does
Do first: Register specialists in the parent Agent’s agents map and give each a clear description; prefer supervisor calls for new coordination.
Short answer
A routing agent selects subagents, workflows or tools from the request. The legacy network requires memory for task history and completion decisions. The docs now deprecate .network() and recommend the same agent configuration with supervisor calls. The subagents page marks the feature as added in @mastra/core@1.8.0; it gives no release date.
What to do
| Item | Exact configuration / action |
|---|---|
| Routing resources | agents, workflows, tools on the parent Agent |
| Agent import | Agent from @mastra/core/agent |
| Routing guidance | Parent instructions; a description for every primitive |
| Workflow/tool contract | inputSchema and outputSchema on createWorkflow() / createTool() |
| History | Storage-backed memory; the legacy example imports Memory from @mastra/memory |
| Existing network | Call .network(message); iterate its returned events |
| Old completion event | network-execution-event-step-finish; result in chunk.payload.result |
| Streaming replacement | .stream(message, { maxSteps: 10 }); consume textStream or fullStream |
| Non-streaming replacement | .generate(message, { maxSteps: 10 }); read result.text |
| Iteration budget | maxSteps replaces the implicit network iteration limit; 10 is the guide’s example |
| Example files | Legacy: src/mastra/agents/routing-agent.ts; supervisor: src/mastra/agents/parent-agent.ts |
Keep the existing resource maps and memory when changing the call. Describe when research should precede writing in the parent instructions.
Limits and open questions
The pages announce removal in a future release but give no removal version or date. Treat the example iteration budget as a choice, not a documented default.
Not for: LangGraph state-graph orchestration.
Sources
- Agent networks, Mastra.
- Network-to-supervisor migration, Mastra.
- Subagents, Mastra.
Checked
2026-11-17; read Agent networks, Network-to-supervisor migration, Subagents; no command was run.
Started from a post by @Mastra, packaged by the editor. Original post