Building an AI-Native Fitness Platform with an Autonomous Command Center

How I designed and built Fitly AI, a full-stack AI coaching platform with intelligent backend agents, real-time monitoring, and a self-improving system. Built with Claude Code and Codex.

Product
Fitly AI
Industry
Health & Fitness
Platform
iOS, Web, API
AI Stack
Claude + Custom Agents
Coming soon. Join the waitlist.
www.fitly.chat

More Than a Chatbot. An AI That Actually Does Things.

The fitness app market is saturated with calorie counters and workout loggers that bolt on a chatbot as an afterthought. I wanted Fitly AI to be different: an AI-native platform where every interaction happens through natural conversation. Users talk to their coach; the AI logs meals from photos, generates personalized workouts, tracks macros, and adapts over time.

But here's the real challenge: when an AI is making thousands of decisions per day (estimating calories from a blurry food photo, choosing the right exercises for a bad knee, deciding when to escalate to a more powerful model) you need visibility and control. You need a command center.

"How do you monitor, manage, and continuously improve an AI system that's autonomously coaching hundreds of users without hiring a team of people to babysit it?"

Fitly AI mobile chat showing meal logging with photo recognition and macro breakdown

A Three-Layer AI System

A conversational AI coach on the front end, an intelligent command center in the middle, and autonomous agents working behind the scenes.

The AI Coach

A chat-first mobile experience where users interact through natural conversation instead of tapping through forms. The AI understands context, remembers preferences, and takes real actions.

  • Vision-powered meal logging. Snap a photo, AI identifies food and estimates macros with clarifying questions before committing
  • 30+ specialized AI tools. Structured actions for logging, querying, planning, and updating fitness data
  • Intelligent model routing. Lightweight model handles simple requests; complex ones auto-escalate to Claude Opus
  • Real-time streaming. SSE-based responses with typewriter effect for a natural coaching feel
  • Personalized workout & meal plans. Generated from user goals, injuries, dietary preferences, and available equipment
Fitly AI coach generating workout plans and conversation flow

The Command Center

A real-time operational dashboard that gives full visibility into what the AI is doing, how users are responding, and where the system needs attention. Every conversation reviewable. Every decision traceable.

Fitly AI Command Center dashboard showing user metrics, messages per day, and AI usage
  • Conversation browser. Search, filter, and review any user conversation with full AI response and tool call details
  • Feedback analysis. Aggregate user signals (thumbs up/down) to identify where the AI struggles and prioritize improvements
  • AI cost tracking. Per-model usage and spend analytics so you always know what your AI is costing
  • Content management. Built-in CMS for SEO content with a publishing pipeline and approval workflows

16 Autonomous Agents

A framework of specialized bots and AI agents that handle backend operations without human intervention, with a human-in-the-loop approval system for sensitive actions. Each agent has its own tools, schedule, and domain of responsibility.

Orchestrators. Coordinate other agents.
👑
Chief
Product orchestrator. Manages app health, system status, daily operational briefs.
🎭
Maestro
Marketing orchestrator. Coordinates campaigns, content calendar, outreach.
System Monitors. Always-on health checks.
🫀
Pulse
Infrastructure health. Database latency, memory, CPU, uptime, every 5 minutes.
🛡️
Sentinel
Security monitoring. Failed logins, revoked token abuse, threat detection.
💰
Ledger
Billing health. Subscription counts, failed payments, MRR tracking.
🔍
Patrol
Data quality. Orphaned records, missing profiles, broken references.
🔬
Scout
QA smoke testing. Validates data integrity and catches anomalies.
Specialists. Domain experts with tools.
✍️
Quill
Content & copywriting. Hooks, captions, email copy, landing pages.
🧭
Compass
Strategy lead. Campaign angles, messaging priorities, A/B test hypotheses.
📡
Beacon
Social media. Platform adaptation, content calendars, posting strategy.
🎨
Canvas
Creative briefs. Storyboards, carousel layouts, visual execution plans.
🔎
Lens
Analytics. Post performance, hook analysis, retention insights, growth metrics.
📢
Echo
Community intelligence. Sentiment analysis, reviews, testimonial discovery.
📰
Herald
PR & outreach. Podcast pitches, creator outreach, partnership emails.
🕵️
Scout Intel
Competitive intelligence. Competitor monitoring, trends, content gaps.
🔄
Pipeline
Funnel & email. Lead nurturing sequences, conversion optimization.

Key Technical Decisions

The architecture patterns that make Fitly AI reliable, cost-effective, and ready to scale.

Provider-Agnostic AI

An abstraction layer lets us swap between Claude and OpenAI without changing business logic. Adapters handle each provider's quirks. Future-proof against model changes and price shifts.

Intelligent Context Caching

User context split into stable (profile, goals) and volatile (today's meals) layers, cached in Redis with surgical invalidation. Reduced prompt overhead by 90%.

Structured AI Output

Every AI response validated against a TypeScript schema before rendering. Actions are type-safe and database-ready. Display components are structured data, not raw text.

Real-Time Streaming

SSE-based chat with token-level events. API stays under 200ms. Heavy work dispatched to async job queues. Users see responses building in real time.

Self-Improving System

Passive collection of conversations, user corrections, and feedback signals. The AI gets smarter from usage. No manual labeling, no user friction.

Enterprise-Grade Security

Encryption at rest and in transit. Full audit trail on every data mutation. Pre-signed URLs for media. JWT auth with refresh tokens. Role-based admin access.

CLIENTS📱iOS App🖥️Command Center🤖External AgentsCORE PLATFORMAPI ServerExpress + TypeScriptMCP ServerAgent ProtocolBot Framework16 Autonomous AgentsAI LAYERClaude AI🔗OpenAI (backup)Provider Abstraction LayerDATA & SERVICES🐘PostgreSQLRedis + Bull Queue📦AWS S3 + CDN💳StripeTRAINING DATA PIPELINEConversationsUser CorrectionsFeedback SignalsUsage Logs

What I Delivered

30+
AI Tools Built
40+
API Endpoints
25+
Database Models
16
Autonomous Agents
Claude CodeCodexTypeScriptReact NativeNext.js

Need an AI Command Center for Your Product?

Every AI product needs more than a model and a prompt. You need observability, feedback loops, autonomous agents, and a system that improves itself over time. I build these systems. See my full service offerings or get in touch.

AI Chat InterfacesCommand Center DashboardsAutonomous Agent FrameworksMCP IntegrationsTraining Data PipelinesReal-Time Streaming
Let's Talk