360° Data Athlete
An AI coach for endurance and strength athletes that runs entirely
inside Claude Code. A team of
specialised sub-agents (planner, three workout specialists, plan
validator, post-activity analyst, video analyst, clinical consultant,
two research agents) collaborate to
plan, push, and review training — grounded in intervals.icu, Garmin
and (optionally) Telegram.
This repository is the open-source engine, free to self-host. A
managed, turnkey version — same coaching core, no setup — is hosted at
360dataathlete.com for people who'd
rather not run it themselves.
Experimental, self-hosted, and not medical advice. It began as a
coding experiment with multi-agent systems, with sport training as the
problem domain, and still evolves weekly. On the self-hosted path there
is no warranty, no support, and no audit — and it does not replace
a coach or sports-medical advice. Use it with a solid training
background, at your own risk.
What it does
Six things you actually get out of it — each grounded in the mechanism
that produces it:
- A fresh plan every day. Produced same-day from your morning HRV,
CTL / ATL / TSB, sleep, weather and race calendar — never a pre-baked
weekly block. The plan reflects how you actually woke up.
- Ask it anything. The coach is a chat session. Plan today, question
a session, report a niggle, adjust on the fly — plain language, in the
terminal or (optionally) Telegram.
- Fits real life. Travelled, slept badly, missed a day? It re-plans
same-day around the disruption instead of guilting you back onto a fixed
schedule.
- Understands your runs.
/analyse computes the lap figures in code
(HR zones, pace / GAP, running dynamics, decoupling) and turns them into
concise coaching feedback.
- Keeps you healthy. HRV-gated intensity, evidence-based deload weeks,
active injury locks, and a mechanical + semantic validator that blocks a
bad plan before it can reach you. A clinical-consultant agent (physio
with orthopaedic depth) acts as a debate partner — not a substitute
for real care.
- The right shoe, every run. A shoe advisor rotates your fleet by
surface and accumulated mileage, so no single pair takes all the load.
Under the hood there's also a video form check (Gemini, for strength /
core / ninja and running), evidence research with a citation check
(/research), and a consistency scanner that catches drift across
configs and agents — with the exercise-log slice auto-surfaced at every
session start, so stale progression entries are noticed right away.
Framing
This is not a multi-agent example. For pure multi-agent orchestration
there are better-fitting frameworks (LangChain / LangGraph, AutoGen,
CrewAI). What this project explores is something else: Claude Code as
a general-purpose agent harness, applied to a domain that isn't code.
Claude Code is usually marketed for software engineering — but it
already ships everything you need to drive a long-running, file-backed,
sub-agent-orchestrating workflow against a real-world domain: namespaced
sub-agents with isolated context, slash commands, hooks, MCP servers,
plugins, persistent state in plain files, terminal + Telegram surfaces.
Training planning is the test bench: it has conflicting constraints
(HRV vs. schedule, injury vs. progression, weather vs. pillar rotation),
persistent state across days, and an actual human (the maintainer) who
pushes back when the system gets it wrong. Every rule in the framework
exists because at some point that pushback exposed a gap.
If you came for the agent design, the
architecture doc, agents/*.md, and
framework/CLAUDE.md are the interesting parts. If you came for
training: read on.
How the daily planning works
The /training command is the central workflow — this is what actually
runs when an athlete says "plan today". The flow is deliberately
multi-stage so each stage has the right context and nothing else.
fetch_context → planner → specialists (per workout)
↓
cross-workout review
↓
mechanical validator + semantic plan-validator
↓
present to athlete
↓
accept → push to intervals.icu
1. Context (fetch_context.py)
A single Python entry point pulls everything the planner needs and
normalises it into one JSON blob: