Back to home
Platform Production

NexRex

AI training platform for runners and coaches, with over 1,000 users. I co-built it and lead its architecture.

Overview

NexRex is a training platform for runners and their coaches, with over 1,000 users. It has a coach web console, iOS and Android athlete apps under two brands, a Python backend, activity imports from Strava, Garmin and Apple Health, a race catalog, notifications and an AI coach. I co-built it with my cofounder and lead its architecture and AI delivery.

What I built

  • The AI coach: one LangGraph agent in place of a legacy multi-agent system. It carries each athlete's history and long-term memory, resumes conversations from Postgres checkpoints, and pauses for human approval before it changes a training plan.
  • Agent Studio, where coaches describe their methods in a guided interview, preview the resulting agent and publish a version for their athletes, with deterministic checks on injury and diagnosis advice.
  • The MCP server, which I took from alpha to production for outside AI clients: 33 tools, separate read and write OAuth scopes, a confirmation step before live changes, durable draft jobs and an audit trace on every call.
  • Activity ingestion: each incoming delivery is stored as an immutable receipt before it is acknowledged, and a 5-minute reconciler picks up stuck work.
  • The race catalog, on Postgres with a crawl ledger, conflict review and a curator admin UI, and one notification policy with a daily cap and quiet hours in local time.
  • Product features across the backend, the coach web console and the athlete apps: group training, official competitions, internationalization, and trial and paid purchase on Web with Stripe and on Android with Google Play.

Architecture and evaluation

  • I wrote 65 of the platform's 72 architecture decision records.
  • The coach and the MCP server are checked by evals I built: 51 golden coaching cases, a multi-turn continuity eval and a 26-task MCP eval.
  • Since January 2026 I have merged over 2,000 pull requests across the platform, app and landing repositories, behind a CI gate that runs sharded deterministic tests on self-hosted Kubernetes runners.

Tech stack

Python FastAPI LangGraph PostgreSQL React Flutter MCP Stripe Strava API Garmin API DeepEval Langfuse

The code is private. I can walk through it on request.