Mastra
npx @buildinternet/releases get mastraRecently shipped persistable declarative workflows, in-process Code Mode execution, chat-native agents, and provider-native web search.
Workflows are now persistable data. Workflows author as JSON graphs via new declarative step entry types (agent, tool, mapping, composites), round-tripping through toStorableGraph() and rehydrateWorkflow().
- Stored workflows gained
POST/GET/DELETE /stored/workflowsroutes, aStoredWorkflowclient resource, and aworkflowDefinitionsstorage domain across major DB adapters. - A declarative predicate DSL and nested workflow steps make conditionals and loops persistable, not closure-only.
Code Mode runs in-process. Transports can declare requiresSandbox: false for in-process runtimes like V8 isolates, with sanitizeToolId sharing consistent external_* naming. The new @mastra/isolated-vm runs model-authored programs inside an in-process V8 isolate with no filesystem, network, or process access — bridged external_* tools only. It needs the isolated-vm native addon, and Node 20+ hosts must start with --no-node-snapshot.
AgentController now operates inside chat threads. Durable agent sessions run in Slack, Discord, and Telegram threads via Chat SDK adapters, with streaming output, tool approval cards, typing indicators, and controller-owned webhook routes.
MongoDB vector store gained hybrid retrieval. MongoDBVector can index existing operational collections (read-only by default), return full source documents via metadataMode: 'document', and add full-text plus hybrid search. Memory recalls now support exact-match metadata filtering with AND semantics across backends.
Built-in provider-native web search. @mastra/core adds webSearchTool, resolving to provider-native search when the configured model supports it.
Earlier this period also shipped: LiveKit realtime voice agents, file-system routing for all primitives, unified schedules (heartbeats deprecated), sandbox deployments with one-step builds, AI SDK v7 support, and durable-agent crash recovery with scoped sessions.