tsetse012

Jev Hook Guard — Data skill for Claude Code

Data community

What a Claude Code hook must do before it sends text to an external judgment API: mask secrets and personal data, refuse secret dumps, honour exclusion words and session pins, post safely, never block.

How to install Jev Hook Guard

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tsetse012/jev-hook-guard and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Jev Hook Guard does

What a Claude Code hook must do before it sends text to an external judgment API: mask secrets and personal data, refuse secret dumps, honour exclusion words and session pins, post safely, never block the session. Python, stdlib only.

Alternatives in Data

  • Claudoscope — 29 Native macOS menu bar app for Claude Code session analytics 58 ★
  • Jev Cookbook — Practical, tested recipes for TypeSafe's Jev decision model on OpenRouter: support triage, database indexing 28 ★
  • Kakashi Mask — Mask sensitive data in a file using Kakashi (writes masked_ , agent-safe) 20 ★

README

**English** | [한국어](README.ko.md)

jev-hook-guard

![A prompt passes the kill switch, the exclusion words, the refusal check, masking and a last check before one masked line is sent to the judgment API](docs/img/hero.png)

**The checks a Claude Code hook runs before it sends text to an external judgment API.**

A Claude Code hook that asks a remote model for a judgment (TypeSafe Jev's `/v1/systemone`, or any HTTP judge) sends text from your session off your machine: the prompt you typed, a tool call, the last assistant message. That text carries API keys, phone numbers, client names and file paths. `jev_hook_guard.py` is one standard-library Python module that runs in front of that send. It stops sessions that touched topics you listed, refuses inputs that look like a secret dump, masks what is left, checks the result once more, and posts with no redirects and a hard time limit; a wrapper script keeps a broken hook from blocking your session. It is for anyone writing a Claude Code hook or an agent sidecar that calls a judgment API. It is not a guarantee: it is a set of regular-expression rules applied as the last step before the send, tested against 52 adversarial cases from two independent reviews, and every new kind of secret needs its own rule.

What leaves the machine, what never does

Item Where it goes
Masked text, at most limit characters (600 by default) to the endpoint you set
Your question wording and the model name to the endpoint you set
The API key only in the Authorization header, only to an https endpoint (or http on 127.0.0.1, localhost, [::1]), never to a second host after a redirect
Unmasked text of any kind: the prompt, tool input, tool output never
Anything from a session after an exclusion hit in user text, assistant text, the working directory or the transcript path never, for the rest of that session
An input that looks like a secret dump: URL credentials, a secret label, two or more `NA