redact

by Stephan Schreiber · ★ 0 · updated 2 days ago

Status lineGuardsPromptvalidates

0

Secrets found by betterleaks reach the model as ‹secret:…› tokens; Write/Edit restore them, other tools refuse them

install redact

Install

git clone https://github.com/schreibse/claude-code-mods
claude --plugin-dir ./claude-code-mods/redact

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.appendtool.call
API calls
$.fs.read$.fs.stat$.process.run$.session.cwd$.state.get$.state.set$.ui.status$.ui.toast
Can see
every promptevery tool call
Reach
level 2 of 3 other: $.state.getother: $.state.setruns processesreads filesdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/schreibse/claude-code-mods
Path in repo
redact
Author
Stephan Schreiber @schreibse
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 schreibse/claude-code-mods

coderabbit-band

schreibse/claude-code-mods

A band above the prompt with the open CodeRabbit threads and nitpicks of the branch's MR

★ 0BandsGuardsCommands

mr-banner

schreibse/claude-code-mods

A colored card with a link under each MR/PR created, merged, approved or reviewed

★ 0ReskinsGuards

quiet-bash

schreibse/claude-code-mods

One-line transcript rows for Bash calls and plan-file edits; /quiet toggles full rows

★ 0ReskinsGuardsCommands

quiet-spinner

schreibse/claude-code-mods

Plain words for the turn spinner and the turn-duration line

★ 0Reskins

reminder-log

schreibse/claude-code-mods

Tallies the reminders Claude Code injects for the model, per session; drops the token counter and repeated attribution blocks; /reminders prints the tally

★ 0CommandsPromptAutomation

usage-percent

schreibse/claude-code-mods

pi-style usage percentages under the prompt: context, 5-hour and weekly limits

★ 0ReskinsGuards