Sam Bhagwat

Sam Bhagwat

CEO

Sam Bhagwat is the founder and CEO of Mastra. He co-founded Gatsby, which was used by hundreds of thousands of developers. A Stanford graduate and veteran of web development, he authored 'Principles of Building AI Agents' (2025).

46 blog posts

Posts by Sam Bhagwat

Announcing Mastra Observability

Production observability for every Mastra project.

May 13, 2026
Sam Bhagwat
# announcements

Announcing Mastra Platform

Studio, Server, and Memory Gateway. Everything you need to run your agents at scale.

Apr 9, 2026
Sam Bhagwat
# announcements

We raised a $22M Series A to help every developer build agents

Mastra raises a $22M Series A led by Spark Capital, bringing total funding to $35M. Plus: the Mastra platform launches today.

Apr 9, 2026
Sam Bhagwat
# announcements

Announcing Mastra 1.0!

APIs are locked, server adapters are the new default, and we've shipped thread cloning, composite storage, AI SDK v6 support, and more.

Jan 20, 2026
Sam Bhagwat
# announcements

Mastra UI Dojo: Choose your frontend

We have a new UI dojo. It's a collection of working examples showing Mastra agents integrated with the most popular AI UI frameworks. Try it out at ui-dojo.mastra.ai.

Nov 14, 2025
Sam Bhagwat
# features

Announcing our new logo and brand

We're excited to announce the launch of our new logo and brand for Mastra. We believe developers deserve beautiful tools that match the sophistication and dynamism of the systems they're building.

Nov 13, 2025
Sam Bhagwat
# announcements

Announcing our second book: Patterns for Building AI Agents

We're excited to announce the release of our new book: Patterns for Building AI Agents. This book helps you take your agents from prototype to production.

Nov 12, 2025
Sam Bhagwat
# announcements

Announcing Mastra v1 beta

Mastra v1 is now in beta, marking the production-ready release of the leading TypeScript framework for AI agents, trusted by top global companies.

Nov 6, 2025
Sam Bhagwat
# announcements

Introducing Mastra’s Agent Studio

We've renamed Playground to Studio and it's now shareable with your team.

Oct 30, 2025
Sam Bhagwat
# features

You can suspend/resume workflows in playground

Mastra workflows now support suspend and resume in Playground. You can also use the new resumeStream API to close streams on suspend and resume them later.

Oct 22, 2025
Sam Bhagwat
# features

Workflow State: Share Data Across Steps

Workflow state lets you share values across steps without threading them through every `inputSchema` and `outputSchema`.

Oct 22, 2025
Sam Bhagwat
# foundations

Announcing our $13m seed round from YC, pg, Gradient, Amjad, Guillermo, Balaji, and 120+ others

Mastra secures $13m from a coalition of legendary investors to fuel AI agent development and production.

Oct 8, 2025
Sam Bhagwat
# announcements

Migration Guide: VNext to Standard APIs

Learn how to migrate from Mastra’s VNext streaming methods to the new standard APIs, with details on renaming, compatibility, and key differences between AI SDK v4 and v5.

Oct 6, 2025
Sam Bhagwat
# examples

Model fallbacks: Your safety net for production AI

Model fallbacks ensure your application stays online by automatically switching to backup models when your primary provider fails.

Oct 1, 2025
Sam Bhagwat
# features

Mastra now supports AI Tracing

Mastra introduces AI Tracing: filter out noise and use multiple observability platforms.

Sep 30, 2025
Sam Bhagwat
# features

The next evolution of Mastra streaming

We're making our new streaming architecture the default experience starting from `@mastra/core v0.19.0.`

Sep 25, 2025
Sam Bhagwat
# features

Building agentic copilots with CopilotKit and Mastra

Learn how to build interactive, real-time agentic apps using CopilotKit as a frontend for Mastra agents.

Sep 18, 2025
Sam Bhagwat
# foundations

Introducing Output Processors

Introducing output processors: the gatekeepers that sit between your language model's response and your users.

Sep 16, 2025
Sam Bhagwat
# features

Introducing Cloneable Scorers

Cloneable scorers let you copy, customize, and extend Mastra’s evals into your project.

Sep 5, 2025
Sam Bhagwat
# features

Introducing Mastra's improved agent orchestration with AI SDK v5 support

Mastra now controls the agent loop and tool calling with increased orchestration capabilities—while maintaining backward compatibility with AI SDK v4 and v5.

Aug 26, 2025
Sam Bhagwat
# features# foundations

Mastra is now Apache 2.0 licensed!

Mastra is now licensed under Apache 2.0, making it easier for everyone to use, modify, and contribute.

Jul 9, 2025
Sam Bhagwat
# announcements

Building an AI Research Assistant with vNext Workflows

