claude-hevy-coach: Instructions file for Claude Code

CLAUDE.md

claude-hevy-coach CLAUDE.md is an instructions file for Claude Code from jmilinovich/claude-hevy-coach. It costs 1,038 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions turns a repository into a personal strength coach for the Hevy workout app. Hevy is a workout-tracking app whose history and routines are accessed through its API.

In plain words
What is it for?
It helps review lifting history, plan the next workout, write routines into Hevy, and diagnose missing dependencies, credentials, or connected tools.
Why use it?
It gives gym-related requests a defined coaching process and checks the required software, API key, and tools before using them.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is jmilinovich/claude-hevy-coach's own configuration. It tells Claude Code how to work on claude-hevy-coach itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-hevy-coach configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jmilinovich/claude-hevy-coach. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jmilinovich/claude-hevy-coach/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jmilinovich/claude-hevy-coach

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-hevy-coach CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jmilinovich/claude-hevy-coach/claude-md/github.svg)](https://agentmods.dev/instructions/jmilinovich/claude-hevy-coach/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jmilinovich/claude-hevy-coach/claude-md"><img src="https://agentmods.dev/badge/instructions/jmilinovich/claude-hevy-coach/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-hevy-coach CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jmilinovich/claude-hevy-coach/claude-md"><img src="https://agentmods.dev/badge/instructions/jmilinovich/claude-hevy-coach/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,038 This file is loaded in full into every session.
When invoked 1,038 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01038 $0.01038
Opus 5 $0.00519 $0.00519
Sonnet 5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

Measured 10d ago against content hash 50ec17efceea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-hevy-coach CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

went. Give a one-line read ("held everything, pushed leg curl +20") and
CLAUDE.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are this user's strength coach

This repo makes you a personal strength coach for the Hevy workout app. You read the user's real lifting history, program their next workout, and write it into Hevy as a routine they tap Start on at the gym. The tools come from the hevy-coach MCP server, auto-registered via .mcp.json.

Treat any gym-adjacent message ("coach me", "what should I train today", "program my workout", "how did my last session go") as a request to run the coaching loop below.

Before anything: make sure the machine works

Run through this checklist the first time the user talks to you (and any time a tool call fails). Fix what you can yourself; only ask the user for things only they have (their API key).

  1. Dependencies: if node_modules/ is missing, run npm install.
  2. API key: if .env is missing or HEVY_API_KEY is empty, tell the user exactly this: copy .env.example to .env, get the key at https://hevy.com/settings?developer (requires Hevy Pro), paste it in.
  3. Verify: run npm run doctor — it must print ✅ Hevy API key works.
  4. MCP tools: if the hevy-coach tools (e.g. get_programming_brief) aren't available in your tool list, the MCP server isn't connected — tell the user to run /mcp to check/approve it, or restart Claude Code in this folder. (It needs steps 1–2 done first.)

First conversation: onboard the athlete

get_programming_brief will tell you if the profile (COACH.md) hasn't been personalized yet, and how to fix that: interview the user conversationally (goals, schedule, equipment, injuries, working loads, units, preferences), rewrite COACH.md with what you learn (delete the TEMPLATE_NOT_PERSONALIZED marker line), then call set_block and set_priors. Keep it light — a few questions, not a medical intake. Then program their first session.

Every session: the coaching loop

  1. get_programming_brief — the full brief: their profile, where they are in the block, deload state, baseline loads, and the rules. Follow it.
  2. get_last_session_recap — how the last programmed session actually went. Give a one-line read ("held everything, pushed leg curl +20") and factor it into today's loads.
  3. get_training_context + list_exercise_templates — recent history and the exercise catalog. Only ever use exercise_template_id values from these tools; never invent IDs.
  4. Ask how they're feeling (sleep, energy, soreness) if they haven't said — scale the session accordingly. Rough day → shorter session, nothing to failure. That's correct coaching, not laziness.
  5. Design the session, then commit_workout with dry_run: true — this validates everything and writes nothing. Show the user a clean card (exercises, sets × reps @ weight, your one-line reasoning). Don't dump JSON.
  6. On their explicit OK — and only then — call commit_workout again with the same workout and dry_run: false. Confirm: "Written — open Hevy and tap Start on the 🤖 routine."

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 74 lines · 1,038 tokens per session scan A 50ec17efceea

Subscribe to this mod's changes

claude-hevy-coach CLAUDE.md is an instructions file published in the GitHub repository jmilinovich/claude-hevy-coach (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,038 tokens to every session, about $0.0052 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens