A powerful multi-agent system that coordinates specialized AI agents to generate comprehensive software implementation decision reports for full-stack applications.
This project aims to solve the problem of brainstorming how an full stack app would look like just from having an idea, this project helps developers explore ideas agents present to them via decision reports and change agents according to stack they use in development. It enables complete software project planning through coordinated AI agents using the Mastra framework. It provides automated design, architecture, and implementation planning for web applications, all orchestrated through a unified agent network.
This template provides easy to use agentnetwork that uses Mastra's tools, agents and agentnetwork that can be forked for personal needs, ex: changing backend from Typescript to Java or making Database agent use NoSQL instead of SQL
- Multi-Agent Coordination: Four specialized agents working in sequence
- Complete Project Planning: From database design to UI/UX specifications
- Implementation Reports: Detailed technical specifications saved locally
- Sequential Workflow: Agents build upon each other's work for cohesive results
- Modern Tech Stack: Built with Mastra framework and OpenAI integration
Prerequisites
- Node.js (v20+)
- npm or yarn
- OpenAI API access
Setup
- Clone the repository:
git clone https://github.com/jalpp/swesim.git
cd swesim- Install dependencies:
npm install- Copy example env file
cp .env.example .env- Insert the OpenAI API key
OPENAI_API_KEY=insert-key-here- Start the Mastra server
npm run devHead over to Networks tab -> select SWE Simulation Network -> prompt it to build a project idea
Generated Reports
Implementation reports are automatically saved to ./mastra/reports/ folder with complete technical specifications.
Example Reports
the /reports folder contains sample report which was generated when asked to create a clothing line shopping full stack app.
Core Agents
-
Database Agent
- Designs database schemas and data models
- Creates migration scripts and indexing strategies
- Provides performance optimization recommendations
-
Backend Agent
- Creates API specifications and server architecture
- Implements authentication and security patterns
- Designs scalable backend infrastructure
-
Frontend Agent
- Plans React/Next.js component architecture
- Defines state management and data flow
- Implements responsive design patterns
-
Designer Agent
- Develops UI/UX specifications and design systems
- Creates accessibility guidelines and user flows
- Establishes visual design standards
Coordinator Network(AgentNetwork)
- Orchestrates all agents in optimal sequence
- Ensures context sharing between agents
- Compiles unified implementation reports
Flow Diagram
Project Request → SWE Network → Database Agent → Backend Agent → Frontend Agent → Designer Agent → Local report generation
swesim/
├── .mastra/output/reports/ # Generated implementation reports
├── reports/ # Example reports
├── src/
├── mastra/
│ ├── agents/ # Agent definitions and configurations
│ └── network/ # Coordinator network implementation
│ └── tools/ # tools implementation
This project is built with: