Free for macOS ยท Claude Code
Turn Claude Code tokens into reps
Claude Gains watches your Claude Code sessions through hooks, scores the work Claude does, and drops a quick workout (squats, pushups, a plank) at natural breaks. It runs locally on your Mac and never interrupts Claude mid-response.
npx claude-gains initNode 22.18 or later and Claude Code. Swift (Xcode Command Line Tools) for the menu bar app.
How it works
Claude does the work. You bank the reps.
1. Track
Hooks record the session
Prompts, tool calls, subagents and finished turns are logged as sizes and timestamps. Token counts come from the session transcript when Claude stops.
2. Score
Work becomes Workload Points
Tokens, tool calls, active minutes and shipped tasks roll into one daily score. A heavy day lands around 450 WP; past your goal, points accrue at 25%.
3. Drop
A workout lands at a break
When Claude stops and enough points are banked, you get a set sized to the work: 20 squats after a big refactor, a 60-second plank after a long review.
Curious how the hooks are wired? Read the Claude Code hooks walkthrough.
What you get
Seven async hooks
Installs into ~/.claude/settings.json with a backup. Hooks run async with a 300 ms budget, so Claude never waits on them.
Workload Points
Tokens, tool calls, active minutes and finished tasks roll up into one daily score that decides how much you owe.
Drops at natural breaks
A workout lands only after Claude stops (or every session has been idle 2 minutes), 30 to 90 active minutes apart.
Randomized sets
Squats, pushups, lunges, sit-ups, planks and more, sized to the workload you banked. Swap any exercise you can't do.
Menu bar app
Daily progress in the menu bar, the open workout one click away, and native notifications with Done, Snooze and Skip.
Local only
Prompt text and tool payloads are stripped to sizes. Everything lives in a SQLite file in ~/.claude-gains.
Set up in four steps
- 1
Install
Run npx claude-gains init. It installs the hooks, a login service for the daemon, and the menu bar app.
- 2
Allow notifications
macOS asks once. Say yes, or drops will only show in the menu bar.
- 3
Restart Claude Code
Sessions load hooks at startup, so restart any that are already open. Run claude-gains doctor to confirm.
- 4
Code as usual
Your first drop lands after 30 to 90 active minutes, the next time Claude stops.
Commands
| claude-gains status | Today's reps, streak and workload |
| claude-gains done | Complete the open workout |
| claude-gains snooze 15 | Push it back 5, 15 or 30 minutes |
| claude-gains pause 60 | Pause tracking for an hour (or until resume) |
| claude-gains doctor | Check hooks, daemon and notifications |
| claude-gains uninstall | Remove hooks and the login service, keep your data |
FAQ
Claude Gains FAQ
Does Claude Gains slow down Claude Code?+
Does it send my code or prompts anywhere?+
Will a workout interrupt Claude mid-response?+
How are tokens counted?+
What do I need to install it?+
How do I uninstall it?+
Is Claude Gains made by Anthropic?+
More from AI Drops
Tools for people who build with Claude
- Follow the labs you use
- Push alerts + plain-language summaries
- Every new AI model release
- 110+ slash commands, always current
- Two quiz modes plus Mixed
- Full searchable command library
- 1,000 exam-style practice questions
- Full timed mock exams, scored like the real thing
- Daily 5 challenge + built-in certification guide
Cooldown
Your Claude limits, and when they reset
- Session and weekly limits at a glance
- Countdowns and alerts for every reset
- Widgets, Apple Watch and a Mac menu bar