Scan your whole stack
Are you using hookbrake?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
hookbrake was last scanned on 28 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 28 Nov 2026 | No rules fired |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Git-aware loop circuit-breaker, PostToolUse secret vault, lossless-pointer test/diff compactor, and local session waste auditor for AI coding agents.
Autonomous coding agents (Claude Code, OpenAI Codex CLI, Gemini CLI, Cursor) regularly hit four failure modes at the tool-execution boundary:
pytest command or re-reads the exact same unchanged file 5 times in a row, burning quota without changing a single byte on disk.pytest traceback dump, cargo test run, or git diff package-lock.json injects 30,000+ chars into context, forcing premature compaction loops.PreToolUse command checks miss secrets printed at runtime (cat output, verbose env traces, debug HTTP responses), writing raw tokens straight into cloud LLM context and .jsonl transcripts.Instead of shipping another static token counter or regex one-liner, HookBrake handles both retroactive proof (hookbrake audit) and real-time runtime interception (hookbrake hook) in one pure-stdlib Python CLI (<30ms per hook call, zero external dependencies).
Before enabling any hook, measure how much waste happened in your past Claude Code, Codex CLI, or Gemini CLI transcripts:
pip install -e .
hookbrake audit
=== HookBrake Session Waste Audit ===
Sessions scanned: 14
Tool calls scanned: 612
Oversized outputs: 19
Compaction savings: 184,320 chars (~46,080 tokens)
Secrets exposed: 2
Breakdown: {'GITHUB_PAT': 1, 'OPENAI_KEY': 1}
Stalled loops detected: 5
- Bash repeated 4x in session-a18f.jsonl
Cache-break events: 3
- Turn 19 (session-a18f.jsonl): cache_read dropped 42,100 -> 1,800 while cache_creation spiked to 41,200
# Claude Code (~/.claude/settings.json)
hookbrake install --claude
# Gemini CLI (~/.gemini/settings.json) and Cursor (~/.cursor/hooks.json)
hookbrake install --claude --gemini --cursor
(Backups are automatically saved to `.hookbrake.bak. Remove cleanly anytime withhookbrake install --claude --uninstall`.)*
PreToolUse — Git-Aware Loop Breaker & Firewall(tool_name, args, git_state_hash) in SQLite (~/.hookbrake/state.db), including mtime/size of dirty files. Editing code and re-running pytest is allowed; re-running the identical failing command 3 times with zero file edits trips the breaker (exit code 2) and prompts the agent to change strategy.A -> B -> A -> B non-edit cycles.rm -rf /|~, curl | bash, git push --force main|master, .env/SSH key exfiltration, and tampering with hook config files.--strict-tests) if an agent writes @pytest.mark.skip, it.skip, assert True, or except Exception: pass into test files.PostToolUse — Secret Vault & Lossless-Pointer Diet<REDACTED:TYPE:sha6> markers before tool output enters LLM context.package-lock.json, poetry.lock, uv.lock, Cargo.lock) inside git diff while leaving source code diffs untouched.pytest, unittest, jest, cargo test, and go test while preserving failing assertions and tracebacks.~/.hookbrake/artifacts/<sha>.log and appends the exact path so nothing is lost.hookbrake audit [path] [--agent all|claude|codex|gemini] [--json]
hookbrake compact <file|-> [--threshold 4000] [--save-artifacts] [--json]
hookbrake redact <file|-> [--json]
hookbrake install [--claude] [--gemini] [--cursor] [--uninstall]
hookbrake stats [--json]
hookbrake.toml)Optional overrides in project root (hookbrake.toml) or ~/.hookbrake/config.toml:
max_identical_retries = 3
max_unchanged_rereads = 3
max_ping_pong_cycles = 4
compact_threshold_chars = 4000
redact_secrets = true
block_destructive_commands = true
block_exfiltration = true
check_test_tampering = true
strict_tests = false
| Focus | Existing Single-Purpose Scripts | HookBrake |
|---|---|---|
| Loop Detection | Naive consecutive command counting | SQLite + git status/mtime state fingerprint (allows real TDD edits) |
| PostToolUse Diet | Truncation cuts off bottom tracebacks | Lockfile-aware + test-failure-preserving + raw log artifact pointer |
| Secret Safety | Blocks cat .env in PreToolUse only |
Scrubs leaked tokens inside runtime tool stdout in PostToolUse |
| Harness Scope | Single agent (usually Claude-only) | Normalized adapters for Claude Code, Gemini CLI, Cursor, generic JSON |
| Audit Before Install | Separate log viewer script | Built-in hookbrake audit across Claude, Codex, and Gemini logs |
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.