Mastra Factory is an open source, agent-powered software delivery environment. It combines persistent coding agents, repository workspaces, issue intake, planning, implementation, and pull request review in a web application you control.
Alex from the video here 👋🏻 If you’re not familiar, Mastra is a TypeScript framework for building AI agents. We used Mastra to build Mastra Factory, and now we’re using Factory to build Mastra. It’s already writing more than 25% of our pull requests!
Building agents is what we do at Mastra, and we’re invested in making this better. But most teams just want to build their product, not take on building and maintaining a factory too. That’s why we’re sharing ours.
With Mastra Factory, you can own the factory without having to build it.
exactly - persistent coding agents, repository workspaces, issue intake, planning, implementation, and pull request review. all in a web application you control.
@shivam_kushwaha16 Yeah, you can kick-off a long-running persistent agent, close your laptop, go to bed, then see how far it got on the goal in the morning.
Report
@shivam_kushwaha16 persistent is the word i would push on here. most tools claiming it keep the transcript, and the transcript is the part that ages worst. the thing worth keeping is what got decided.
fyi @bookercodes is hosting a workshop with @suhdudeitsabhi this Thursday, September 17, at 4 PM UTC. they'll build a Factory, connect it to a real repository, and show how agents move an issue from initial investigation to a reviewed pull request.
Love it - @Mastra (YC W25) is building an agent-powered software factory, and it's open source.
What's a software factory? It's a system for agents to take software from issue into production.
@Spotify recently launched Xirp. @Mastra's is open source and configurable. You connect GitHub, you connect Linear and Slack, and you define rules for how work moves through phases. Agents triage issues, write and validate code, release changes, update docs, and monitor prod.
Mastra helps us coordinate specialized agents and reliably turn high-level intent into structured execution. Their focus on developer experience and composability made it possible for us to move fast without sacrificing correctness."
Quick update: @bookercodes and @suhdudeitsabhi are hosting a workshop this Thursday, September 17, at 4 PM UTC. They'll build a Factory, connect it to a real repo, and show how agents move an issue from initial investigation to a reviewed PR.
@bookercodes Nice! It would be interesting to see it build it first product that isnt it self as well. From concept to completion. Like a sort of journey. That would be an awesome read or video.
Very excited to launch Mastra Factory! It's changed how our team ships code. My favorite parts of the factory:
1. It's more collaborative - it gets coding agent sessions off our local machines and into a shared environment. I can see how others on the team are steering their agents and learn from them 2. Tagging factory in slack makes it easy to ship one off tasks that would have otherwise have been forgotten
@smthomas3 S/O for this new launch! humbled to contribute to it again
Report
If an agent in Factory hits a Linear issue that's ambiguous or underspecified, does it pause and ask a human, or just make a judgment call and open a PR anyway?
Congrats @fmerian & team!
@hamza_afzal_butt you are able to define a "triage" skill so you can determine what level of detail is needed before work is started. You can also configure the factory to require human approval at each stage if you want to monitor things more closely.
I would recommend manual mode in the beginning until you have a higher level of confidence in the work moving through the factory.
@fmerian@hamza_afzal_butt Each step is an agent with a skill. In this case, the skill handles triage, and you can define how you want it to behave. As with any agent, you should test it thoroughly. One cool thing about Mastra is that you can set up tracing and evals to help with that. I can see people using online evals to keep iterating on their skills. We'll add some guides on this at some point.
@devinstone Mastra Factory is built with the Mastra TypeScript framework and uses its Observational Memory system to retain important facts while gradually dropping irrelevant context. We’re also working on a new knowledge primitive.
@devinstone Funny enough what started this journey was us trying to make an agent that "never forgets". This led to Observational Memory https://mastra.ai/research/observational-memory. With that foundation we started going deeper into Coding Agents and now the factory. Also gave a talk on Factory here
Report
So, I can use my Factory from Slack? I guess I'll have to cancel my Devin sub. Thanks for that!!
@toolwanderer yes, the factory connects @GitHub, @Linear, and @Slack to configurable boards. it pulls in GH issues and pull requests, Linear issues, and Slack threads before an agent touches them and moves through phases.
@toolwanderer fyi @bookercodes and @suhdudeitsabhi are hosting a workshop this Thursday, September 17, at 4 PM UTC. they'll build a Factory, connect it to a real repo, and show how agents move an issue from initial investigation to a reviewed PR.
Replies
Mastra
Alex from the video here 👋🏻 If you’re not familiar, Mastra is a TypeScript framework for building AI agents. We used Mastra to build Mastra Factory, and now we’re using Factory to build Mastra. It’s already writing more than 25% of our pull requests!
Building agents is what we do at Mastra, and we’re invested in making this better. But most teams just want to build their product, not take on building and maintaining a factory too. That’s why we’re sharing ours.
With Mastra Factory, you can own the factory without having to build it.
Metabase
Full circle (in production!) Congrats on the launch 👏
Mastra
@ramiro__nd Ramiro! Thank you 🙏🏻
Mastra
@ramiro__nd thank you for your continuous support, Ramiro. you're the best 🙏
Mastra
@bookercodes #dogfooding
Mastra
@fmerian Literally!
Mastra
Factory has been a game-changer for our team. It's writing 30% of our PRs and closing 60% of our issues. Excited to share with the world!
Mastra
@sam_bhagwat I only see that number going up!
Mastra
exactly - persistent coding agents, repository workspaces, issue intake, planning, implementation, and pull request review. all in a web application you control.
learn more: factory.mastra.ai
Mastra
follow-up question: what should @Mastra build/improve/fix from your perspective?
Mastra
@shivam_kushwaha16 Yeah, you can kick-off a long-running persistent agent, close your laptop, go to bed, then see how far it got on the goal in the morning.
@shivam_kushwaha16 persistent is the word i would push on here. most tools claiming it keep the transcript, and the transcript is the part that ages worst. the thing worth keeping is what got decided.
Mastra
@shivam_kushwaha16 @rabnoor_s Makese sense!
Mastra
fyi @bookercodes is hosting a workshop with @suhdudeitsabhi this Thursday, September 17, at 4 PM UTC. they'll build a Factory, connect it to a real repository, and show how agents move an issue from initial investigation to a reviewed pull request.
register here
Mastra
Love it - @Mastra (YC W25) is building an agent-powered software factory, and it's open source.
What's a software factory? It's a system for agents to take software from issue into production.
@Spotify recently launched Xirp. @Mastra's is open source and configurable. You connect GitHub, you connect Linear and Slack, and you define rules for how work moves through phases. Agents triage issues, write and validate code, release changes, update docs, and monitor prod.
View source code on github.com
Read the full announcement on mastra.ai
Over to you:
@Mastra started as an agent framework. It's also a factory framework now.
S/O to @calcsam @smthomas3 @bookercodes and team for this new launch. Pumped to contribute to it.
S/O to the @Product Hunt community for all the love in the reviews.
@eldadafux from @Appwrite / @Imagine:
@flyakiet from @Superset:
@Mastra (YC W25) is building an open source agent-powered software delivery environment.
Star this repo: github.com/mastra-ai/mastra
And start building:
Mastra
@calcsam @smthomas3 @eldadafux @flyakiet @fmerian Thank you 🙇🏻
Mastra
Quick update: @bookercodes and @suhdudeitsabhi are hosting a workshop this Thursday, September 17, at 4 PM UTC. They'll build a Factory, connect it to a real repo, and show how agents move an issue from initial investigation to a reviewed PR.
Register here: https://luma.com/mastra-gogz
DiffSense
Whats the coolest thing you have seen ben built with this? # Proof is in the pudding
Mastra
@conduit_design So far, Mastra.
DiffSense
@bookercodes Nice! It would be interesting to see it build it first product that isnt it self as well. From concept to completion. Like a sort of journey. That would be an awesome read or video.
Mastra
stay tuned!
Mastra
@Mastra? the team built the factory first to automate their own issues. it's now writing 25-35% PRs and closing 50-60% issues.
view source code on github.com
Mastra
Very excited to launch Mastra Factory! It's changed how our team ships code. My favorite parts of the factory:
1. It's more collaborative - it gets coding agent sessions off our local machines and into a shared environment. I can see how others on the team are steering their agents and learn from them
2. Tagging factory in slack makes it easy to ship one off tasks that would have otherwise have been forgotten
Mastra
@smthomas3 It's come a long way since we shared an early preview back at TS AI Conference in London back in July!
Mastra
@smthomas3 @bookercodes i also enjoyed Abhi's talk at Agent Night by @WorkOS
Mastra
@smthomas3 @fmerian We should link this on the homepage lol. Such a good talk
Mastra
@smthomas3 @bookercodes cc @patrycja2 @paulscanlon 👀
Mastra
@smthomas3 S/O for this new launch! humbled to contribute to it again
Mastra
@hamza_afzal_butt you are able to define a "triage" skill so you can determine what level of detail is needed before work is started. You can also configure the factory to require human approval at each stage if you want to monitor things more closely.
I would recommend manual mode in the beginning until you have a higher level of confidence in the work moving through the factory.
Mastra
@fmerian @hamza_afzal_butt Each step is an agent with a skill. In this case, the skill handles triage, and you can define how you want it to behave. As with any agent, you should test it thoroughly. One cool thing about Mastra is that you can set up tracing and evals to help with that. I can see people using online evals to keep iterating on their skills. We'll add some guides on this at some point.
Mastra
yes, and to learn more, read the docs here: factory.mastra.ai
Mastra
@hamza_afzal_butt thank you for your continuous support btw. you're the 🐐
Does it store context indefinitelyor does older data get trimmed automatically after some point?
Mastra
@devinstone Mastra Factory is built with the Mastra TypeScript framework and uses its Observational Memory system to retain important facts while gradually dropping irrelevant context. We’re also working on a new knowledge primitive.
Mastra
@bookercodes spoiler alert!
Mastra
@devinstone fun fact: the team launched Observational Memory here about 7 months ago.
follow @Mastra for future launches.
@devinstone Funny enough what started this journey was us trying to make an agent that "never forgets". This led to Observational Memory https://mastra.ai/research/observational-memory. With that foundation we started going deeper into Coding Agents and now the factory. Also gave a talk on Factory here
So, I can use my Factory from Slack? I guess I'll have to cancel my Devin sub. Thanks for that!!
Mastra
@toolwanderer yes, the factory connects @GitHub, @Linear, and @Slack to configurable boards. it pulls in GH issues and pull requests, Linear issues, and Slack threads before an agent touches them and moves through phases.
learn more: factory.mastra.ai
Mastra
@toolwanderer fyi @bookercodes and @suhdudeitsabhi are hosting a workshop this Thursday, September 17, at 4 PM UTC. they'll build a Factory, connect it to a real repo, and show how agents move an issue from initial investigation to a reviewed PR.
Register here: https://luma.com/mastra-gogz
Mastra
@toolwanderer yes you can! You can even set up your own slack app and give it a name. What are you going to call your Factory?
BuildShip
Already knew about Mastra, seeing the PH launch is exciting!
Mastra
@mufassir_kazi We've had a lot of exciting growth these last 12 months. Please let us know if you have any feedback on Factory
Mastra
thank you for the support! this is the 4th launch on @Product Hunt, and the team keeps cooking
follow @Mastra for future launches
Mastra
@mufassir_kazi thanks for using Mastra!