Announcing Mastra Factory

From issue to production, run by agents.

Sam BhagwatSam Bhagwat·

Jul 27, 2026

·

2 min read

Software production is becoming a hierarchy of loops. Engineers move “down” into lower-level loops to debug reliability. They move “up” to design better processes. The highest-value human work is deciding which loops to create.

So today we’re launching Mastra Factory, a system for agents to take software from issue into production.

In Mastra Factory, specialized agents triage issues, write and validate code, release changes, update documentation, and monitor production. Mastra provides the typed workflows, memory, scheduling, tools, and observability needed to keep the process governed and auditable.

Mastra Factory connects to GitHub, Linear, and Slack. An issue comes in, you open the factory UI, click start, and a coding agent begins working inside the system.

Mastra started as an agent framework. Then we shipped long-running agents. We became a harness framework. And now Mastra is also a factory framework.

What is a software factory?

Zooming out, there are roughly speaking four approaches to software factories:

  1. Goal-driven: One supervisor agent, with subagents, oriented towards a /goal
  2. Staged automation: Explicit stage gates around each part of the software development lifecycle with changes measurable and reversible
  3. Learning infrastructure: Org memory and prod outcomes improve each future run
  4. Human workflow redesign: Human processes are retooled around agent collaboration

Our concept of a software factory leans towards (2) and (3). We built explicit gates around intake, triage, planning, building, review, and completion, with the option to implement full /goal mode via subagents, durable background agents, and shared state.

Our experience so far

As we’ve adopted the Factory, we’ve seen a number of improvements in how we work together. We were previously seeing bottlenecks around issue intake and PR review. We built skills helping us understand incoming PRs and issues, and a review agent giving us context on the codebase so reviews happened faster with more confidence. During reviews, notification signals keep us in the flow with less idle time.

We like working together. But before the Factory, we were getting lonely. We were pairing more with agents than each other. With the Factory, the shared cloud dashboard let us work together more, not less.

Get started

Install Factory with:

GNU BashTerminal
npm create factory
Share:
Sam Bhagwat

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

All articles by Sam Bhagwat