A deep dive into building MastraManus, an AI research assistant powered by Mastra's vNext workflows.

Jun 6, 2025
Sam Bhagwat
# examples

Announcing the second edition of Principles of Building AI Agents

We're excited to announce the release of v2 of Principles of Building AI Agents.

Jun 2, 2025
Sam Bhagwat
# announcements

Announcing Mastra 0.10

Deploy Mastra anywhere

May 20, 2025
Sam Bhagwat
# announcements

AI prompting techniques

Learn about effective AI prompting techniques, including types of prompts, handling their output, and evals.

May 13, 2025
Sam Bhagwat
# foundations

FlashGenius: instantly generate flashcards on any topic

How we vibecoded Flash Genius, an instant flashcard generator, in 1 hour

May 8, 2025
Sam Bhagwat
# examples

Dynamic Agents: Inserting Runtime Context in Mastra

Mastra's dynamic agents provide a powerful way to handle context in AI applications, without exposing sensitive information to the LLM or relying on globals.

Apr 22, 2025
Sam Bhagwat
# examples

AI with JavaScript in 2025

A dive into four leading open-source JS AI libraries: Vercel AI SDK for model routing, Mastra for agents and workflows, Langfuse for observability, and Stagehand for web automation.

Apr 20, 2025
Sam Bhagwat
# foundations

Choosing a JavaScript Agent Framework

When choosing a JavaScript agent framework, consider the needs of your project and the team's expertise. Mastra and LangGraph.js are two leading options.

Apr 19, 2025
Sam Bhagwat
# foundations

Introducing Mastra's MCP Registry Registry

Mastra's MCP Registry Registry simplifies the process of finding MCP registries.

Apr 10, 2025
Sam Bhagwat
# features

Mastra Changelog 2025-03-20

Mastra MCP documentation server, AgentNetwork updates, and more

Mar 20, 2025
Sam Bhagwat
# changelogs

Mastra Changelog 2025-03-14

Major workflow enhancements, new Mastra Voice features, and more

Mar 14, 2025
Sam Bhagwat
# changelogs

Announcing our new book: Principles of Building AI agents

Mastra founder Sam Bhagwat is excited to announce the release of our new book: Principles of Building AI agents. This book is a guide for developers who want to rapidly build AI applications.

Mar 12, 2025
Sam Bhagwat
# announcements

Building a Code Assistant with Large Context Windows

How we used Mastra and Gemini Flash 2.0 to build a natural language interface for code repositories

Mar 5, 2025
Sam Bhagwat
# examples

Mastra is moving into beta

Mastra moving into beta

Feb 20, 2025
Sam Bhagwat
# announcements

Solving the hardest problem in computer science with LLMs

How we use LLMs at Mastra to design clean, intuitive APIs by improving naming, structure, and developer workflow.

Feb 14, 2025
Sam Bhagwat
# foundations

Mastra Changelog 2025-02-10

Major updates including AI SDK integration, optimized bundle size through subpath imports, and enhanced storage layer with tracing capabilities

Feb 11, 2025
Sam Bhagwat
# changelogs

Mastra Changelog 2025-01-31

New Memory API, speech providers, vector store integrations, and core improvements

Jan 31, 2025
Sam Bhagwat
# changelogs

Multi-Agent AI Travel Planning with Mastra

A demo using Mastra to show how multiple AI agents can work together to plan travel itineraries.

Jan 28, 2025
Sam Bhagwat
# examples

Mastra Changelog 2025-01-24

New `mastra build` command, evals in dev playground, new model support, and an abstracted deployer package

Jan 24, 2025
Sam Bhagwat
# changelogs

Introducing TTS in Mastra

Use Mastra's TTS system with OpenAI's speech models to create text-to-speech applications, covering voice selection, audio generation, streaming capabilities

Jan 20, 2025
Sam Bhagwat
# features

Mastra Changelog 2025-01-17

Mastra's changelog for Jan 10th, 2025 through Jan 17th, 2025

Jan 17, 2025
Sam Bhagwat
# changelogs

Building a NotebookLM clone with an agent orchestrator

A technical guide showing how to build a NotebookLM clone that transforms documents into AI-generated podcasts using Mastra's agent orchestration, Pgvector vector storage, and LlamaIndex for content processing.

Jan 16, 2025
Sam Bhagwat
# examples

Mastra Changelog 2025-01-10

Mastra's changelog for Dec 27th 2024 through Jan 10th, 2025

Jan 10, 2025
Sam Bhagwat
# changelogs

A framework for the next million AI developers

The next generation of AI products will be built with Apis written in Typescript

Nov 20, 2024
Sam Bhagwat
# announcements

AI engineering, two years later

What's changed in AI engineering over the last two years: models, agents, knowledge, tracing, evals

Nov 11, 2024
Sam Bhagwat
# foundations, case-studies