prompt-redact
by ezoushen · ★ 0 · updated today
Replaces secrets and credentials with stable placeholders inside Claude Code before the model or the session file ever sees them — prompts, tool results, replies and compaction summaries — and restores real values only in Edit/Write/NotebookEdit arguments.
Install
/plugin marketplace add ezoushen/claude-mods/plugin install prompt-redact@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.appendprompt.attachmentprompt.composeprompt.sectiontool.callcommand.runui.render- API calls
$.command.register$.fs.exists$.fs.read$.state.get$.state.set$.ui.log$.ui.resolve- Draws
AbovePrompt- Can see
every promptthe system prompt? callsevery tool call- Reach
- level 1 of 3 reads filesreads 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/ezoushen/claude-mods
- Path in repo
prompt-redact- Source commit
6a58d51the exact code the scan read- Author
- @ezoushen
- License
- MIT
- 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 ezoushen/claude-mods
image-preview
ezoushen/claude-mods
Render image paths inline: a thumbnail in the user's prompt row (aspect-fill, max 10 rows) and in agent reply rows when the model mentions a path. Recognises a file path ending in a supported image extension (quoted or with escaped spaces too), or an [Image #N] token for a pasted picture.
mermaid-pane
ezoushen/claude-mods
Renders mermaid code blocks inline as ASCII art (beautiful-mermaid, termaid) or images with an open-full-size button; /mermaid switches modes; mermaid.ink is opt-in via /mermaid external on.