Consul Agent - Development Cost Estimate
Analysis Date: March 5, 2026
Project Duration: 108 calendar days (November 17, 2025 - March 5, 2026)
Codebase Metrics
Lines of Code
| Component | Lines | Files |
|---|
| apps/web (Next.js Frontend) | 76,034 | 458 |
| apps/agents (Mastra AI) | 69,484 | 214 |
| apps/messaging (Bun/Hono Gateway) | 10,037 | ~25 |
| packages/ui (Shared Components) | 3,818 | 83 |
| packages/shared (Types/Utils) | 673 | 6 |
| supabase (Edge Functions) | 2,247 | 8 |
| scripts (Dev/Ops Tools) | 9,109 | 46 |
| SQL Migrations | 4,058 | 23 |
| Tests | 4,991 | 18 |
| Total | 175,460 | 896 |
Complexity Indicators
| Metric | Count |
|---|
| AI Tools (createTool) | 137 |
| Workflows (createWorkflow) | 12 |
| API Endpoints | 116 |
| Async Functions | 893 |
| Error Handlers (try/catch) | 267 |
| Zod Validation Schemas | 477 |
| Database Tables | 56 |
External Integrations (High Complexity)
- Supabase - PostgreSQL with RLS, Auth, Edge Functions
- OpenAI - GPT-4.1 for AI agents, embeddings
- Google APIs - Gmail, Calendar, Drive, Docs, Contacts (5 OAuth flows)
- Slack - OAuth integration, messaging
- Inngest - Background job orchestration
- Turso/LibSQL - Mastra memory storage
- Stripe - Subscription billing
- Photon/iMessage - Native messaging bridge
- Upstash - Redis caching
Development Time Estimate
Base Development Hours by Complexity
| Category | Lines | Rate (lines/hr) | Hours |
|---|
| Simple UI/CRUD (components, basic pages) | 13,818 | 40 | 345 |
| Standard Business Logic (routes, lib, pages) | 69,782 | 25 | 2,791 |
| Complex AI/LLM Logic (agents, tools, workflows) | 60,000 | 15 | 4,000 |
| Integration Code (OAuth, webhooks, messaging) | 18,037 | 15 | 1,202 |
| Database/SQL (migrations, schemas, RLS) | 6,305 | 20 | 315 |
| Tests | 4,991 | 32 | 156 |
| Base Coding Hours | 175,460 | — | 8,809 |
Overhead Multipliers
| Activity | Percentage | Hours |
|---|
| Architecture & Design | +18% | 1,586 |
| Debugging & Troubleshooting | +28% | 2,467 |
| Code Review & Refactoring | +12% | 1,057 |
| Documentation | +12% | 1,057 |
| Integration & Testing | +22% | 1,938 |
| Learning Curve (Mastra, AI frameworks) | +18% | 1,586 |
| Total Overhead | +110% | 9,691 |
Total Estimated Development Hours
18,500 hours (8,809 base + 9,691 overhead)
Market Rate Research (2025-2026)
Senior Full-Stack Developer Rates (US)
| Market Segment | Hourly Rate | Annual Equivalent |
|---|
| Remote / Mid-Market | $60-80/hr | $120-160K |
| Standard US Market | $90-120/hr | $180-240K |
| SF Bay Area / NYC | $130-175/hr | $260-350K |
| AI/LLM Specialist | $125-200/hr | $250-400K |
Recommended Rate for This Project: $125/hr
Rationale: This project requires specialized skills across multiple premium domains:
- Next.js 16 + TypeScript (frontend)
- Mastra AI framework (novel, cutting-edge)
- LLM orchestration (OpenAI integration)
- OAuth complexity (5+ Google scopes)
- Real-time messaging (iMessage bridge)
- Production infrastructure (Inngest, Turso, Supabase)
Sources:
Total Engineering Cost Estimate
| Scenario | Hourly Rate | Total Hours | Total Cost |
|---|
| Low-end | $75 | 18,500 | $1,387,500 |
| Average | $125 | 18,500 | $2,312,500 |
| High-end (SF/Specialist) | $175 | 18,500 | $3,237,500 |
Recommended Estimate (Engineering Only): 1.4M−3.2M
Realistic Calendar Time (Organizational Overhead)
Real companies don't have developers coding 40 hours/week. Weekly coding time varies by company stage:
| Company Type | Efficiency | Coding Hrs/Week | Calendar Time (1 dev) | 3-Person Team |
|---|
| Solo/Startup (lean) | 65% | 26 hrs | 13.7 years | 4.6 years |
| Growth Company | 55% | 22 hrs | 16.2 years | 5.4 years |
| Enterprise | 45% | 18 hrs | 19.8 years | 6.6 years |
Note: These estimates assume traditional human development without AI assistance.
Full Team Cost (All Roles)
Engineering doesn't ship products alone. Here's the fully-loaded team cost:
| Company Stage | Team Multiplier | Engineering Cost | Full Team Cost |
|---|
| Solo/Founder | 1.0× | $2,312,500 | $2,312,500 |
| Lean Startup | 1.45× | $2,312,500 | $3,353,125 |
| Growth Company | 2.2× | $2,312,500 | $5,087,500 |
| Enterprise | 2.65× | $2,312,500 | $6,128,125 |
Role Breakdown (Growth Company)
| Role | Hours | Rate | Cost |
|---|
| Engineering | 18,500 hrs | $125/hr | $2,312,500 |
| Product Management | 5,550 hrs | $150/hr | $832,500 |
| UX/UI Design | 4,625 hrs | $125/hr | $578,125 |
| Engineering Management | 2,775 hrs | $175/hr | $485,625 |
| QA/Testing | 3,700 hrs | $100/hr | $370,000 |
| Project Management | 1,850 hrs | $125/hr | $231,250 |
| Technical Writing | 925 hrs | $100/hr | $92,500 |
| DevOps/Platform | 2,775 hrs | $150/hr | $416,250 |
| TOTAL | 40,700 hrs | | $5,318,750 |
Claude ROI Analysis
Project Timeline
| Metric | Value |
|---|
| First commit | November 17, 2025 |
| Latest commit | March 5, 2026 |
| Total calendar time | 108 days (15.4 weeks) |
| Total commits | 752 |
| Unique days with commits | 70 |
Claude Active Hours Estimate
Based on commit clustering analysis:
| Session Type | Count | Hours/Session | Total Hours |
|---|
| Heavy sessions (30+ commits/day) | 15 | 7 hrs | 105 |
| Medium sessions (15-30 commits) | 25 | 4 hrs | 100 |
| Light sessions (1-15 commits) | 30 | 2 hrs | 60 |
| Total Estimated Claude Hours | 70 | | 265 hours |
Value per Claude Hour
| Value Basis | Total Value | Claude Hours | $/Claude Hour |
|---|
| Engineering only (avg) | $2,312,500 | 265 hrs | $8,726/hr |
| Full team (Lean Startup) | $3,353,125 | 265 hrs | $12,654/hr |
| Full team (Growth Co) | $5,087,500 | 265 hrs | $19,198/hr |
Speed vs. Human Developer
| Metric | Value |
|---|
| Estimated human hours for same work | 18,500 hours |
| Claude active hours | 265 hours |
| Speed multiplier | 70× (Claude was 70× faster) |
Cost Comparison
| Item | Cost |
|---|
| Human developer cost (traditional) | 2,312,500(at125/hr × 18,500 hrs) |
| Estimated Claude cost (Pro subscription + API) | ~3,000(108days× 28/day avg) |
| Net savings | $2,309,500 |
| ROI | 770× (every 1spentonClaudeproduced770 of value) |
Grand Total Summary
| Metric | Solo | Lean Startup | Growth Co | Enterprise |
|---|
| Calendar Time (traditional) | 13.7 yrs | 4.6 yrs (3 devs) | 2.7 yrs (5 devs) | 1.6 yrs (10 devs) |
| Actual Time (with Claude) | 3.5 months | 3.5 months | 3.5 months | 3.5 months |
| Total Human Hours Equivalent | 18,500 | 40,700 | 40,700 | 48,900 |
| Total Cost (traditional) | $2.3M | $3.4M | $5.1M | $6.1M |
Key Findings
The Headline Numbers
Claude worked for approximately 265 hours and produced the equivalent of 2.3Minprofessionalengineeringvalue—roughly8,700 per Claude hour.
At Growth Company scale (including PM, Design, QA), the value produced was 5.1M—approximately19,200 per Claude hour.
Assumptions
- Rates based on US market averages (2025-2026)
- Full-time equivalent allocation for all roles
- Includes complete implementation of production features
- Does not include:
- Marketing & sales
- Legal & compliance
- Office/equipment
- Hosting/infrastructure costs
- Ongoing maintenance post-launch
Time Savings with AI-Assisted Development
| Metric | Traditional | With Claude | Improvement |
|---|
| Development time | 13.7 years (solo) | 3.5 months | 47× faster |
| Cost efficiency | $125/hr (human) | $11/hr effective | 11× cheaper |
| Features shipped | Sequential | Parallel | Qualitative leap |
Report generated March 5, 2026