最后更新:11/20/2026最后核验:2026-11-20

Mastra Factory

Mastra Factory:从 issue 到 Pull Request,保留人工把关

1
0

Mastra Factory 是 Mastra 团队开源的 agent 软件交付环境:GitHub、Linear 或 Slack 上的 issue 会依次走过 intake、triage、planning、building、review,agent 在云端沙箱里改代码、给每个改动附 live preview,人在关键节点回答问题、改计划、决定是否合并。开源许可为 Apache-2.0,也可用 Mastra 平台的托管档(Free $0、Starter $25/月、Team $250/月、Enterprise 定制)。

部分免费

Mastra Factory 是什么

Mastra Factory 是 Mastra 官方描述的开源环境,把常驻编程智能体、仓库工作区、issue 受理、计划、实现与 Pull Request 审核组合进一套可配置的软件交付流程(SDLC)。工作沿受理(intake)、分类(triage)、计划(planning)、构建(building)、审核(review)、完成(done)六个阶段推进,issue 来自 Linear、GitHub 与 Slack。智能体运行在已克隆好仓库的云端沙箱中,每个改动都附带来实时预览链接;产品以 Slack 为中心,团队可以在讨论串里 提及 Factory 提交工作、回答它的提问并批准计划。它不是无人值守流程:人在分类阶段回答问题、在实现前编辑并批准计划、并决定 Pull Request 是否合并。官网说明该项目以 Apache-2.0 开源(factory 页面结构化数据列出 Apache-2.0 许可,博客标题为「Mastra is now Apache 2.0 licensed!」)。以上内容于 2026-11-20 对照 mastra.ai/factory 与 mastra.ai/pricing 核验,本次未实际安装或使用。

核心功能

  • 六个明确阶段:受理、分类、计划、构建、审核、完成,每个阶段都有可配置的规则与关卡。
  • 从既有工具受理 issue:官方页面列出 Linear、GitHub、Slack 三个来源;团队连接一个 GitHub 组织与仓库、可选的 Linear 项目,以及模型提供方。
  • 云端沙箱中的常驻智能体:每个智能体拥有自己的云端沙箱,仓库已克隆就绪,每个工作项保留独立会话。
  • 实况预览链接:每个改动都附带预览链接,审核者可以先点开真实应用再看 diff。
  • Slack 原生协作:在讨论串里提及 Factory 即可提交工作、回答它的提问、批准计划。
  • 人工关卡:人在分类阶段回答问题、在实现前审核并编辑计划、并决定 Pull Request 是否合并。
  • 共享云端面板:团队在共享面板上协作,而不是依赖某个人的终端。
  • 可选的 /goal 模式:官方页面说明可通过 subagents、持久后台智能体与共享状态实现完整的 /goal 模式。
  • 开源且可迁移:官网标明 Apache-2.0,既可由 Mastra 平台自动部署,也可托管在自己的基础设施上。
  • 先本地运行:Factory 项目从一开始就用 Mastra 平台提供认证、数据库与沙箱,而 Mastra server、Factory UI 与 Studio 可以先在本地运行,直到用 mastra deploy 部署。

最适合

希望 AI 编程智能体遵循明确的「issue → 已审核 Pull Request」流程的开发团队。习惯在 Slack 讨论串里提交工作、回答智能体提问并批准计划的团队。希望在读 diff 之前先点开实况预览的审核者。希望把需求、计划与合并决定留在人手里的团队。需要可自托管或跑在 Mastra 平台上的 Apache-2.0 开源交付环境的组织。

定价

