Grafy News
Try Grafy free

Mastra launches open-source Factory to automate software maintenance

The Mastra team has released Factory, an agentic software factory designed to manage complex development workflows and high-volume pull requests.

Illustration for the news story: Mastra launches open-source Factory to automate software maintenanceSource: Hacker News — front page

The developers behind the Mastra TypeScript agent framework have released Mastra Factory, an open-source tool designed to automate the maintenance and management of their own software ecosystem. This launch marks a shift toward using agentic workflows to handle the high volume of technical tasks required to sustain a rapidly growing open-source project.

What is Mastra Factory?

According to the developers, Mastra Factory is a configurable agentic kanban board that can be integrated with Slack via @-tagging. It is built to manage the lifecycle of software development through a series of stages, which the team originally modeled after their existing workflow: triage, plan, build, review, and ship.

Under the hood, the system utilizes several core components of the Mastra framework. This includes durable agents for managing long-running sessions, a conversational memory system, and a markdown-based wiki that incorporates company knowledge through source citations. The system also uses signals to subscribe to pull request (PR) comments, which are then integrated into active sessions. To provide a safe environment for code execution, Factory includes a customizable cloud sandbox equipped with a coding harness. The team noted they are currently working on expanding support to include other tools such as Claude Code and Codex.

How much work does the factory handle?

The scale of automation provided by Factory is significant. The Mastra team reported that their framework currently averages nearly 4 million downloads per week. To manage the resulting workload, the team merges hundreds of pull requests every week across the mastra-ai GitHub organization.

In a recent snapshot of activity, the team observed that Factory opened and merged 238 pull requests, while human contributors merged 630 pull requests during the same week. This data highlights a hybrid development model where autonomous agents handle a substantial portion of the repetitive or structured maintenance tasks, allowing human engineers to focus on more complex contributions.

How does the agentic workflow operate?

While the system was initially designed with a rigid multi-phase process, the developers have found that the workflow often evolves in practice. For example, they have observed that senior engineers frequently initiate parallel sessions by issuing commands like "triage the 20 oldest issues and let's evaluate..." directly through Slack rather than using a web-based interface.

In discussions regarding the efficiency of the system, the team noted that the traditional "plan" phase can sometimes act as overhead. Because agents often do not fully grasp the implications of a change until they begin editing files and running tests, the team is moving toward a more streamlined, automated transition from triage directly to the build phase. This approach acknowledges a "human-like" constraint in AI development: the necessity of iterative execution to truly understand a problem's scope.

Is open source changing due to AI agents?

The launch of Factory coincides with a broader discussion regarding the future of open-source contributions. The Mastra team revealed that they have closed their repository to outside contributors, requesting instead that users provide detailed issue reproductions.

According to the developers, this decision was driven by a massive increase in the number of pull requests of "marginal value," which can be generated easily by automated bots scanning public issues. This trend, which has been observed by other prominent open-source maintainers, suggests a shift in the contribution model. Rather than focusing on accepting every incoming code change, maintainers are increasingly prioritizing high-quality issue reports and specific reproductions that allow them to direct their own automated or human resources more effectively.

How can developers use this technology?

For developers looking to implement similar automation, Mastra Factory can be initialized using the command npm create factory. While the project is fully open-source and can be hosted on private infrastructure, the team also provides a hosted version for those who prefer not to manage the underlying environment.

For those interested in exploring the capabilities of AI-driven coding and agentic workflows within a professional workspace, Grafy offers specialized tools. Developers can utilize Grafy Code to work within an AI coding studio that supports package installation and code execution. Furthermore, users can explore how different models interact with complex tasks by using Grafy Chat to compare outputs from various providers side-by-side.

Frequently asked questions

What is the primary purpose of Mastra Factory?

Mastra Factory serves as an open-source software factory designed to automate the maintenance of the Mastra agent framework. It uses agentic workflows, a configurable kanban board, and Slack integration to manage tasks such as triaging issues, planning, building, and reviewing code to handle high volumes of pull requests.

Can Mastra Factory be run on private infrastructure?

Yes, Mastra Factory is fully open-source, which allows users to run the entire system on their own infrastructure. While the development team offers a hosted version for convenience, the open-source nature of the project ensures that organizations can maintain control over their own deployment and data.

Does the system support existing coding harnesses?

Currently, the system uses the Mastra coding harness by default. However, the developers have stated that they have plans to integrate with other existing coding harnesses, such as Claude Code and Codex, to provide more flexibility for users within their automated development loops.


Source: Hacker News — front page — Show HN: Mastra Factory, the open-source software factory we use to build Mastra