Developer turns Claude Code into an open-source personal trainer: CoAIch and 4 hard-won lessons
cubetes · reddit · 2026-10-13
Since March, the author has been building CoAIch, an open-source (AGPL-3.0) Claude Code plugin acting as a personal trainer, with 14 skills mostly written by Claude Code itself (v0.3.0 preview, used weekly by the author). It imports workouts from Strong/Hevy/openGym and steps/weight/sleep/body metrics from Apple Health, builds and audits programs, sets weekly targets with per-target reasoning, and runs reviews.
Lessons learned:
- Don't let the model do the maths — early versions drifted; now every number comes from a small tested Python script, and Claude just runs it and explains results.
- Safety rules in code, not prompts — prompts get skipped in long conversations; medical clearance, pain red flags, per-lift explicit OK for spine-loaded increases, and frozen weekly targets are enforced by scripts that refuse to continue.
- Plain files beat a database — CSV for sets, Markdown for plans, JSON for targets: Claude-readable, human-readable, git-friendly.
- Privacy took more work than expected — no server, no telemetry; optional photo review strips faces on-device with Apple Vision before Claude sees anything.
Try it with made-up data via the examples/demo-athlete folder in the repo.
More from coding & agent
- Claude Code Pushes Urgent Security Update Across All Installations — umeshonai · 2026-10-23
- Claude cut a 2.6-hour video export to 20 minutes — but only after being told to rebuild the server — byhewar · 2026-10-23
- 3 flight-booking rules my AI agent checks that I'd never do by hand — Efistoffeles · 2026-10-23
- OpenJet claims Qwen3.8-27B coding runs 1.9x faster than llama.cpp on one RTX 3090 — JeremyCMorgan · 2026-10-23
- Building an autonomous SEO agent in Hermes with three skills: programmatic pages, Keywords Everywhere, DataForSEO — EXM7777 · 2026-10-23
- Building a sports betting AI agent with onchain execution and human approval by default: architecture and lessons — Dry-Comfortable-2678 · 2026-10-23