StatusPilot and an AI builder swarm
I ran a one-day experiment where a swarm of low-cost AI agents built a working SaaS app from my specs: StatusPilot, which drafts the weekly status email a freelancer sends each client.
The problem
Freelancers and agencies spend part of every week writing 'here is what we did' emails to each client. I also wanted to find out how far low-cost AI builders can get when a human architect writes the spec, directs the work and reviews the result.
How I built it
I wrote a PRD and a JSON build spec per feature, and a small Node orchestrator (swarm.js) ran builder agents in parallel, each owning one file, in dependency waves with resume and tag filters. The result is a Next.js and TypeScript app with Prisma and SQLite, cookie-based JWT login, GitHub and Linear connectors and a summariser that turns the week's activity into Done, In progress, Blockers and Next week in the user's own tone. The summariser prompt tells the model to base every statement on the data and to say plainly when there was no activity.
What got hard
- The builder model is a reasoning model, and with a small token budget it spent everything on hidden thinking and returned empty files.
I raised the output budget to 20,000 tokens per task and kept each task to one file.
- Large context dumps made network requests drop mid-run.
I switched to focused per-file mini specs that carry only the interface signatures each file needs, and kept parallelism at three, which was more stable than six.
- The model kept putting raw newlines inside quoted strings, which breaks the code.
I wrote repair.js, a small state machine that rewrites only the newlines inside single and double quoted strings and leaves template literals alone.
- Long or regex-heavy files came back truncated, sometimes with a stray code fence.
The swarm rules now require backticks or escapes for multi-line strings, steer files away from regex, and strip orphan code fences from the output.
The result
StatusPilot was built the same day (3 pages and 7 API routes), its production build passed, and a test run registered a user, added a client and a GitHub source and generated a draft. Recipients, a mark-as-sent button and tone settings were left for the next pass, and the other four product folders were never started.
The ← and → keys turn the page too.