CLAUDE.md@plugins/workspace-guardA

CLAUDE.md@plugins/workspace-guard from karlkfi/claude-bouncer is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add karlkfi/claude-bouncer/plugins/workspace-guard/CLAUDE.md@git:20260909.80d19b3

Pins git:20260909.80d19b3 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/workspace-guard/CLAUDE.md
Versions recorded
5
Latest version
git:20260909.80d19b3, committed Sep 9, 2026
First version recorded
Aug 22, 2026
Size
15,083 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

# workspace-guard

A Claude Code plugin that adds a `PreToolUse` hook for `Bash`. When a guarded command (`grep`, `sed`, `jq`, `awk`, `cat`, `head`, `tail`) is about to read or write a file outside `$CLAUDE_PROJECT_DIR`, the hook returns `ask` so the user can confirm; in-workspace files and pure pipelines are allowed silently. See `README.md` for the user-facing overview and the decision table.

The load-bearing piece is `scripts/bash-workspace-guard.py` — a stdlib-only Python script that tokenizes the command with `shlex`, classifies tokens against a per-command `SPEC` table, resolves file arguments with `realpath`, and emits a `PreToolUse` decision.

## Development philosophy

Build the right thing AND build it well. Before writing any code, state the goal in one sentence and the approach in two or three. If the goal is unclear, ask one focused question rather than guessing.

Make the smallest change that achieves the goal. If you notice problems outside the current task's scope, flag them rather than fixing them:
- New near-term work → file an item in the repo-root backlog, [`docs/queue/`](../../docs/queue/README.md), at the priority it deserves.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add karlkfi/claude-bouncer/plugins/workspace-guard/CLAUDE.md@sha256:bd0aec8aad9e23ec

The line at the top of this page pins the label git:20260909.80d19b3, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2c7j7uggt7uhxfik.svg)](https://markdownregistry.com/a/art_2c7j7uggt7uhxfik)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 22, 2026 and Sep 9, 2026, about one every 5 days.

versioncommittedcommitsizeaudit
git:20260909.80d19b3 latest2026-09-09 80d19b3 15,083 BA view · diff
git:20260903.6b674942026-09-03 6b67494 14,958 BA view · diff
git:20260822.d93f2022026-08-22 d93f202 14,326 BA view · diff
git:20260822.022a6cb2026-08-22 022a6cb 14,237 BA view · diff
git:20260822.b9e04052026-08-22 b9e0405 14,183 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (15083 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

GitHub

karlkfi/claude-bouncer · 13 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2c7j7uggt7uhxfik
GET https://markdownregistry.com/api/v1/resolve?ref=karlkfi/claude-bouncer/plugins/workspace-guard/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/bd0aec8aad9e23ec5a6a9238987916387b19fd4fec576e03967794d889a89b0e

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.

More from karlkfi/claude-bouncer

CLAUDE.md CLAUDE.md file
karlkfi/claude-bouncer · CLAUDE.md
git:20261006.8304e4f · audit A · 13 stars
CLAUDE.md@plugins/branch-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/branch-guard/CLAUDE.md
git:20261102.947e0a0 · audit A · 13 stars
AGENTS.md@plugins/exit-status-guard AGENTS.md file
karlkfi/claude-bouncer · plugins/exit-status-guard/AGENTS.md
git:20260822.9b36c53 · audit B · 13 stars
CLAUDE.md@plugins/exit-status-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/exit-status-guard/CLAUDE.md
git:20260824.627254a · audit A · 13 stars
CLAUDE.md@plugins/foreground-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/foreground-guard/CLAUDE.md
git:20261004.9e4ee8c · audit A · 13 stars
reduce-foreground-guard-prompts SKILL.md skill
karlkfi/claude-bouncer · plugins/foreground-guard/skills/reduce-foreground-guard-prompts/SKILL.md · Explain why foreground-guard is prompting on Bash commands and how to stop the avoidable prompts. Use when the user…
git:20261004.442c86e · audit A · 13 stars
CLAUDE.md@plugins/prod-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/prod-guard/CLAUDE.md
git:20261002.c0bf6c4 · audit A · 13 stars
AGENTS.md@plugins/workspace-guard AGENTS.md file
karlkfi/claude-bouncer · plugins/workspace-guard/AGENTS.md
git:20260822.b9e0405 · audit B · 13 stars
reduce-workspace-guard-prompts SKILL.md skill
karlkfi/claude-bouncer · plugins/workspace-guard/skills/reduce-workspace-guard-prompts/SKILL.md · Explain why workspace-guard is prompting on Bash file commands and how to stop the avoidable prompts. Use when the user…
git:20261004.442c86e · audit A · 13 stars

Every file in karlkfi/claude-bouncer

Browse by kind, by grade A, or by owner.