A working software factory: six TypeScript AI agents that own triage, code generation, validation, release, documentation, and production monitoring — chained by typed workflows, escalating to humans only when a decision needs judgment. Built on Mastra.
Read the full guide: How to Build a Software Factory with AI Agents in TypeScript
npm install
cp .env.example .env # add your ANTHROPIC_API_KEY
npm run dev # Mastra Studio at http://localhost:4111Without GITHUB_TOKEN / SENTRY_AUTH_TOKEN, the tools return realistic mock data so the whole factory runs locally.
src/mastra/
├── types/ # shared vocabulary: work items, metrics, incidents
├── tools/ # typed actions: GitHub, Sentry, factory metrics
├── agents/ # one agent per job: triage, codeGen, validation,
│ # release, documentation, monitoring
├── workflows/ # typed step chains + the sdlcWorkflow master router
└── index.ts # the registry: agents, workflows, storage, observability