The claude-gym-coach plugin for Claude Code functions as an automated training assistant. It manages workout programs, tracks progress, and analyzes performance data using a combination of LLM reasoning and a Node.js script for mathematical calculations. The tool is open-source under the MIT license and operates within the user's existing Claude Code environment.

The system uses a set of specific commands to manage training. The /coach:init command handles user onboarding, including PAR-Q+ health screenings, while /coach:import allows users to digitize paper logs. The /coach:plan command generates workouts based on historical data, and /coach:log records session results via voice input. A /coach:review command provides long-term performance analytics.

Data security is maintained by keeping all records in local files within a single folder, which can be managed via Git. The system avoids cloud databases, though session synchronization requires an active internet connection through Anthropic servers while the Claude Code session is live. The Node.js script handles all calculations, including e1RM, linear regression for trends, and plate loading, to prevent LLM arithmetic errors.

Safety protocols are integrated into the plugin. The system includes automated health checks, such as the PAR-Q+ questionnaire, and restricts programming for users under 18 or those with specific medical conditions. It also features a pain-tracking system that adjusts training loads based on reported discomfort levels and refuses to provide dosages for performance-enhancing drugs.