官方定价(mastra.ai/pricing,于 2026-11-20 读取)写明「Prices per workspace, each month.」:Free 每月 $0,Starter 每月 $25,Team 每月 $250,Enterprise 需联系定制。Free 含不限数量的智能体、用户与部署,10 万条可观测事件、1 GB 出网流量、5 个连接、15 天 trace 保留。Starter 增加 1 个小型专属项目、25 万条事件、10 GB 出网、10 个连接、60 天 trace。Team 增加 3 个项目(含 2 个中型专属项目)、SOC 2 报告、1000 万条事件、100 GB 出网、50 个连接、180 天 trace。同一页面还列出各档超出包含额度后的按量计费:内存 $0.25/GB-小时、vCPU $0.25/vCPU-小时、连接 $0.50/个、出网流量 $0.10/GB、可观测事件 $10/10 万条。Mastra Factory 本身开源,实际托管成本取决于部署在 Mastra 平台还是自有基础设施。

方案价格包含内容
Free$0 / 月不限数量的智能体、用户与部署;10 万条可观测事件;1 GB 出网;5 个连接15 天 trace 保留
Starter$25 / 月包含 Free 全部内容,另加 1 个小型专属项目;25 万条事件;10 GB 出网;10 个连接60 天 trace 保留
Team$250 / 月包含 Starter 全部内容,另加 3 个项目(含 2 个中型专属项目);SOC 2 报告;1000 万条事件;100 GB 出网;50 个连接180 天 trace 保留
Enterprise定制包含 Team 全部内容,另加自定义连接与专属支持需联系 Mastra

优缺点

优点

  • 把 issue 受理、计划、实现与 Pull Request 审核串成一条有阶段的流程。
  • 在分类、计划与审核三个位置保留人工参与,而不是把流程描述成无人值守。
  • 为每个智能体提供云端沙箱,并让每个工作项保留独立会话。
  • 每个改动都附带实况预览链接,审核可以从运行中的应用开始。
  • 团队可以直接在 Slack 中提交工作、回答问题并批准计划。
  • 官网标明以 Apache-2.0 开源,可选择部署到 Mastra 平台或自托管。

缺点

  • 流程依赖人工:分类问题需要回答、计划需要编辑与批准、Pull Request 需要人决定是否合并,因此吞吐取决于团队是否在线。
  • 官方说明 Factory 项目从一开始就用 Mastra 平台提供认证、数据库与沙箱,部署并非完全自包含。
  • 超出包含额度后平台费用会累积:内存、vCPU、连接、出网流量与可观测事件均按档位计费。
  • 官方公布的限额集中在项目、连接、事件、出网与 trace 保留;模型提供方与沙箱资源的具体限额未在定价页说明。
  • 实况预览被描述为交付流程的一部分,但本次读取的页面没有说明它在各类应用上的兼容范围。

常见问题

详情

平台

网页版

功能特性

  • Staged lifecycle from issue to reviewed pull request: intake, triage, planning, building, review and done, with configurable rules per stage
  • Persistent coding agents work in cloud sandboxes with the repository already cloned, and each work item keeps its own session
  • Every change comes with a live preview link so you click through the app before opening the diff
  • People answer the agent during triage, edit the plan before implementation and decide on the merge in review
  • Slack-native: mention Factory in a thread to file work, answer its questions and approve plans
  • Open source under Apache-2.0, deployable automatically on the Mastra platform or hostable on your own infrastructure

支持语言

en

已知限制

  • A Factory project uses the Mastra platform for auth, database and sandboxes from the start, even though the Mastra server, Factory UI and Studio can run locally
  • Platform plans are billed per workspace per month: Free $0, Starter $25, Team $250, Enterprise custom, with memory, vCPU, egress and observability events metered beyond each tier
  • The Free tier includes 100K observability events, 1 GB egress, 5 connections and 15-day trace retention, and a dedicated project only starts on Starter
  • It is not unattended: someone still answers questions in triage, approves or edits each plan and decides on the pull request
  • It needs a connected GitHub organisation and repository, optionally a Linear project, and a model provider before it can pick up work

替代工具

Devin — A single autonomous coding agent rather than a configurable issue-to-PR pipeline
durable-harness — A durable runtime library for agent sessions instead of a managed software factory
Claude Code — Runs coding agents locally in a terminal or editor without a hosted factory

官方价格来源

https://mastra.ai/pricing

为此工具评分

相关工具