Home / Claude Code mods / Security / secret-guard

secret-guard

secret-guard is a Claude Code mod by joaosavi that hides every secret value in tool output as before the agent reads it, MCP and subagent output included, and writes the real value back when the agent puts the placeholder into a .env or.

Updated 2026-11-18

What is secret-guard?

secret-guard is a Claude Code mod by joaosavi that hides every secret value in tool output as before the agent reads it, MCP and subagent output included, and writes the real value back when the agent puts the placeholder into a .env or. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorjoaosavi
Repositoryjoaosavi/cockpit
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (60/100)
Rank#6,629 of 9,397 Claude Code mods; #708 in Security
LicenseMIT
Last commit2026-11-18
Hooks3 events
Seesevery tool call
Draws onnothing

Is secret-guard safe to install?

secret-guard scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.session.id

How do I install secret-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/joaosavi/cockpit
    claude plugin validate ./cockpit/secret-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add joaosavi/cockpit && claude plugin install secret-guard@cockpit

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/joaosavi/cockpit/tree/main/secret-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from joaosavi/cockpit

This repository has at least 9 Claude Code mods on MCPMods.

  • collision-guard: Warns when two Claude Code sessions on this machine edit the same file, and holds a git command once when it would stage (Review before installing)
  • hud: A heads-up display under or above the prompt: model, branch, context and plan limits, and memory headroom. /hud opens th (Review before installing)
  • loop-breaker: Notices when the agent goes in circles (repeated fix attempts on one file, the same error coming back, the same call rep (Review before installing)
  • memory-guard: Keeps typecheck, build, test and Playwright runs under the memory limit, the tightest cgroup limit on Linux or the machi (Review before installing)
  • panel: A local web page with a card for every Claude Code session on this machine: whether it waits for you, what it needs, wha (High risk)
  • pipefail: Adds set -o pipefail to a command that pipes a test, typecheck or lint run into tail, head or grep, so a failing run can (Review before installing)
  • recall: Searches the ai-memory server for the words of each request and adds the best matching memory pages to it, as the hook's (High risk)
  • skill-loader: Loads the right skill at the right moment, so CLAUDE.md needs no load-this-skill rules: typescript-best-practices for .t (Review before installing)