Claude Code hook

Workout Gate

Joke hook that blocks your prompt until you finish push-ups counted by webcam.

220 stars 23 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add BotchetDig/workout-gate
From source
git clone https://github.com/BotchetDig/workout-gate.git

From the README

Workout Gate 🏋️
Your AI works hard, so should you.

A Claude Code and Codex hook that blocks your prompt until you work out —
push-ups or squats, counted live via webcam. When a challenge fires you pick
your pain (say 6 push-ups *or* 9 squats). Random reps, session-persistent debt
(no closing the tab to skip), streak stats, and three trigger modes.

*Version française : README.fr.md · made by @Botchet*

Requirements

- Python 3.9–3.13 — including the macOS system Python 3.9, so there's no newer Python to install.
- A webcam + an internet connection (first run downloads MediaPipe/OpenCV and a ~9 MB pose model).
- macOS for the zero-config plugin onboarding — it pops the setup in a Terminal and triggers the camera-permission dialog. Linux/Windows work too; Claude just points you at bootstrap.sh to run once by hand.
- git and python3 on your PATH.

Install

As a Claude Code plugin (CLI + desktop, recommended)

Then start a new session (or run /reload-plugins) — nothing happens
until you do. The plugin works in Claude Code CLI and desktop. Onboarding pops
up in a Terminal window on its own — dependencies install, then a 30-second
wizard (your max, trigger choice, a 2-pushup camera test). Until setup is done,
prompts pass freely. The gate and /workout-gate:workout then work in every
session, and plugin updates never break the install (the runtime lives in
~/.workout-gate/).

Also works in Codex (CLI + desktop)

The gate uses the same UserPromptSubmit hook in Codex — CLI and desktop.
From Codex, open /plugins, add the BotchetDig/workout-gate marketplace if
needed, then install workout-gate. Codex shows the hook review separately, so
approve the plugin hooks once with /hooks before testing a prompt.

Prefer terminal commands? After setup, wire it into all your Codex…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Python
License
MIT
Last updated
25 June 2026

FAQ

What is Workout Gate?

Joke hook that blocks your prompt until you finish push-ups counted by webcam. It is a hook for Claude Code, from BotchetDig/workout-gate on GitHub.

How do I install Workout Gate?

Run /plugin marketplace add BotchetDig/workout-gate inside Claude Code, then follow the setup in the README.

Is Workout Gate popular?

BotchetDig/workout-gate has 220 GitHub stars and 23 forks. It was last updated on 25 June 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.