CLAUDE.md@plugins/branch-guardA
CLAUDE.md@plugins/branch-guard from karlkfi/claude-bouncer is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.
mdr add karlkfi/claude-bouncer/plugins/branch-guard/CLAUDE.md@git:20261102.947e0a0Pins git:20261102.947e0a0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- CLAUDE.md file
- Repository
- karlkfi/claude-bouncer
- Path
plugins/branch-guard/CLAUDE.md- Versions recorded
- 22
- Latest version
- git:20261102.947e0a0, committed Nov 2, 2026
- First version recorded
- Aug 23, 2026
- Size
- 67,880 bytes
- Repository stars
- 13
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# branch-guard A Claude Code plugin that adds a `PreToolUse` hook for `Bash`, `Edit`, `Write`, `MultiEdit`, and `NotebookEdit`. Its job is to **minimize routine git/branch approval prompts** (especially in `acceptEdits` and non-interactive modes) while keeping a human in the loop for protected-branch and destructive operations. For Bash it classifies each `git`/`gh` command and auto-approves the safe ones (read-only git/gh, staging, branch creation, fetch, a commit/push of a feature/worktree branch), asks before protected-branch or destructive ones (`reset --hard`, `clean -f`, a `branch -D` that would orphan commits, …), **denies** the two cases whose cause is a fact the session can check for itself rather than a judgement (a clean-worktree `reset --hard` onto a tip proved unreachable, in `classify_reset`, and a push onto a base that has moved into this branch's own lines, in `classify_git` — see `DENY_ROUTES`), and defers on anything it can't classify. For edits it asks when the file's repo is on a protected branch, unless the path is gitignored. See `README.md` for the user-facing overview and the decision tables. …
Read the whole file at its exact version.
How to install
mdr add karlkfi/claude-bouncer/plugins/branch-guard/CLAUDE.md@sha256:02c66136daefe19aThe line at the top of this page pins the label git:20261102.947e0a0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_7ujx5sefyrzjgq7i)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 22 versions of this file, between Aug 23, 2026 and Nov 2, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261102.947e0a0 latest | 2026-11-02 | 947e0a0 | 67,880 B | A | view · diff |
| git:20261102.0608cb6 | 2026-11-02 | 0608cb6 | 67,669 B | A | view · diff |
| git:20261102.034b9c6 | 2026-11-02 | 034b9c6 | 67,014 B | A | view · diff |
| git:20261101.653c4e1 | 2026-11-01 | 653c4e1 | 66,759 B | A | view · diff |
| git:20261026.ed37fcb | 2026-10-26 | ed37fcb | 66,596 B | A | view · diff |
| git:20261009.6ba89a6 | 2026-10-09 | 6ba89a6 | 65,655 B | A | view · diff |
| git:20261007.54fe0f2 | 2026-10-07 | 54fe0f2 | 65,414 B | A | view · diff |
| git:20261007.a17788e | 2026-10-07 | a17788e | 64,942 B | A | view · diff |
| git:20261006.40c19fe | 2026-10-06 | 40c19fe | 64,814 B | A | view · diff |
| git:20261006.ad9ff93 | 2026-10-06 | ad9ff93 | 64,820 B | A | view · diff |
| git:20261005.67ee2a6 | 2026-10-05 | 67ee2a6 | 64,504 B | A | view · diff |
| git:20261005.4383c5d | 2026-10-05 | 4383c5d | 64,244 B | A | view · diff |
| git:20261005.337decb | 2026-10-05 | 337decb | 64,260 B | A | view · diff |
| git:20261002.2decc20 | 2026-10-02 | 2decc20 | 63,803 B | A | view · diff |
| git:20260909.b9ca27c | 2026-09-09 | b9ca27c | 62,782 B | A | view · diff |
| git:20260909.b33ed66 | 2026-09-09 | b33ed66 | 60,445 B | A | view · diff |
| git:20260909.2f788e1 | 2026-09-09 | 2f788e1 | 59,807 B | A | view · diff |
| git:20260903.6b67494 | 2026-09-03 | 6b67494 | 58,392 B | A | view · diff |
| git:20260901.32b8442 | 2026-09-01 | 32b8442 | 57,572 B | A | view · diff |
| git:20260824.05d4c3c | 2026-08-24 | 05d4c3c | 56,790 B | A | view · diff |
| git:20260823.320d7a6 | 2026-08-23 | 320d7a6 | 55,550 B | A | view · diff |
| git:20260823.1cbca9f | 2026-08-23 | 1cbca9f | 55,071 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (67880 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
karlkfi/claude-bouncer · 13 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7ujx5sefyrzjgq7i GET https://markdownregistry.com/api/v1/resolve?ref=karlkfi/claude-bouncer/plugins/branch-guard/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/02c66136daefe19a2c9bb6e36357d0ceff5129f3a74b147d14d0f918403dc6ca
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.