ClaudeMods
☰
KO
● — 명 접속 중 · 조회 — 회
후원프로젝트 제출
GitHub 저장소 · 작성자 ShriD5

whoopgate

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

번역 완료

이 mod 소개

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초보다 오래된 값은 알 수 없음으로 처리해 차단하지 않습니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add ShriD5/claude-mods
claude plugin install whoopgate
원문 / 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

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.

./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.

배지 받기

내 프로젝트인가요? 이 배지를 README나 웹사이트에 넣으면 이 페이지로 연결됩니다.

Featured on ClaudeMods
크기
테마
Markdown
HTML

비슷한 프로젝트