How MASS works
Five agents, one math check, and up to two rounds of revisions. Here is what each part does, what the API looks like, and how to run your own copy.
What MASS does
You describe a business idea in a sentence. MASS turns it into a build plan: who the customer is, what to build it with and what that costs, what to charge, how long the money lasts, and where the first customers come from.
Four agents write it, each owning one part, so the price can't quietly disagree with the burn. A fifth agent, the Critic, reads the result and sends problems back. Plain code checks the arithmetic in between, because language models get sums wrong.
How a run works
- Clarify
You type the idea. A small model asks up to ten multiple-choice questions: market, funding, how you make money.
- Strategist
Customer, problem, real competitors, and what to leave out.
- Builder
Stack or delivery setup with plan names and prices, MVP features, first ten steps.
- Economics
Pricing, cost to serve one customer, burn, runway, break-even, Day 30/60/90 targets.
- Growth
Channels with spend and expected customers, a cold message, objection replies.
- Math check
Plain code recomputes the numbers and fixes what it can.
- Critic
Reads the whole plan and sends each problem to the agent that owns it.
- Revise
Only the agents with problems run again, up to two rounds. Agents whose inputs didn’t change are skipped.
- Report
The plan is saved to your dashboard with the Critic’s verdict and any open warnings.
The second revision round only runs if the first finished within 100 seconds, so a plan doesn't sit in a queue for five minutes. If the Critic fails, the run keeps its last verdict instead of failing.
Who writes what
Strategist
GPT-OSS 120BKeeps the business you named. A social media agency stays a social media agency. Competitors must exist; for a service business they can be agencies, freelancers or an in-house hire.
Builder
GPT-OSS 120BWrites for the type of business: software gets a stack and tools, a service gets pilots and a contract, a physical product gets a store and fulfilment setup.
Economics
GPT-OSS 120B (Qwen 3.8 27B on paid Groq)Sets the price and what delivering to one customer costs, then burn, runway and break-even from the margin.
Growth
GPT-OSS 120BPicks one or two channels sized to the Day 30 target, never more than 1.5× it. No invented track record in the cold message.
Critic
Qwen 3.8 27BA different model from the writers, so it doesn’t share their blind spots. Scores how well the plan matches what you asked and names the biggest risk.
All models run on Groq. The clarifying questions use the smaller GPT-OSS 20B.
Numbers get recomputed in code
After every round, code recalculates monthly burn, runway, break-even (from the margin: price minus the cost to serve one customer), MRR at each target, and cost per customer for each channel. Where the agent's number is off, the code replaces it.
Some problems are judgement calls code can't fix on its own, like a channel promising far more customers than the target needs, or a price below the cost to serve. Those go to the Critic, and if they survive the last round they stay in your plan as warnings.
What's in your plan
Want to see one? The sample plan on the home page is a real run, unedited.
Limits and your own key
MASS runs on Groq's free tier, which gives each model a daily token budget shared by everyone using the site. A plan uses a fair share of it, so on busy days the shared quota can run out. When that happens you'll see how long until it resets.
You can skip the wait with your own free key from console.groq.com/keys. Paste it on the New plan page. It is stored only in your browser, sent with your own requests in an X-Groq-Key header, and never saved or logged on the server.
Endpoints
Every endpoint except the stream needs Authorization: Bearer <Supabase access token>. You only ever see your own plans; anyone else's returns 404.
POST/clarifyQuestions to ask before a run.
{ "idea": "Handmade soy candles sold on Instagram" }POST/simulateStart a run. Returns a job id right away.
{
"idea": "Handmade soy candles sold on Instagram",
"market": "India",
"constraints": "Bootstrapped. Context: ..."
}GET/simulate/{job_id}Job status. When done, includes the plan, the full report and the number of review rounds.
GET/simulate/{job_id}/streamServer-sent events while the agents work (below).
GET/simulationsYour saved plans, newest first.
GET/simulations/{id}One saved plan.
POST/simulate/{job_id}/chatAsk a follow-up. Start with @Economics (or another role) to get that agent.
{ "messages": [{ "role": "user", "content": "@Economics what if I charge ₹999?" }] }GET/simulations/{id}/chatThe saved follow-up chat for a plan.
PATCH/simulations/{id}/checklistTick or untick a step.
{ "category": "product_mvp", "item_index": 2, "completed": true }Live events
GET /simulate/{job_id}/stream sends one JSON object per event as server-sent events. The stream closes after job_done or job_error.
| Event | When | Fields |
|---|---|---|
agent_start | An agent starts | agent, round |
agent_done | An agent finishes | agent, round, summary |
supervisor_result | The Critic is done | agreed, reason, conflicts, forced |
debate_loop | A revision round starts | round, agents, reason |
job_done | The plan is saved | - |
job_error | The run failed | error |
Run it yourself
You need Python 3.10+, Node 18+, a free Groq key and a Supabase project.
git clone https://github.com/mayankmalik263/Mass-Multi-Agent-STARTUP-Simulator-.git cd Mass-Multi-Agent-STARTUP-Simulator- python -m venv venv venv\Scripts\activate # macOS/Linux: source venv/bin/activate pip install -r requirements.txt cp .env.example .env # GROQ_API_KEY, SUPABASE_URL, SUPABASE_KEY uvicorn api:app --reload
cd mass-frontend npm install # .env.local: NEXT_PUBLIC_API_URL, NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY npm run dev
Then open http://localhost:3000. The SQL files in the repo root create the tables; run supabase_auth_migration.sql last.
License and ownership
MASS is the original work of Mayank Malik, who designed the architecture, agent boundaries, revision loop, prompts, state and UI. AI tools helped during development. Copyright © 2026 Mayank Malik.
The code is MIT licensed: use, change and share it, as long as the copyright notice and license text stay in every copy and Mayank Malik is credited as the original author. Full text in the Terms or the LICENSE file.