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.

Jul 1, 2026
Paul Scanlon
# features

Build Claude Code for X with Agent Controller

Build and control long-running agent experiences with sessions, modes, permissions, subagents.

Jun 30, 2026
Alex Booker
# features

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.

Jun 30, 2026
Sam Bhagwat
# foundations

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.

Jun 29, 2026
Ashwin Mudaliar
# examples

Introducing Durable Agents

Survive client disconnects, browser refreshes, or network blips with cacheable resumable streams.

Jun 26, 2026
Paul Scanlon
# features

Publish and Subscribe with Mastra's Built-In Event System

Send or receive events with Redis Streams and Google Cloud Pub/Sub.

Jun 25, 2026
Paul Scanlon
# features

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.

Jun 24, 2026
Paul Scanlon
# features

Introducing Task Lists for Mastra Agents

Keep your agents on track through long-running, complex work.

Jun 23, 2026
Paul Scanlon
# features

Introducing deployable templates in Mastra platform

Create and deploy a new Mastra project using pre-built templates.

Jun 22, 2026
Joel Smith
# features

Introducing Mastra CLI Actions for Claude Code, Cursor, and Codex

Run, debug, and improve your Mastra agents from the terminal.

Jun 22, 2026
Paul Scanlon
# features

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.

Jun 22, 2026
Sam Bhagwat
# foundations

Introducing auto-deployment in Mastra platform

Create and deploy your Mastra platform project from GitHub

Jun 19, 2026
Joel Smith
# features

Ship better agents