Blog: Foundations

31 posts on Foundations from the Mastra blog.

Anatomy of a harness: building a coding agent that can run for hours

How Mastra Code's harness wraps the agent loop: conversation-as-channel, event-to-display-state translation, human-in-the-loop tools, observational memory, subagents, modes, and an ordered tool-approval chain.

Jun 5, 2026
Sam Bhagwat
# foundations

Building Low-Latency Agents That Help Humans Respond on Live Calls

The engineering and context principles Micro uses to deliver sub-3s answers on live calls with Mastra.

Jun 2, 2026
Sam Bhagwat
# foundations

The Rise of Multi-User, Multi-Channel Agents

A look at how Mastra solves the multi-user agent problem: concurrency, memory scoping, tool approval, and per-thread sandboxes.

May 29, 2026
Sam Bhagwat
# foundations

7 Best AI Workflow Automation Tools in 2026

Compare the best AI workflow automation tools in 2026, from developer-native frameworks like Mastra to no-code platforms like Gumloop, and more.

May 7, 2026
Hashim Warren
# foundations

The Agent Prototype Playbook

A 7-step playbook for scoping, building, and shipping AI agent prototypes.

Apr 22, 2026
Brandon Barros
# foundations

Choosing the Right Deployment Model for Your Mastra Application

A guide to the different deployment models for Mastra Server and Studio with real-world examples of each.

Apr 22, 2026
Brandon Barros
# foundations

The Best AI Personal Assistants of 2026

The top AI personal assistants in 2026 are moving beyond chat into real execution, from Lindy's cross-app workflows to Vellum's long-term memory.

Apr 10, 2026
Hashim Warren
# foundations

How to Structure Projects for AI Agents and LLMs

Learn how Mastra is optimized for modern AI systems, and how to implement a similar approach.

Feb 16, 2026
Lennart Jörgens
# foundations

Human-in-the-Loop: Where to Put Approval in Agents and Workflows

Agents can pause before tool calls. Workflows can suspend at steps. But when they're working together, where's the right place for a human-in-the-loop?

Feb 4, 2026
Paul Scanlon
# foundations

Human-in-the-Loop: When to Use Agent Approval

When should an agent ask for permission? How to think about approval, suspension, and the trust spectrum in your agent design.

Jan 28, 2026
Paul Scanlon
# foundations

Composite Storage: Optimize for Performance, Scale, and Cost with MastraCompositeStore

You can now use multiple storage providers in a single Mastra project, all configured from one place.

Jan 14, 2026
Paul Scanlon
# foundations

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

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 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

Reducing tool calling error rates from 15% to 3% for OpenAI, Anthropic, and Google Gemini models

We recently built a tool compatibility layer that reduced tool calling error rates from 15% to 3% for 12 OpenAI, Anthropic, and Google Gemini models, across a set of 30 property types and constraints.

May 29, 2025
Daniel Lew
# foundations

An Honest Skeptic Meets Mastra: Matt Pocock's Live Review

Typescript leader Matt Pocock builds, breaks, and reacts to Mastra in real time.

May 23, 2025
Abhi Aiyer
# foundations

AI prompting techniques

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

May 13, 2025
Sam Bhagwat
# foundations

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

Mastra Storage: a flexible storage system for AI Applications

A look at how Mastra's storage system simplifies building AI applications by managing workflows, memory, traces, and eval data with flexible storage backends.

Apr 1, 2025
Nik Aiyer
# foundations

Optimizing Mastra for Seamless Edge Deployments

Exploring a recent handful of Mastra optimizations that help it run smoothly on edge functions

Mar 25, 2025
Ward Peeters
# foundations

Why We're All-In on MCP

A deep dive into why Mastra is adopting Model Context Protocol (MCP) for AI tool integration, comparing it with Agents.json and Composio, addressing current limitations in discovery, quality, and configuration, and providing a framework-friendly proposal with practical code examples for implementation.

Mar 5, 2025
Tyler Barnes
# foundations

Giving Agents a Voice

Mastra Voice lets developers add speech-to-text and text-to-speech capabilities to AI agents using a straightforward API

Feb 27, 2025
Yujohn Nattrass
# foundations

Benchmarking pgvector RAG performance across different dataset sizes

Benchmark tests for pgvector, showing how IVFFlat, adaptive lists, flat search, and HNSW perform at different dataset sizes in recall and latency.

Feb 26, 2025
Nik Aiyer
# foundations

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

Using Vercel's AI SDK with Mastra

How Mastra enhances Vercel's AI SDK with agent primitives, RAG pipelines, and evaluation capabilities

Feb 13, 2025
Shane Thomas
# foundations

Using Mastra's Agent Memory API

A technical guide to implementing agent memory in Mastra, covering storage, vector search, and context management

Feb 4, 2025
Tyler Barnes
# foundations

Baby steps towards AI Ops

How do we apply the lessons learned from the last decade of DevOps to manage, deploy, and operate AI agents at scale?

Jan 30, 2025
Abhi Aiyer
# foundations

Every API needs a natural language endpoint

Building a world where every API has a chat endpoint

Jan 25, 2025
Shane Thomas
# foundations

RAG tutorial: Setting up a RAG pipeline

A guide to setting up a simple RAG pipeline with Mastra

Jan 16, 2025
Nik Aiyer
# foundations

Building workflows with Mastra

A few patterns for building workflows

Jan 13, 2025
Abhi Aiyer
# foundations

Ship better agents