The Mastra blog
Updates, tutorials, and engineering deep-dives on building AI agents, workflows, and TypeScript tooling with Mastra.
Introducing Webhook Signals for Mastra Agents
Your agents can now react to webhook events from GitHub, Slack, Stripe, or your own API.
Build Claude Code for X with Agent Controller
Build and control long-running agent experiences with sessions, modes, permissions, subagents.
What are durable AI agents? How state persistence and checkpoints survive a restart
A long-running agent is a durable record that short-lived processes take turns with. This walks through why a context window is not a persistence layer, the three granularities of persistence, how Mastra checkpoints a run to JSON and resumes it on a fresh machine, why a worker can't judge its own work, and the two kinds of state a durable agent has to keep.
Give a Mastra agent persistent file storage with Archil
The @mastra/archil integration attaches an Archil disk to your agent's workspace — persistent file storage backed by your own S3 that an agent can read, write, run code on, search, and share, with files that outlive the run.
Introducing Durable Agents
Survive client disconnects, browser refreshes, or network blips with cacheable resumable streams.
Publish and Subscribe with Mastra's Built-In Event System
Send or receive events with Redis Streams and Google Cloud Pub/Sub.
Your Mastra Agent Now Has an Inbox With Priority Notifications
Connect external sources like GitHub and Slack and trigger them to wake up your agent.
Introducing Task Lists for Mastra Agents
Keep your agents on track through long-running, complex work.
Introducing deployable templates in Mastra platform
Create and deploy a new Mastra project using pre-built templates.
Introducing Mastra CLI Actions for Claude Code, Cursor, and Codex
Run, debug, and improve your Mastra agents from the terminal.
What is the Agent2Agent (A2A) protocol? How AI agents delegate work
A2A is a shared standard for one agent to hand work to another on a remote server. This walks through its five-object data model, the agent card, the eight task states, the three ways to watch a task, how trust is decided before work is sent, and how Mastra implements both sides on the official @a2a-js/sdk.
Introducing auto-deployment in Mastra platform
Create and deploy your Mastra platform project from GitHub
Ship better agents