Claude Gains app icon

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 init
App details โ†’

Node 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. 1

    Install

    Run npx claude-gains init. It installs the hooks, a login service for the daemon, and the menu bar app.

  2. 2

    Allow notifications

    macOS asks once. Say yes, or drops will only show in the menu bar.

  3. 3

    Restart Claude Code

    Sessions load hooks at startup, so restart any that are already open. Run claude-gains doctor to confirm.

  4. 4

    Code as usual

    Your first drop lands after 30 to 90 active minutes, the next time Claude stops.

Commands

claude-gains statusToday's reps, streak and workload
claude-gains doneComplete the open workout
claude-gains snooze 15Push it back 5, 15 or 30 minutes
claude-gains pause 60Pause tracking for an hour (or until resume)
claude-gains doctorCheck hooks, daemon and notifications
claude-gains uninstallRemove hooks and the login service, keep your data

FAQ

Claude Gains FAQ

Does Claude Gains slow down Claude Code?+
No. Its hooks are async, so Claude Code does not wait for them, and each one gives up after 300 ms. If the daemon is down, events are written to a local spool file and replayed later.
Does it send my code or prompts anywhere?+
No. Hooks strip prompt text and tool payloads down to their sizes before anything is recorded, and all data stays in a SQLite database in ~/.claude-gains on your Mac. There is no account and no server.
Will a workout interrupt Claude mid-response?+
No. A drop only lands when Claude has just stopped, or when every session has been idle for 2 minutes, and never more often than every 30 to 90 active minutes.
How are tokens counted?+
Hooks carry no token counts, so when a turn ends Claude Gains reads the session transcript from where it left off and adds up input, output and cache-write tokens by message. Cache reads are excluded so long sessions are not over-counted.
What do I need to install it?+
Node 22.18 or later and Claude Code. The menu bar app is built on install with Swift, which comes with the Xcode Command Line Tools (xcode-select --install). Without Swift, everything else still works from the terminal and the local dashboard.
How do I uninstall it?+
Run claude-gains uninstall. It removes only its own hook entries from ~/.claude/settings.json and the login service, and keeps your history in ~/.claude-gains in case you come back.
Is Claude Gains made by Anthropic?+
No. Claude Gains is an independent tool from AI Drops. It is not affiliated with or endorsed by Anthropic.

More from AI Drops

Tools for people who build with Claude

AI Drops app icon

AI Drops

Every Claude, OpenAI & Cursor release

  • Follow the labs you use
  • Push alerts + plain-language summaries
  • Every new AI model release
/cards app icon

/cards

Master every slash command

  • 110+ slash commands, always current
  • Two quiz modes plus Mixed
  • Full searchable command library
Claude Prep app icon

Claude Prep

Pass the Claude Certified Architect exam

  • 1,000 exam-style practice questions
  • Full timed mock exams, scored like the real thing
  • Daily 5 challenge + built-in certification guide
Cooldown app icon

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