ποΈ The first open-source AI Strength & Conditioning Coach powered by scientific research.
English Β· FranΓ§ais Β· EspaΓ±ol Β· Deutsch Β· Italiano
It runs inside an AI agent CLI β a terminal program you chat with, such as Claude Code, Gemini CLI, or Codex β and turns it into a professional coach that designs, explains, monitors, and adapts your training. No backend, no API key, no hosting, no extra subscription. And it will tell you the truth when your goal is unrealistic:
$ claude
> I run 10K in 55:00. I want 35:00 in 12 weeks.
ποΈ Coach: I evaluated your goal with the feasibility engine:
Probability: 0.2% β I have to be honest, this is unrealistic.
You're asking for a 36% improvement β about 3%/week sustained
for 12 weeks. Beginners sustain roughly 1%/week.
Counter-proposal: 46:30 in 12 weeks (~78% probability),
then we reassess. Want me to build that program?
LLM fitness coaches have two failure modes: they invent scientific references, and they tell you what you want to hear. PerformanceAgent is architected so neither is possible:
LLMs narrate, the engine calculates. Every number β feasibility probabilities, race predictions, training loads, periodization waves β comes from a deterministic, property-tested Python engine. The agent explains the math; it never does the math.Citations can't be hallucinated. The coach may only cite studies returned by the local evidence corpus (graded, DOI/PMID-verified). The PDF renderer hard-fails on any reference that isn't in the corpus.Your data is files, not a cloud. Profile, programs, session logs, and check-ins live in a plain directory of markdown/YAML you can read, edit, diff, and sync.
PerformanceAgent isn't an app you open β it plugs into an AI agent CLI. Once plugged in, you just talk to it in plain language; no config files, no commands to memorize.
Never used Claude Code before? Install it first:
curl -fsSL https://claude.ai/install.sh | bash
(full instructions: code.claude.com/docs). You'll also need uv β it fetches the right Python version by itself, nothing else to install.
Step 1 β plug in the coach. Run this once, from any terminal:
claude mcp add performance-agent -s user \
--env PERFORMANCE_AGENT_HOME=~/athlete-data -- uvx performance-agent
This registers the coach's "brain" (the engine, the science library, your future
athlete profile) as a tool Claude Code can call. -s user
makes it available in any
folder you later open claude
from. ~/athlete-data
is just a suggested path β pick any folder, it doesn't need to exist yet: the coach creates it the first time it saves something. That's where all your data lives as plain files; nothing is sent anywhere.
Step 2 β teach it how to coach. Step 1 gave Claude the tools (the math, the data). This step gives it the coaching protocols β when to ask what, when to be honest about a goal, how to build a program:
git clone --depth 1 https://github.com/clementrx/Performance-agent
mkdir -p ~/.claude/skills
cp -R Performance-agent/skills/* ~/.claude/skills/
Step 3 β fully quit and restart Claude Code. New tools load only when a claude
session starts: close any open session completely and run claude
again.
Check it worked β in the fresh session, ask:
> List the performance-agent tools.
You should see 47 tools. If so, you're done β just talk to it.
Open a terminal and start your agent(claude
).Say your goal in plain languageβ any language works."I want to run a 10K under 50 minutes","PrΓ©pare-moi pour un Hyrox".Answer the coach's questions. First time, it runs a short onboarding (current level, history, schedule, equipment) and saves your profile.Get an honest verdict. The feasibility engine scores your goal; if it's out of reach, you get the real probability and a counter-proposal.Say yesβ the program is written toathlete/programs/program-v1.md
, periodized into cycles with deloads and taper, every prescription carrying its purpose, evidence grade (β
β
β
β
β
β β
ββββ), and verified citations.After each workout, log it in one lineβ"Logged: 8 km easy, RPE 4".Every couple of weeks, say "Check-in"β the coach compares plan vs. reality, quotes your training load, and flags drift.** When life happens**β"I tweaked my ankle","I can only train twice next week"β the program is adapted and versioned (program-v2.md
) with the reason recorded in the audit trail.
Feasibility numbers below come from the deterministic engine β run it yourself and you'll get the same ones. Want to see the resulting program files? Each of these three conversations ends with a full program β browse them in examples/, in all five languages.
> I want to run a 10K under 50 minutes. I have 5 months. Coach me.
ποΈ Coach: Two facts before I judge that goal: your current 10K time,
and how long you've been training consistently?
> I ran 55:12 last month. About a year of running, 3Γ a week.
ποΈ Coach: Feasibility over your 21-week horizon:
Probability: 84% β realistic, and worth committing to.
You need a 9.5% improvement, i.e. 0.45%/week, while a runner at
your training age can sustain about 1%/week. Comfortable margin.
Want me to build the program?
> Yes.
π Program written to athlete/programs/program-v1.md
21 weeks, 3 runs/week: one interval session, one tempo, one long
run β periodized with deloads and a 10-day taper.
> I signed up for a Hyrox in 3 months. Build me a plan.
ποΈ Coach: Hyrox is 8 km of running broken up by 8 strength stations β
so we train both, together. Three facts: your 10K time (or best
guess), your strength background, and days per week you can train?
> 10K around 52 min, I lift twice a week, I can do 4 sessions.
ποΈ Coach: Good base for a strong first finish. Honest note: 12 weeks
is enough to finish well and enjoy it; chasing a podium time would
need a longer runway β I'd rather tell you now.
Plan on 4 days: one running-interval day, one station-strength day
(sled work, lunges, wall balls), one "compromised running" brick
(run β station β run, the skill Hyrox actually tests), one easy
long run. Deloads weeks 4 and 8, race-week taper. Build it?
> Yes.
π Program written to athlete/programs/program-v1.md
> I want visible abs and bigger arms in 3 months.
ποΈ Coach: Those are two different physiological goals β arms grow
with volume and enough calories; abs show at low body fat, which
usually means a deficit. Before I promise anything: height, weight,
training experience, and sessions per week?
> 1.78 m, 82 kg, two years of lifting, 4 sessions a week.
ποΈ Coach: Honest verdict: in 12 weeks you can make real progress on
both, but not maximize both β recomposition is slow at two years
of training. The realistic version:
- Moderate calorie deficit with a high protein target (the
Nutritionist skill quantifies it, with safety guards).
- Upper-body priority: 12β16 hard sets/week for arms, heavy
compound work kept in to protect strength in the deficit.
- 3 lifting days + 1 conditioning day.
- Expected at week 12: visibly fuller arms, abs "outlined" if
you start around 15β18% body fat; leaner than that takes longer,
and I'll say so at every check-in rather than let you guess.
Want the program?
> Yes.
π Program written to athlete/programs/program-v1.md
The MCP server (engine, science, data) speaks a standard protocol β MCP β that most AI coding tools understand. The coaching skills are packaged in Claude Code's native skill format; elsewhere you paste the same instructions into that tool's own "custom instructions" file.
| Client | MCP tools | Coaching skills |
|---|---|---|
| Claude Code | β native (steps above) | β native |
| Gemini CLI | β native | GEMINI.md |
| Codex | β native | AGENTS.md |
| Cursor | β native | .cursor/rules/*.mdc |
| Windsurf | β native | |
| VS Code (GitHub Copilot) | β native | .github/copilot-instructions.md |
| Cline (VS Code extension) | β native | .clinerules/ |
Setup commands for each, PDF reports (requires typst
), data-directory resolution,
and troubleshooting: docs/installing.md. Any other tool that
supports MCP servers works with the same uvx performance-agent
command.
Just here to use the coach? Skip this β it's for the curious and for contributors.
flowchart TB
U[You] <--> H[Your agent CLI<br/>Claude Code Β· Gemini CLI Β· Codex<br/>= the coach: converses, reasons, adapts]
H <-->|MCP| S[performance-agent server]
H -.follows.-> SK[Coaching skills<br/>onboarding Β· needs analysis Β· deep research Β·
planning Β· optimization Β· nutrition Β· review Β· check-ins Β· adaptation]
S --> E[Sports science engine<br/>deterministic Β· property-tested Β· zero LLM]
S --> EV[(Evidence corpus<br/>graded studies, SQLite FTS5)]
S --> M[(Athlete directory<br/>profile Β· programs Β· logs β plain files)]
S --> R[Typst PDF reports<br/>coach & expert modes Β· en/fr/es]
The skills encode professional coaching protocols (what to ask, when to be honest, how to periodize, when to deload). The MCP tools own every fact. The agent you already use glues it together with your existing subscription β zero additional LLM cost.
Working today: deterministic engine (1RM estimation, Riegel race prediction, session-RPE load & ACWR, goal feasibility, periodization waves; 597 tests incl. property-based) Β· 47 MCP tools Β· file-based athlete memory with versioned programs and an adaptation audit trail Β· DOI/PMID/ISBN-verified evidence corpus with anti-fabrication citation checks Β· live evidence search (PubMed, OpenAlex, Crossref, Semantic Scholar) behind a double verification gate Β· eleven coaching skills incl. a mandatory delivery gate with an adversarial second opinion Β· Typst PDF reports (en/fr/es) behind a hard citation gate.
Roadmap: corpus growth toward ~200 studies Β· outcome simulation (Banister + Monte Carlo) Β· more sports verticals (Hyrox-specific engine tools, football, tennis) Β· optional web front-end reusing the same MCP server.
Evidence firstβ systematic reviews β meta-analyses β RCTs β cohorts β expert opinion; every recommendation shows its grade, and thin evidence is labeled as such.Honest by constructionβ unrealistic goals get honest probabilities with the drivers behind them; contested metrics carry their caveats.** Agent-native**β your CLI agent is the interface; your subscription is the compute; your filesystem is the database.** Long-term athlete memory**β no conversation starts from zero.
The engine is a pure Python package you can use directly:
from performance_agent.engine import TrainingAge, endurance_feasibility
verdict = endurance_feasibility(
current_time_s=3300, target_time_s=2100, weeks=12, training_age=TrainingAge.BEGINNER
)
verdict.probability # 0.0023 β with improvement_needed, required and achievable rates
Repository layout: src/performance_agent
(engine, evidence, memory, reports, MCP
server) Β· skills/
(coaching protocols) Β· docs/
(install & usage) Β·
examples/
(full sample conversations in five languages).
Early development, moving fast β see CONTRIBUTING.md for the dev setup and review conventions. Sports scientists and S&C coaches: the evidence-grading pipeline will need expert reviewers β watch this space.
Apache-2.0 β see LICENSE.