Mastra adds background tasks for agents
Mastra announced background tasks on May 7, 2026, a new configuration option that lets tools run asynchronously so agents can stream progress before, during, and after long-running tool calls. The feature works at the instance, tool, or agent level, requires persistent storage, and supports parallel background tool execution. It is available in `@mastra/core@1.29.0` or later.
This is a solid agent-runtime upgrade: it improves responsiveness without forcing developers to redesign their workflows around blocking tool calls.
- –The main value is UX, not just infrastructure: agents can keep talking while work happens in the background.
- –The parallel background-tool behavior is especially useful for multi-tool research or orchestration flows.
- –The storage requirement matters because this is really about resumable, stateful execution, not just async callbacks.
- –Requiring `@mastra/core@1.29.0` or later makes this a versioned platform capability rather than a loose example pattern.
DISCOVERED
2h ago
2026-05-07
PUBLISHED
2h ago
2026-05-07
RELEVANCE
AUTHOR
mastra