redact

by JinhaoFang · ★ 0 · updated 15 days ago

ToastsGuardsCommandsPromptvalidates

0

Rewrites sensitive data (emails, IPs, credentials, addresses, phone numbers) out of what enters the model context

install redact

Install

/plugin marketplace add JinhaoFang/claude-mods
/plugin install 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.appendprompt.composetool.callsession.startcommand.run
API calls
$.command.register$.fs.exists$.fs.read$.state.get$.state.set$.ui.log$.ui.toast
Can see
Edit callsWrite calls
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/JinhaoFang/claude-mods
Path in repo
mods/redact
Source commit
715fcfd the exact code the scan read
Author
@JinhaoFang
License
Apache-2.0
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 JinhaoFang/claude-mods

agent-flow

JinhaoFang/claude-mods

The agent flow pane: /flow opens a live tree of the session's subagents and teammates beside the transcript, fed by engine events, with a text fallback where no pane can be drawn.

★ 0PanesStatus lineReskins

block-destructive-commands

JinhaoFang/claude-mods

Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.call hook with a Bash matcher that returns { deny } without calling next.

★ 0Guards

context-band

JinhaoFang/claude-mods

A band above the prompt showing the session's model and effort, context usage, and plan quota or cost

★ 0Bands

image-view

JinhaoFang/claude-mods

Previews images in the prompt and in the transcript: pasted images and image paths above the prompt, images a tool read under its result; pictures in kitty and Ghostty, block thumbnails elsewhere, each with a link to the file

★ 0BandsReskinsGuards

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