prompt-redact

by ezoushen · ★ 0 · updated 2 Nov 2026

BandsGuardsCommandsPromptwarnings

0

Replaces secrets and credentials with stable placeholders inside Claude Code before the model or the session file ever sees them — prompts, tool results and replies, plus attachments and compaction summaries where the platform lets this mod see them — and restores real values only in Edit/Write/NotebookEdit arguments. 220-rule corpus plus checksum detectors, a benign-shape allowlist...

install prompt-redact

Install

/plugin marketplace add ezoushen/claude-mods
/plugin install prompt-redact@claude-mods

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.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
8cf9fdd the 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.

★ 0ReskinsCommands

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.

★ 0ReskinsCommands

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