Build Time & API Cost Breakdown
Measured wall-clock timing, swarm parallelization, billing component spend, and human effort comparison across Planning, Core Build & Deploy, Post-Launch Polish, and Telemetry, UX & Performance passes.
Wave 2 executed 49m 35s of feature coding across 5 parallel workers in 11m 49s wall-clock (4.2× speedup). Wave 3 also overlapped the Independent Verifier (9m 42s) with QA merge & Playwright E2E, and post-launch fixes fanned out 5 isolated workers in parallel (tally, shortcuts, status tabs, actual pricing, and E2E).
Each worker booted with a lean, domain-scoped brief owning 11–24 files rather than dragging a bloated 200k+ token single-thread monolith through VSCode. Tighter context prevented cross-module drift and sustained 94.7% prompt cache hit efficiency with lower fresh-input churn.
Isolated git worktree checkouts paired with strictly disjoint file ownership eliminated clobbered edits, competing builds, and half-broken interleaved TypeScript states — even allowing the t3/app-performance-pass optimization worktree (-32%/-39% JS bundles, 9 PG indexes) to benchmark safely without touching the live deploy branch.
Compressing Core Build & Deploy to 1h 0m 35s shortened human review wait time. Trade-offs: upfront Wave 1 contract freeze (schema.ts, rbac.ts, tally-engine.ts · 10m 49s) plus a dedicated Wave 3 merge & E2E integration gate (20m 47s).
| Dimension | Single Worktree in VSCode (Sequential) | Multi-Agent Parallel Worktrees (This Build) |
|---|---|---|
| Wave 2 Feature Build | ~50m sequential coding across 5 domains (single thread) | 11m 49s wall-clock across 5 isolated worktrees (4.2× speedup) |
| Prompt Context Profile | Grows monotonically toward 200k+ tokens; cross-feature context noise | Focused per-domain context windows; high implicit cache reuse (94.7%) |
| File & Typecheck Safety | Shared working tree; partial edits block concurrent checks | Disjoint file ownership + independent worktree builds & typechecks |
| Coordination Overhead | Zero branch merge step; lower upfront interface planning | Requires upfront Wave 1 contract freeze + Wave 3 branch merge & QA gate |
| Phase | Agent / Workstream | Model | Duration | Calls | Fresh Input | Cached Input | Output | Total Tokens | Actual Cost | Human Est. | Human Parallelizability |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Planning | Planning Lead (Interview, Spec & Plan) 26 locked decisions, design spec & implementation plan | Gemini 4 Neon | 1h 33m 32s | 88 | 344.3k | 10.24M | 142.4k | 10.73M | $4.71 | 10h 8–12h | Sequential gate Single-author product discovery & stakeholder Q&A; 26 decisions must lock before coding starts. |
| Planning | Visual Prototype Builder (v1) Interactive HTML prototype v1 | Gemini 4 Neon | 6m 4s | 5 | 73.9k | 170.0k | 46.1k | 290.0k | $0.94 | 8h 6–10h | Partial (after contracts) A design engineer can prototype screens in parallel once initial domain workflows crystallize. |
| Planning | Visual Prototype Updater (v2–v4) Option D palette & strict tiered org prototype v4 | Gemini 4 Neon | 8m 43s | 9 | 169.8k | 762.8k | 72.1k | 1.00M | $1.71 | 6h 4–8h | Sequential gate Iterative visual polish driven directly by stakeholder feedback on prototype v1–v3. |
| Core Build | Swarm Coordinator (Plan + Orchestration) 3-wave swarm plan, board coordination & handoffs | Orchestrator (Neon + Hydrogen) | 1h 0m 19s | 37 | 564.3k | 5.82M | 64.3k | 6.45M | $2.23 | 8h 6–10h | Sequential gate Tech-lead architecture slicing, contract freeze sign-off, and cross-stream PR coordination. |
| Core Build | Wave 1 · Foundation (Schema, Seed, UI SDK, Core) 52 files · 12,721 LOC (14-table schema, seed, UI SDK, core libs) | Gemini 4 Hydrogen | 10m 31s | 51 | 395.0k | 11.79M | 117.2k | 12.30M | $2.36 | 24h 20–28h | Sequential gate Frozen schema.ts, rbac.ts, tally-engine.ts, and UI SDK primitives must land before feature branches fork. |
| Core Build | Wave 2 · Auth, Org Admin & Settings 24 files · 5,957 LOC (Entra mock login, Org CSV/JSON, settings) | Gemini 4 Hydrogen | 9m 26s | 38 | 287.0k | 6.58M | 114.4k | 6.98M | $1.78 | 18h 14–22h | Parallelizable Self-contained /login and /admin/org + /admin/settings routes; runs cleanly in parallel after schema freeze. |
| Core Build | Wave 2 · Single-Fold Monthly Grid 14 files · 3,915 LOC (quarter-day brush grid, 2D picker, drafts) | Gemini 4 Hydrogen | 10m 11s | 46 | 319.1k | 8.88M | 109.0k | 9.31M | $1.96 | 24h 20–30h | Parallelizable Disjoint /timesheet UI and draft persistence APIs; senior FE dev can work fully independently. |
| Core Build | Wave 2 · Tiered Org Chart & Validation 18 files · 4,425 LOC (React Flow org chart, Validation Drawer, queue) | Gemini 4 Hydrogen | 11m 43s | 47 | 356.5k | 10.28M | 113.3k | 10.75M | $2.16 | 22h 18–26h | Parallelizable Dedicated /org and /validations modules consuming frozen RBAC subtree & privacy contracts. |
| Core Build | Wave 2 · Team Topics & Manager Tally 11 files · 3,434 LOC (Team Topics library, Recharts Month/Day tally) | Gemini 4 Hydrogen | 8m 47s | 45 | 287.3k | 7.86M | 81.6k | 8.23M | $1.63 | 16h 12–20h | Parallelizable Independent /topics and /tally views built directly against frozen tally-engine.ts contracts. |
| Core Build | Wave 2 · Reporting API v1 & OpenAPI 3.1 12 files · 3,602 LOC (/api/v1/* JSON+CSV, OpenAPI 3.1, API keys) | Gemini 4 Hydrogen | 9m 28s | 47 | 291.2k | 8.55M | 87.6k | 8.93M | $1.74 | 16h 12–20h | Parallelizable Isolated /api/v1/* endpoints, OpenAPI spec, and /admin/api-keys explorer with zero UI overlap. |
| Core Build | Wave 3 · Merge, Vitest & Playwright QA 11 files · 2,122 LOC (5-branch merge, 27 unit tests, E2E, Docker fix) | Gemini 4 Hydrogen | 20m 47s | 86 | 988.3k | 28.19M | 84.0k | 29.26M | $4.23 | 16h 12–20h | Sequential gate Integration merge gate; requires all 5 feature PRs merged before full end-to-end verification. |
| Core Build | Wave 3 · Independent Verifier & Audit Spec audit, screenshot review, Dockerfile defect catch & re-verify | Gemini 4 Hydrogen | 9m 42s | 42 | 379.9k | 9.97M | 26.2k | 10.38M | $1.51 | 6h 4–8h | Partial (after contracts) Independent senior code & QA audit overlaps late E2E execution once the merged build passes. |
| Core Build | Wave 3 · Railway Provisioning & Deploy Railway Postgres + nornir deploy + TLS custom domain live checks | Gemini 4 Hydrogen | 6m 59s | 32 | 128.5k | 1.78M | 28.7k | 1.94M | $0.54 | 6h 4–8h | Sequential gate Production release gate; executes after merged QA tests and independent verifier sign-off. |
| Core Build | Swarm Stall Monitor Automated background stall detection across waves | Gemini 4 Hydrogen | 55m 13s | 47 | 152.7k | 2.37M | 11.0k | 2.54M | $0.49 | 2h 1–3h | Partial (after contracts) Lightweight async CI/standup unblocking running concurrently alongside active engineering streams. |
| Polish | Post-Launch UX Polish (Padding, Scroll & HDR) Edge padding, quarter-day cell wheel scroll + tests, HDR contrast | Orchestrator (Neon + Hydrogen) | 11m 20s | 37 | 1.89M | 8.93M | 29.3k | 10.85M | $5.01 | 5h 4–6h | Parallelizable Focused CSS token contrast and grid wheel-step tweaks; zero dependency on Admin tab work. |
| Polish | Admin Plan/Cost Tabs & Submit Column Flash Implementation Plan & Build Metrics tabs, Submit column flash | Orchestrator (Neon + Hydrogen) | 13m 24s | 38 | 926.7k | 16.22M | 77.1k | 17.23M | $3.90 | 8h 6–10h | Parallelizable New read-only Admin views and isolated incomplete-column flash can split cleanly across engineers. |
| Polish | Bundled Fix Orchestration (Orchestrator Neon) 5-worker fix dispatch, wider persona switcher, QA verification & Railway deploy | Orchestrator (Neon + Hydrogen) | 19m 40s | 53 | 1.19M | 9.04M | 82.2k | 10.31M | $4.55 | 3h 2–4h | Sequential gate Lead triage to inspect user feedback screenshots, partition fixes, merge, and ship to production. |
| Polish | Fix Worker · Tally Chart & KPI Link Unclipped Y-axis topic labels & 1-click tally missing link | Gemini 4 Hydrogen | 58s | 9 | 58.2k | 244.0k | 13.0k | 315.1k | $0.20 | 2h 1.5–3h | Parallelizable Localized Recharts axis margin and KPI link update inside TallyClient. |
| Polish | Fix Worker · Manager Missing Shortcuts /api/shell downstream counts + TopBar, Subnav & Org shortcuts | Gemini 4 Hydrogen | 4m 37s | 12 | 76.7k | 519.1k | 24.7k | 620.5k | $0.34 | 3h 2–4h | Partial (after contracts) Shell API payload extension lands first, then TopBar, Subnav, and Org pills wire in parallel. |
| Polish | Fix Worker · Validation Status Tab Colors Muted Pending / Incomplete / Greenlit tab tones & deep links | Gemini 4 Hydrogen | 51s | 7 | 48.8k | 167.5k | 13.1k | 229.4k | $0.18 | 2h 1.5–3h | Parallelizable Self-contained CSS custom properties and ValidationQueue status tab styling change. |
| Polish | Fix Worker · Playwright E2E Assertions End-to-end assertions for shortcuts, status tabs, Y-axis labels & build metrics | Gemini 4 Hydrogen | 10m 31s | 20 | 61.9k | 372.9k | 10.3k | 445.1k | $0.20 | 3h 2–4h | Partial (after contracts) Assertions can be authored from agreed data-testid contracts and executed once UI fixes merge. |
| Polish | Fix Worker · Build Chart & Actual Pricing Fixed Build Spend Recharts render & migrated telemetry to actual Gemini 4 rates | Gemini 4 Hydrogen | 4m 2s | 15 | 120.6k | 1.00M | 40.4k | 1.16M | $0.56 | 3h 2–4h | Parallelizable Isolated Recharts container fix and actual Neon/Hydrogen token-rate model in build-metrics.ts. |
| UX & Perf | Orchestrator Handoff · Telemetry & Picker Brief Scoped 5-item telemetry & month-picker handoff brief to dedicated Neon thread | Orchestrator (Neon + Hydrogen) | 2m 23s | 6 | 582.5k | 1.16M | 14.4k | 1.76M | $1.66 | 1h 0.5–1.5h | Sequential gate Lead scoping of chart requirements, telemetry formulas, and acceptance criteria before build. |
| UX & Perf | Build Metrics Telemetry & Month Jump Picker Cost-component & wall-vs-work charts, worktree trade-offs, human estimates & TopBar month picker | Gemini 4 Neon | 10m 27s | 20 | 159.6k | 2.10M | 60.9k | 2.32M | $1.71 | 14h 10–18h | Parallelizable Self-contained Recharts analytics panels, critical-path estimate math, and TopBar month popover. |
| UX & Perf | UX Pass · TopBar Cluster, Active Tabs & Org Tiers Interactive HTML mockups, unified TopBar cluster, active-only status tabs, org tier bars & deploy | Gemini 4 Neon | 24m 30s | 71 | 267.0k | 17.28M | 91.4k | 17.64M | $4.76 | 12h 9–15h | Partial (after contracts) Stakeholder mockup approval gates the cross-app TopBar, segmented Tabs, and HierarchyBars rollout. |
| UX & Perf | Full-Stack Performance & Bundle Optimization Pass SWR cache & hover prefetch, 9 PG indexes, collapsed API hops, memoized grid rows & -32%/-39% JS bundles | Gemini 4 Neon | 19m 20s | 77 | 430.7k | 17.43M | 112.5k | 17.97M | $5.59 | 16h 12–20h | Parallelizable DB indexing, SQL query collapsing, client SWR caching, React memoization, and bundle splitting. |
| Total (26 records · wall-clock 4h 16m 11s) | 7h 23m 28s (agent sum) | 985 | 10.55M | 187.72M | 1.67M | 199.93M | $56.65 | 254h | 5-dev critical path: 138h (17.3d) | ||
Token counts reflect actual recorded usage across all 985 model calls spanning 26 workstreams in 21 agent transcripts, priced at published Gemini 4 Neon ($3.00 raw input, $0.00 implicit cache write, $0.15 cache read with 95% implicit cache hit discount, $15.00 output per 1M, flat across unified 1m-token context window) and Gemini 4 Hydrogen ($1.50 raw input, $0.00 implicit cache write, $0.075 cache read, $7.50 output per 1M) rates.
Wall-clock timings distinguish human-in-the-loop Planning (1h 33m 47s) from autonomous Core Build & Launch (1h 0m 35s), Post-Launch Polish (45m 9s), and Telemetry, UX & Performance passes (56m 40s) for 4h 16m 11s total active build time vs. 7h 23m 28s cumulative agent execution across filtered workstreams. Human estimates reflect a senior full-stack TypeScript/Next.js/PostgreSQL engineer (including schema design, RBAC, DB indexing, profiling, tests, and deploy) with an ideal 5-engineer critical path capped by sequential contract, merge, and release gates. Managed Railway container & PostgreSQL hosting are billed separately.