---
title: "whoopgate"
url: "https://claudemods.dev/ko/builds/whoopgate-5a14a8"
source: "https://github.com/ShriD5/claude-mods/tree/main/whoopgate"
source_type: "github"
repo: "https://github.com/ShriD5/claude-mods/tree/main/whoopgate"
author: "ShriD5"
author_handle: "ShriD5"
stars: 2
category: "보안 및 개인정보"
categories: ["security"]
tags: ["bash-guard", "claude-code", "hooks", "safety", "status-line", "whoop"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add ShriD5/claude-mods\nclaude plugin install whoopgate"
added: "2026-10-05T01:59:57.363Z"
updated: "2026-10-04T18:19:52Z"
locale: "ko"
content_locale: "ko"
---

# whoopgate

실시간 WHOOP 심박수를 표시하고 심박수가 설정 가능한 한도를 넘으면 위험한 Bash 명령을 막는 Claude Code mod입니다.

## Description

whoopgate는 실시간 WHOOP 심박수를 Claude Code 상태 줄에 표시하고 값이 한도 이상이면 위험한 Bash 명령을 차단합니다. 배포, 강제 push, rm -rf, 게시, PR 병합, terraform apply, 파괴적인 SQL을 보호합니다. whoopgate breathe를 실행한 뒤 92 bpm 미만을 20초 유지하면 2분 잠금 해제 창이 열립니다. 설정 hooks와 상태 줄을 프로세스 안에서 처리하지만 Bluetooth로 밴드를 읽는 whoopgate daemon은 여전히 필요합니다. WHOOP app에서 Heart Rate Broadcast를 켜고 whoopgate daemon과 claude --plugin-dir /path/to/claude-mods/whoopgate를 실행하거나 /plugin으로 설치합니다. 이 mod와 whoopgate install을 함께 사용하지 마세요. threshold（기본 100 bpm）, ~/.whoopgate/config.json의 calmBpm·unlockSeconds·extraPatterns, whoopgate pause를 지원하며 sim.sh는 밴드 없는 데모를 제공합니다. 30초보다 오래된 값은 알 수 없음으로 처리해 차단하지 않습니다.

## Install

```
claude plugin marketplace add ShriD5/claude-mods
claude plugin install whoopgate
```

## Original README

# whoopgate

Claude Code won't touch prod while your heart is racing.

This mod puts your live WHOOP heart rate in the status line (`♥ 87`) and blocks risky Bash commands while it is at or over your limit (`❤️ 112 · deploys locked`). Deploys, force pushes, `rm -rf`, publishes, PR merges, `terraform apply`, destructive SQL: the same list as the whoopgate CLI. To unlock, run `whoopgate breathe` and stay under 92 bpm for 20 seconds. That opens a 2 minute window.

It is the in-process version of whoopgate's settings hooks and status line. You still run the whoopgate daemon, which reads the band over Bluetooth.

## Install

```sh
whoopgate daemon                                  # WHOOP app > Heart Rate Broadcast on
claude --plugin-dir /path/to/claude-mods/whoopgate
```

Or add the repo as a marketplace and install it with `/plugin`. Use the mod or `whoopgate install`, not both, or every risky command is checked twice.

- Status line: `♥ 87`, `❤️ 112 · deploys locked`, `♥ 112 · unlocked 1:43`, `♡ whoop offline`. Refreshed every 2 s.
- `/pulse` shows the current bpm, the threshold and the unlock state.

## Options

| Option | Default | What it does |
| --- | --- | --- |
| `threshold` | `100` | bpm at or above which risky commands are blocked |

The mod also follows `~/.whoopgate/config.json` for `calmBpm` and `unlockSeconds` (what the deny message tells you) and `extraPatterns` (your own risky regexes), and honours `whoopgate pause`.

## Demo without a band

`sim.sh` writes a **simulated** heart rate to `~/.whoopgate/hr.json` (with `"device": "SIMULATED"`). Stop the real daemon first.

```sh
./sim.sh 120        # hold around 120 bpm
./sim.sh ramp       # climb from 80 to 125
./sim.sh unlock 60  # act as if `whoopgate breathe` worked
```

## How it works

A `$.clock.every` timer reads `~/.whoopgate/hr.json` for the status line, and a `tool.call` hook on Bash reads it again and returns `{ deny }` for a risky command while the reading is over the limit. A reading older than 30 s counts as unknown and never blocks.
