What is pii-guard?
pii-guard is a Claude Code mod by dave-net-positive that holds prompts, @file contents and Read results that contain PII or secrets behind a review pane with per-type allow/redact decisions. It is listed under Security and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | dave-net-positive |
| Repository | dave-net-positive/Claude_Code_PII_Redactor |
| Popularity | 2 GitHub stars |
| Category | Security |
| Security | High risk (48/100) |
| Rank | #2,321 of 9,397 Claude Code mods; #281 in Security |
| License | MIT |
| Last commit | 2026-10-11 |
| Hooks | 9 events |
| Sees | Read calls, classic hooks, every prompt, mcp__pii-guard__pii_patterns calls |
| Draws on | Pane |
Is pii-guard safe to install?
pii-guard scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.list | |
$.command.register | |
$.config.list | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.surfaces | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.register | drives Claude |
$.ui.ask | draws interface |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install pii-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/dave-net-positive/Claude_Code_PII_Redactor claude plugin validate ./Claude_Code_PII_Redactor/pii-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add dave-net-positive/Claude_Code_PII_Redactor && claude plugin install pii-guard@net-positive-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs pii-guard for you:
Install the "pii-guard" Claude Code mod from https://github.com/dave-net-positive/Claude_Code_PII_Redactor/tree/main/pii-guard. Run claude plugin validate on it first and show me what it can access before you enable it.