# Mastra open-sources Factory, the agent-driven software factory it uses on its own repos

published: 2026-11-19T02:05:35.526Z
topic: frameworks
source: https://news.ycombinator.com/item?id=50548660
url: https://aiagentnews.io/stories/mastra-open-sources-factory-the-agent-driven-software-factory-it-uses-on-its-own

Mastra has open-sourced Factory, the software factory it built to maintain its TypeScript agent framework. The team says Factory opened and merged 238 PRs last week, alongside 630 PRs merged by humans.

Mastra, the team behind its open-source TypeScript agent framework, has released Factory, a tool it built to help maintain Mastra itself. The team says Mastra now averages nearly 4 million downloads a week, and that its engineers merge hundreds of PRs weekly across the mastra-ai GitHub organization.

Factory is described as a configurable agentic kanban board that can be tagged in Slack. It runs on Mastra's durable agents, conversational memory, a markdown wiki with source citations, signals that subscribe to PR comments, and a customizable cloud sandbox with a coding harness. The team says it is working on support for Claude Code and Codex.

The team started with a triage, plan, build, review and ship workflow and now mostly drives Factory through Slack. It has also added bug and vulnerability scanners and closed its repository to outside contributors, asking for detailed issue reproductions instead. Factory can be started with `npm create factory` and run on a user's own infrastructure, or through a hosted version.

## Why it matters if you build agents

Developers building coding agents can use Mastra's setup as a concrete reference for running agents against real issues, PRs and sandboxes. The project is fully open source, so it can be inspected and run without a hosted service. Maintainers who adopt similar tools may need to decide how to handle outside contributions, as Mastra has done by closing its repository.
