A 7-agent autonomous build loop that incrementally constructed a SaaS prototype over 146 cycles — each cycle planning a feature, writing the code, running QA, and self-deploying. The result: a working proof-of-concept trucking business management app with auth, subscriptions, AI receipt scanning, and 27 shipped features — built without manual coding. This is a prototype demonstrating the pipeline, not a production product.
demo@truckerflow.com Password: demo
TruckerFlow is an experiment in autonomous software construction. Instead of building the app manually, I designed a multi-agent loop where seven Claude Code agents collaborate in sequence — one plans, one builds, one validates, one tests, one evaluates, one documents, and one updates shared state — and the loop repeats, adding one feature per cycle.
Over 146 cycles, the pipeline grew the app from a blank Next.js scaffold into a working prototype with authentication, Stripe subscriptions, AI-powered document scanning, IFTA reporting, two-factor auth, data export, and more. No feature was written by hand. The agents made architectural decisions, wrote database schemas, implemented API routes, built UI components, and fixed their own bugs through QA feedback loops.
This is a prototype and proof of concept, not a production product. The goal was to answer a specific question: can a well-structured agentic pipeline produce genuinely usable software — not just scaffolding or toy code? The answer is yes, with bugs, with rough edges, and with the right prompt architecture. The pipeline itself is the project; the app is the evidence it worked.
project_memory.json as a persistent state file so each cycle correctly inherits everything the previous cycles built, across separate Claude sessionsoutput: 'standalone' mode so the build artifact is fully self-contained and deployable with a single pm2 restartbasePath to serve the app at a subpath of a shared VPS, avoiding the need for a dedicated serverpaused file and blockers log, so the pipeline can be stopped and restarted without data lossLog loads and expenses in seconds. Automatic cost-per-mile, revenue-per-mile, and net income calculated from real records — not estimates.
Snap a photo of a fuel receipt or invoice. Claude extracts vendor, amount, date, and category automatically — no manual data entry.
Upload a carrier settlement PDF or bank statement CSV. The app parses line items and maps them to expenses without a fixed template.
Quarterly IFTA mileage reports by state, monthly P&L breakdowns, and a customizable dashboard of widgets built from the user's own data.
Project monthly and per-load profitability with adjustable cost rows. Shows the minimum rate per mile needed to break even before accepting a load.
NextAuth v5 with credentials, 2FA via email OTP, forgot password, and Stripe subscription billing with trial, monthly, and annual plans.
A bash state machine (saas-run.sh) drives the loop. Each cycle, it invokes all seven Claude Code agents in sequence, passing the current app directory and project memory to each. The loop is controlled by a paused file and a blockers.json log — if an agent encounters something it can't resolve, it writes a blocker and the cycle stops cleanly for human review.
project_memory.json (features complete, features pending, current phase) and decides the next feature. Outputs a brief spec to a cycle_plan.md file.tsc --noEmit and npm run build. If either fails, it attempts to fix the errors before passing control to QA. Writes a build report.localhost:3007. Records pass/fail results and any regressions in other features.project_memory.json — moves the feature from pending to complete, increments the cycle counter, records the timestamp.After the State Writer completes, the loop either starts the next cycle immediately (if a timer-based scheduler is active) or waits for the next scheduled run via systemd.