Try Mastra Factory: a free kit for AI code reviews
Mastra shared Factory, a free open-source tool where AI agents turn issues in your code project into plans, changes and reviewed pull requests. You can start with one command. The team says it helped merge 238 changes in a week, alongside 630 by people.
Mastra Factory is an open-source environment for building software with coding agents. You connect a code repository, and it turns issues into plans, changes and reviewed pull requests. It's licensed under Apache-2.0.
The Mastra team built it to help maintain its own project. They say last week Factory opened and merged 238 changes, next to 630 merged by humans. These are the makers' own numbers.
Factory works like a board of tasks that you can mention from Slack. After three months of use, the team says they mostly drive it through Slack instead of the web page.
You can run it all on your own servers, or use a hosted version. It needs Node.js, a Postgres database, a GitHub App with access to your repository, and a key for an AI model provider.
New to this? The key idea
A coding agent is an AI that takes a written task, edits code and proposes the change for people to review. Factory is the workbench around it, like a task board where each issue is picked up, planned and turned into a pull request, which is a proposed code change awaiting review.
Use it at work
Use it for: turning GitHub issues into plans, code changes and reviewed pull requests. Maintainers and engineering leads with a steady stream of small issues should care.
Try it: setup from the README:
npm create factory
For self-hosting without the Mastra platform:
npm create factory -- --no-platform
If FACTORY_CREDENTIAL_ENCRYPTION_KEY is missing from .env, generate one:
openssl rand -base64 32
Then start the server:
npm run dev
The onboarding wizard asks you to pick a repository, grant GitHub App access, optionally add Linear, and connect a model provider. For a first run, enable GitHub issues under Settings, Work Intake, create a small issue, then choose Investigate under Work, Intake. Postgres needs pgvector. Keep the Factory project separate from the repository agents will change.
Before you roll it out: free under Apache-2.0, but you pay for your model provider and hosting. It needs Node.js, Postgres with pgvector, a GitHub App with access to your repository, and a model provider key. By default, sign-in and sandboxes run on Mastra platform services, and stored model keys and integration secrets are encrypted at rest. Code and issue data go to your model provider, and exactly what is sent is not stated. Losing the encryption key means stored keys cannot be decrypted, so keep a protected backup. Self-hosting needs persistent storage and a public HTTPS address. The repository page shows 85 stars, 4 commits and no release, so treat it as early. The 238 merged changes are the makers' own numbers.
Summaries are written by AI from the linked source. Always check the original.