Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mgiovaniv1.0.0MITIn 1 marketplace
Blocks your next prompt until you drink water — verified live by your webcam. Fail-open, 100% local.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your AI watches you drink water. water-gate blocks your next Claude Code prompt until your webcam sees you take a sip. 100% local, and it fails open: a broken camera or a missing dependency never locks you out.
"My AI won't let me code until I hydrate."
UserPromptSubmit hook runs on every prompt: pure stdlib, sub-50ms when no drink is due.person / hand / mouth / tilt / cup) so you can see exactly what it sees.prompt → due? → webcam window → sip detected → debt cleared → prompt proceeds
│
└─ camera missing / uv missing / timeout / crash → prompt proceeds anyway
/plugin marketplace add mgiovani/water-gate
/plugin install water-gate@water-gate
Requirements:
uv: curl -LsSf https://astral.sh/uv/install.sh | shuvDev / local testing without publishing:
claude --plugin-dir ./water-gate
| key | default | meaning |
|---|---|---|
enabled | true | master switch |
blocking | true | aborting the sip blocks the prompt; false = just nags |
trigger.mode | time | time | prompts | roulette |
trigger.minutes_every | 30 | (time) minutes between challenges |
trigger.prompts_every | 15 | (prompts) challenge every N prompts |
trigger.roulette_pct | 10 | (roulette) % chance per prompt |
sips_per_challenge | 1 | sips required to clear debt |
anti_cheat | true | look for a bottle/cup near your mouth; a seen vessel or a head-tilt-back counts the sip. false = head-tilt required |
hold_seconds | 1.5 | continuous hold to count a sip |
countdown_seconds | 3 | pre-detection countdown |
Set any key: /water config trigger.mode roulette. Other controls:
/water disable (re-enable with /water enable)export WATER_GATE_OFF=1/water, a prefix that is always ungated/water status/water testThe camera feed never leaves your machine. No frames are saved to disk, no network upload, no telemetry, no analytics, nothing phoning home. MediaPipe inference runs entirely locally. The only network call water-gate ever makes is a one-time model download from Google's public MediaPipe model host, the first time it needs a model it doesn't have yet. Read watergate/challenge.py to check: it's the one file that touches the webcam, and it's short enough to read in five minutes.
water-gate detects the gesture of drinking, not the liquid. No on-device model can verify there's actually water in your cup: it cannot tell water from coffee, soda, or an empty glass you're pretending with. If you're willing to fake a sip to avoid drinking water, that's between you and your kidneys. This is a hydration nudge, not a courtroom.
No webcam, no uv, a MediaPipe crash, a timeout, a weird OS error: your prompt goes through. The only thing that blocks your prompt is explicitly aborting a sip challenge (pressing ESC or closing the window) while blocking is true. Every other failure mode logs a reason to ~/.water-gate/gate.log and lets you proceed. This will never lock you out of your own editor.
Does it store video? No. Frames are processed in memory, frame by frame, and discarded.
Why does a Terminal window pop up? macOS silently hands a backgrounded webcam process black frames, with no permission prompt and no error. Running the challenge in a foreground Terminal is what makes the camera permission (and the picture) actually work.
Can I cheat it? Yes, trivially. It's a nudge, not a lock.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mgiovani/water-gate --plugin water-gatePlugins from other owners that cover similar ground