Home / Claude Code mods / Security / prompt-redact

prompt-redact

prompt-redact is a Claude Code mod by ezoushen that 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.

Updated 2026-11-02

What is prompt-redact?

prompt-redact is a Claude Code mod by ezoushen that 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. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorezoushen
Repositoryezoushen/claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (84/100)
Rank#5,886 of 9,397 Claude Code mods; #652 in Security
LicenseMIT
Last commit2026-11-02
Hooks9 events
Sees? calls, every prompt, every tool call, the system prompt
Draws onAbovePrompt

Is prompt-redact safe to install?

prompt-redact scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 6 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 no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.fs.existsreads files
$.fs.readreads files
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install prompt-redact?

  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/ezoushen/claude-mods
    claude plugin validate ./claude-mods/prompt-redact
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add ezoushen/claude-mods && claude plugin install prompt-redact@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs prompt-redact for you:

Install the "prompt-redact" Claude Code mod from https://github.com/ezoushen/claude-mods/tree/main/prompt-redact. Run claude plugin validate on it first and show me what it can access before you enable it.

More from ezoushen/claude-mods

This repository has 3 Claude Code mods on MCPMods.

  • image-preview: Render image paths inline: a thumbnail in the user's prompt row (aspect-fill, max 10 rows) and in agent reply rows when (Review before installing)
  • mermaid-pane: Renders mermaid code blocks inline as ASCII art (beautiful-mermaid, termaid) or images with an open-full-size button; /m (Low risk)