secret-guard

by joeldg · ★ 3 · updated 13 days ago

BandsCommandsPromptwarnings

0

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 to save the secret as an env var in ~/.zshrc and send $NAME instead. No model calls.

install secret-guard

Install

git clone https://github.com/joeldg/claude-mods
claude --plugin-dir ./claude-mods/secret-guard

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startprompt.submitsession.appendcommand.runui.render
API calls
$.clock.now$.command.register$.env.get$.fs.exists$.fs.read$.fs.write$.prompt.fill$.state.get$.state.set$.ui.log$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
every prompt
Reach
level 2 of 3 writes fileswrites the prompt boxreads filesreads env varsreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/joeldg/claude-mods
Path in repo
secret-guard
Source commit
2eab818 the exact code the scan read
Author
@joeldg
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from joeldg/claude-mods

slicer-handoff

joeldg/claude-mods

Hands models to the right slicer: full-spectrum (Snapmaker U1) files Claude tries to open in Bambu Studio go to Snapmaker Orca instead, and previous slicer windows are gently quit first so they don't pile up. /slice opens a file the same way.

★ 3ToastsGuardsCommands

stall-alarm

joeldg/claude-mods

Raises the alarm when a long-running session stalls while you are away: a permission dialog or a question that has waited for you past a threshold (toast, Mac notification, optional phone push, repeated while it stays open), and a turn that stopped on a login, usage-limit or billing error, with the fix. Leaves scheduled routines to routine-watch. No model calls.

★ 3Status lineGuardsCommands

standing-orders

joeldg/claude-mods

Keeps the instructions you give Claude ("never…", "from now on…", "in this project…") as standing orders for the project or the session, offered in a band above the prompt, and hands them back to Claude after every compaction or /clear, with the active /goal. No model calls.

★ 3BandsCommandsPrompt

test-gardener

joeldg/claude-mods

Makes Claude consolidate tests instead of appending them. After it writes or edits a test file, a note names the test files that already cover the module, the near-duplicates and clones among the tests it just added, and a file past the size guideline; a tests_neighbourhood tool answers the same before tests are written; /tests audit lists the consolidations for the project (clones...

★ 3BandsGuardsCommands

usage-meter

joeldg/claude-mods

A machine-wide meter of the plan's rolling 5-hour usage: every session's turns summed as effective tokens, the cap learned from each session-limit hit, the burn on the status line, a toast before the wall, /usage and a usage_status tool so Claude can pace itself. No process runs, no model calls.

★ 3Status lineGuardsCommands

dev-servers

joeldg/claude-mods

A Servers pane for this project's dev servers: what is listening, on which port, since when, with Start, Stop, Restart and Log buttons; names the process holding a port when a command fails with EADDRINUSE; a read-only dev_servers tool for Claude. Scans with netstat (never lsof), one session for all; no model calls.

★ 3PanesStatus lineGuards

docs-gardener

joeldg/claude-mods

Keeps a project's markdown true to the project: deterministic checks (dead references, stale TODOs, duplicated paragraphs, orphans, dated series, oversized files, finished plans) at write time and from a docs_check tool, and /docs audit, which adds a model edit plan you apply item by item from a pane, or all at once for a scheduled run. Only /docs audit calls a model (one Haiku call per...

★ 3PanesGuardsCommands

downloads-drop

joeldg/claude-mods

Notices files that land in Downloads while you work (PDFs, 3MF models, images, notes) and offers them in a band above the prompt: Attach puts @"path" mentions in the prompt box, Dismiss clears them. /downloads lists the newest files and attaches any by number. No model calls.

★ 3BandsCommands

effort-router

joeldg/claude-mods

Routes each turn's effort from your prompt: git housekeeping replies ("merged", "commit and push", "push it") run at low effort, deep asks (review, audit, plan, why does...) at max, everything else (approvals like "yes" or "continue" included) at the session's own. Switches only when the prompt cache makes it worth it, never mid-turn. Caps every turn and subagent at a lower effort once...

★ 3Status lineCommandsPrompt

job-watch

joeldg/claude-mods

Live pane of long-running jobs (training, downloads, extractions) and the servers Claude starts: progress, ETA, stalls, exits and finishes, read from their logs with no model calls; jobs_list / jobs_watch / jobs_unwatch tools so Claude follows jobs instead of polling them.

★ 3PanesStatus lineGuards

machine-guard

joeldg/claude-mods

Memory, swap, GPU and the CPU cores macOS is using on the status line, and a machine_status tool for Claude; refuses heavy local jobs (training, inference, rendering, Docker) while memory is critical or the Mac is reserved with /busy.

★ 3Status lineGuardsCommands

mod-monitor

joeldg/claude-mods

Watches how your other mods really behave: hook failures and slow hooks (read off the chain's own trace), what each one did (toasts, status lines, commands, processes, model calls, writes), with /mods for a live pane and /mods report for the last day, week or month. Changes nothing they do; no model calls.

★ 3PanesBandsStatus line

Other mods in Bands, close to this one by stars.