← Projects
Published 2026-10-29[ Status · active ]

Garmin Coach

A self-hosted training dashboard for Garmin data, with Claude drafting training plans that I accept or reject.

clojureclojurescriptclaude apisports sciencemaps

Garmin Coach turns the data from my watch into a training dashboard with Claude as the coach. It brings TrainingPeaks-style metrics, a season plan up to race day and a 3D map of everywhere I have been. It runs on your own machine or a small server, installs with one line on Windows or Linux, and is open source under the MIT license.

Why I built it

I spend much of my free time in the mountains, trail running and cycling, and I wanted more from my own training data: the analysis you know from TrainingPeaks and a plan that adapts to how things actually go, without another subscription. I also wanted my health and GPS data to live on my own disk. Only the summaries the coach needs are sent to Claude.

A coach that asks first

Claude lays out the whole season, from base training through the taper to race week, and keeps the next two weeks planned in detail. When I sleep badly, miss a session or report that I am sick, the app signals that the plan should change and Claude can propose a new one. Nothing changes until I accept it. A finished workout can be sent to the watch with one button.

Season plan chart with weekly training load from base to race week
The season plan: weekly load targets over 23 weeks, with regular easier weeks and a taper before race day.
A planned training week with runs, gym sessions and a hike
One week in detail: a duration for every session, plus distance and heart-rate targets for the runs.

Training numbers

Every morning one page shows training readiness, sleep, heart rate variability, resting heart rate and Body Battery, and sums them up in one line of advice. When Garmin gives no readiness score, the app rebuilds it from the raw data using six factors fitted to my past Garmin scores. For longer trends it computes fitness, fatigue and form, the training stress of every activity, and a cycling power curve.

Chart of fitness, fatigue and form over 180 days
Fitness (CTL), fatigue (ATL) and form (TSB) over the last 180 days.

Maps and summits

All GPS activities come together in a heatmap on 3D terrain. The app also checks every track against 11.9 million summits worldwide, each rising at least 30 m above its surroundings. Pass close enough to a top and it counts as bagged.

3D satellite view of the Bernese Alps with activity tracks and summit markers
Activity tracks on 3D terrain. Bagged summits are red, the others grey.
Overview of bagged peaks with totals and the highest summit
Peak bagging statistics. A track has to pass within 75 m of the top.

Engineering decisions

  • Claude proposes, code checks. Every planned week is checked against written training principles, such as recovery, intensity distribution and the spacing of hard sessions. Problems appear as warnings next to the plan, and the decision stays with the athlete.
  • Local first. Data is stored in a local SQLite database that keeps the original source data on every row. Syncing only reads. The app writes to Garmin or COROS only when you send a workout to your device.
  • Visible costs. Every Claude request is logged with its tokens and cost. Background work uses the Batches API at half the price.
  • Filling the gaps. A load model fitted to Garmin's own numbers also scores activities Garmin never saw, such as rides recorded on a COROS bike computer.

Built with

Clojure (Reitit, Ring, next.jdbc, Malli) and SQLite on the server. ClojureScript with shadow-cljs and Replicant in the browser, plus ECharts, Leaflet and MapLibre GL for charts and maps. Claude is connected through the official Java SDK, Garmin and COROS data through MCP servers and the Garmin FIT SDK.

As of 26 November 2026, four weeks after the first commit, the repository counted 170 commits and 46 releases. The app speaks English, German and French.

What I learned

An AI coach is only useful if you can trust it. That is why the language model is one part of the system, surrounded by checks in plain code and a human who has the last word. The other lesson is that vendor metrics are not magic: with enough of your own data, you can rebuild a useful version of them and understand what goes into it.