What is secret-guard?
secret-guard is a Claude Code mod by joeldg that holds back a prompt that looks like it carries a secret (API keys, tokens, access-key pairs, private keys, passwords) before it reaches the transcript, puts it back in the box, and offers. It is listed under Security and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | joeldg |
| Repository | joeldg/claude-mods |
| Popularity | 1 GitHub stars |
| Category | Security |
| Security | Review before installing (60/100) |
| Rank | #1,873 of 5,272 Claude Code mods; #221 in Security |
| Last commit | 2026-10-16 |
| Hooks | 5 events |
| Sees | every prompt |
| Draws on | AbovePrompt |
Is secret-guard safe to install?
secret-guard scores 60/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 4 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 no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.prompt.fill | writes the prompt box |
$.state.get | |
$.state.set | |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install secret-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/joeldg/claude-mods claude plugin validate ./claude-mods/secret-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/joeldg/claude-mods && claude --plugin-dir ./claude-mods/secret-guard
Or ask Claude to set it up
Paste this into Claude Code and it installs secret-guard for you:
Install the "secret-guard" Claude Code mod from https://github.com/joeldg/claude-mods/tree/main/secret-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from joeldg/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- dev-servers: A Servers pane for this project's dev servers: what is listening, on which port, since when, with Start, Stop, Restart a (Review before installing)
- downloads-drop: Notices files that land in Downloads while you work (PDFs, 3MF models, images, notes) and offers them in a band above th (Low risk)
- effort-router: Routes each turn's effort from your prompt: git housekeeping replies ("merged", "commit and push", "push it") run at low (Review before installing)
- job-watch: Live pane of long-running jobs (training, downloads, extractions): progress, ETA, stalls and finishes, read from their l (Review before installing)
- machine-guard: Memory, swap, GPU and the CPU cores macOS is using on the status line, and a machine_status tool for Claude; refuses hea (Review before installing)
- mod-monitor: Watches how your other mods really behave: hook failures and slow hooks (read off the chain's own trace), what each one (High risk)
- modal-meter: Watches your Modal apps from the CLI, in projects that use Modal: running apps and containers on the status line, a toas (Review before installing)
- pr-autopilot: Watches your open pull requests: CI pass/fail toasts for the PRs you open here, failing-check logs attached when you men (Review before installing)