Mastra open-sources 'Factory' for agent-run software delivery
2026-11-20 · Hacker News
Mastra's three founders showed Mastra Factory on Hacker News, describing it as the open-source 'software factory' they use to maintain Mastra itself. Mastra is an open-source TypeScript AI agent framework the team says averages nearly 4 million downloads a week.
Factory is a configurable agentic kanban board that can also be @-tagged in Slack. Under the hood it uses Mastra's durable long-running agent sessions, conversational memory, a source-cited markdown wiki, signals subscribed to PR comments, and a customizable cloud sandbox with a coding harness (Claude Code and Codex support in progress). It began as a triage-plan-build-review-ship workflow, but after three months the team mostly drives it through Slack, with senior engineers launching parallel sessions such as triaging the 20 oldest issues.
The team says Factory opened and merged 238 PRs last week versus 630 merged by humans; it also runs bug and vulnerability scanners and has closed the repo to outside contributors, asking for detailed issue repros instead. These are self-reported and unverified.
To start, run npm create factory, which provisions a Mastra platform project and Postgres database and generates an encryption key. One server serves UI and API; after login a wizard picks the GitHub repo agents should change, then enable issue sync and click Investigate on an issue. For no platform dependency, use --no-platform for the self-hosted template.
Caveats: the official template repo had about 52 stars on Nov. 20; the API shows no license file, so confirm terms before use; it defaults to Mastra platform services; and code changes by agents need review and permission controls. HN commenters questioned whether a separate planning phase is needed.