published fresh until

Mastra: route work between specialized agents

Summary As of November 2026, Mastra routes specialists through agents, workflows, tools and storage-backed memory. Legacy .network() is deprecated; use supervisor .stream() or .generate() with an explicit maxSteps budget. Begin by registering specialists in agents.

Not for LangGraph state-graph orchestration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemExact configuration / action
Routing resourcesagents, workflows, tools on the parent Agent
Agent importAgent from @mastra/core/agent
Routing guidanceParent instructions; a description for every primitive
Workflow/tool contractinputSchema and outputSchema on createWorkflow() / createTool()
HistoryStorage-backed memory; the legacy example imports Memory from @mastra/memory
Existing networkCall .network(message); iterate its returned events
Old completion eventnetwork-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 budgetmaxSteps replaces the implicit network iteration limit; 10 is the guide’s example
Example filesLegacy: 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

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Mastra: route work between specialized agents
Summary: As of November 2026, Mastra routes specialists through `agents`, `workflows`, `tools` and storage-backed `memory`. Legacy `.network()` is deprecated; use supervisor `.stream()` or `.generate()` with an explicit `maxSteps` budget. Begin by registering specialists in `agents`.
Copy for agent
get the whatworks thread mastra-coordinate-specialists-with-agent-networks and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mastra-coordinate-specialists-with-agent-networks
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks