Mastra Factory - Open-source agentic software factory for PR automation

Show HN: Mastra Factory, the open-source software factory we use to build Mastra

Mastra Factory is an open-source software factory that the Mastra team uses to maintain its own TypeScript agent framework, now averaging nearly 4M weekly downloads. It's a configurable agentic kanban board you can @-tag directly in Slack, powered by Mastra's durable agents for long-running sessions, conversational memory, a markdown-based wiki with source citations, and a customizable cloud sandbox with a coding harness. Teams can run triage, plan, build, review, and ship workflows, kicking off parallel sessions and wiring PR comments into live sessions. Get started with `npm create factory` and run it entirely on your own infrastructure, or use the hosted version.

Last week, Factory opened and merged 238 PRs, alongside 630 merged PRs from humans.
  1. siscia

    I build something similar, based on similar ideas: https://factory.redbeardlab.com

    There is a [language](https://redbeardlab.github.io/dotFactory/) that let express complex workflows.

    The workflow can be pretty much anything, eg:

    1. Clone repo A and B + Start OpenCode + Feed a prompt into it

    2. Pick up the commit generated by opencode for both repo, and run CI

    Another workflow I created is: every day at 3AM, check that the documentation of the website is up to date, if yes exit, if not update the documentation. Pass the updated documentation to an adversarial LLM and if it pass, merge it - otherwise loop with the feedback from the adversarial one.

    You have a concept of trigger, which can be either a webhook, or a github PR or a github issue, or just a cron expression. Or just someone manually clicking.

    There is a concept of secrets and config, so the user can create their own secrets to start codex-cloud, or opencode, or making custom API call.

    There is also the concept of manual gate, so you can wait for an human to actually click a button.

    Finally, it supports running containers. Useful if you want to call an obscure API from your workflow, you don't have to wait for the platform owner to create a step for your API, but you can just run a container into it.

  2. jaf12duke

    What have you learned from people who use Mastra today versus what you/they were doing in the beginning?

  3. yoz

    Links:

    https://factory.mastra.ai

    https://github.com/mastra-ai/template-factory

  4. Gakho

    > closed our repo to outside contributors

    I've seen this pattern happening in other open-source repos. Do you think it's going to be the norm now?

  5. moltar

    Just to clarify, as I couldn’t confirm this from the docs. Do agents run with their own identity or is it assuming engineer github identity?

More from this day

2026-11-18