How Parakh 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 Parakh does
You describe a business idea in a sentence. Parakh 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 and answer seven multiple-choice questions: five fixed ones (where your customers are, who's building it, how you'll fund it, how much you can put in, which AI you already pay for) and two a model writes about your idea.
- Strategist
Customer, problem, real competitors, and what to leave out.
- Builder
Stack or delivery setup, MVP features, first ten steps. It picks tools; code puts in their checked prices.
- 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 blocking problems send a section back, up to two rounds; minor ones stay in the plan as notes. 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
Qwen 3.8 27BKeeps 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
Qwen 3.8 27BWrites 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
Qwen 3.8 27BSets the price and what delivering to one customer costs, then burn, runway and break-even from the margin.
Growth
Qwen 3.8 27BPicks 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 27BJudges only what code can't check, because the math is already recomputed. Scores how well the plan matches what you asked and names the biggest risk. Self-hosters can give it a separate model with PARAKH_CRITIC_MODEL.
Every agent runs on BharatCode's API, including the clarifying questions.
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.
Tool prices work the same way. Parakh keeps a list of tools with each plan's price, the page it was read from and the date it was checked. When the Builder names a tool on that list, code writes in the checked price and converts it to rupees or dollars. Every tool the plan recommends gets a cost line, free ones included. Tools that aren't on the list are marked "not verified" in your plan, and a tool you can't use where you are (CapCut is banned in India) goes back to the Builder.
What's in your plan
Want to see one? The example plan on the home page shows the layout. It was written by hand, and its numbers pass the same math check.
Student mode
Parakh assumes you're a student in India unless you say otherwise. A blank market means India and rupees. A student founder gets these limits, and the math check enforces the money ones: the first version costs at most ₹15,000 to build, running costs stay under ₹10,000 a month before revenue, and the plan fits about 15 hours a week around classes. Channels start on campus: batchmates, class WhatsApp groups, fests, Instagram and nearby shops.
Answer "full time" or "alongside a job" to the second question and the caps widen to ₹40,000 and ₹30,000. Pick "Outside India" and the plan switches to dollars. Raising from investors turns the caps off.
Check a deck you already have
Upload up to three slide screenshots, or paste the numbers. The model copies out only what the deck states; it is told not to compute or fill gaps. Then plain code recomputes burn from the line items, runway (cash ÷ burn), break-even (burn ÷ margin per customer), MRR (customers × price) and cost per customer (spend ÷ new customers), and shows each mismatch with its formula. The Critic then reviews what code can't check, such as a "we only need 1% of the market" slide.
If the model on your key doesn't accept images, you'll be asked to paste the numbers instead. The repo has a sample slide with four planted mistakes in examples/sample-deck-slide.png.
Limits and your own key
By default Parakh runs on BharatCode's API with one shared key, which has a daily token budget shared by everyone using the site. On busy days the shared quota can run out, and you'll see a message saying so.
You can skip the wait with your own key from bharatcode.ai (eligible students get free access, subject to BharatCode's current usage limits), or switch the AI to OpenAI, Claude, Gemini or OpenRouter with your own API key for that provider. Pick it under “Change AI or use your own key” on the New plan page. One model runs all five agents.
Your key is stored only in your browser and sent with your own requests in the X-Parakh-Provider, X-Parakh-Model and X-Parakh-Key headers. The server uses it for that request and never saves or logs it. API usage is billed by the provider, separately from a ChatGPT, Claude or Gemini chat subscription. Each plan shows the tokens it used and, on a paid key, a rough cost.
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. Send "language": "hinglish" with a chat message to get answers in Hinglish.
POST/critiqueCheck a pitch deck. Up to 3 slide images as data URLs and/or the numbers as text. Returns a job id. Nothing is stored.
{
"images": ["data:image/png;base64,..."],
"text": "Burn ₹40,000/month, cash ₹2,00,000, runway 12 months",
"idea": "Shared notes for UPES students"
}GET/critique/{job_id}Status of a deck check. When done: what the deck claims, the findings, the recomputed numbers and the Critic's review.
PATCH/simulations/{id}/shareTurn a public link for one of your plans on or off.
{ "public": true }GET/shared/{id}A plan its owner shared. No login needed. Returns the plan and report only.
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 |
math_fixed | Code corrected numbers the agents got wrong | round, symbol, fixes [{label, unit, before, after}] |
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 BharatCode API key and a Supabase project.
git clone https://github.com/mayankmalik263/parakh.git cd parakh python -m venv venv venv\Scripts\activate # macOS/Linux: source venv/bin/activate pip install -r requirements.txt cp .env.example .env # BHARATCODE_API_KEY, SUPABASE_URL, SUPABASE_KEY uvicorn api:app --reload
cd parakh-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 and then supabase_share_migration.sql last.
License and ownership
Parakh is the original work of Mayank Malik, who designed the architecture, agent boundaries, revision loop, prompts, state and UI. It grew out of his earlier project, MASS. 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.