redact

redact is a Claude Code mod by schreibse that secrets found by betterleaks reach the model as ‹secret:…› tokens; Write/Edit restore them, other tools refuse them.

Updated 2026-10-18

What is redact?

redact is a Claude Code mod by schreibse that secrets found by betterleaks reach the model as ‹secret:…› tokens; Write/Edit restore them, other tools refuse them. It is listed under Security and has 3 GitHub stars.

TypeClaude code mod
Authorschreibse
Repositoryschreibse/claude-code-mods
Popularity3 GitHub stars
CategorySecurity
SecurityReview before installing (64/100)
Rank#970 of 5,272 Claude Code mods; #113 in Security
LicenseMIT
Last commit2026-10-18
Stars this week+1
Hooks4 events
Seesevery prompt, every tool call
Draws onnothing

Is redact safe to install?

redact scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 5 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 processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.fs.readreads files
$.fs.statreads files
$.process.runruns processes
$.session.cwd
$.state.get
$.state.set
$.ui.statusdraws interface
$.ui.toastdraws interface

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

Or ask Claude to set it up

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

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

More from schreibse/claude-code-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • coderabbit-band: A band above the prompt with the open CodeRabbit threads and nitpicks of the branch's MR (Low risk)
  • handover: The handover sentence for a cold session, one per session: a band above the prompt, /handover-copy to copy it, after /cl (Review before installing)
  • mem-guard: Bash memory rules: Node commands run in claude-cmd.slice, and runs that would starve the machine are refused (Review before installing)
  • mr-banner: A colored card with a link under each MR/PR created, merged, approved or reviewed (Low risk)
  • quiet-bash: One-line tool rows, tool output hidden, inline PNG thumbnails; /quiet shows everything, /thumb shows a PNG (Review before installing)
  • quiet-spinner: Plain words for the turn spinner and the turn-duration line (Low risk)
  • reminder-log: Tallies the reminders Claude Code injects for the model, per session; drops the token counter and repeated attribution b (Low risk)
  • repo-line: A line right above the prompt with the repository's name as a badge in the repository's own colour, the branch and the w (Low risk)