ClaudeCodeMod

All shelves / Mods / Safety

transcript-redactor

By ray-amjad

transcript-redactor is a Claude Code safety mod by ray-amjad.

Swaps secrets and email addresses in the session for stable placeholders, and puts the real value back on the way into Bash, Write, and Edit.

Draws

Install

The marketplace name is claude-code-mods.

In your shell
claude plugin marketplace add ray-amjad/claude-code-mods
claude plugin install transcript-redactor@claude-code-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.5.1
License
MIT
Repo stars
70
Last change
2026-10-16

What it can reach

  • Draws in the session
  • Sees tool calls

Tested with Claude Code 2.1.296. There is no command: once installed it works on every turn. A toast says when a key was swapped out of your prompt, and a count sits on the tool row. The author says tools that send data off the machine, WebFetch and MCP tools, are left out of the restore list on purpose. A placeholder Claude writes into a curl is sent as the real key if Bash is still in restoreTools.

The marketplace name is claude-code-mods, the same string hamzafer, arasovic, and karanb192 use. Add ray-amjad/claude-code-mods. The author says secret-box is this mod plus a way to hand Claude a new key, and to run one or the other, not both.

Demo

A pasted key arrives as a placeholder, a curl command uses the placeholder, a Read of config shows the key as a placeholder with a toast that 1 value was hidden, and the vault beside it
From the author's repo.

What it hooks into

  • prompt.submitWhen you send a prompt
  • tool.callAround a tool call, where it can hold one
  • prompt.contextA Claude Code event
  • prompt.attachmentA Claude Code event
  • prompt.mentionA Claude Code event
  • agent.spawnWhen a subagent starts

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 5 files. They load when you open them.

Facts

Author
ray-amjad
Category
Safety
Marketplace
claude-code-mods
Repo
ray-amjad/claude-code-mods
Folder
plugins/transcript-redactor
Version
0.5.1
License
MIT
Repo stars
70
Last change
2026-10-16
Language
TypeScript
Files
19

Other mods in Safety

safe-deletecharlie947Holds a commandMoves the files Claude deletes to the Bin instead, toasts a receipt, and /undo-delete puts the last batch back.loop-detectiveYeonwooSungOpens a case when the same Bash command fails the same way again, ties it to the edits that followed, and shows the live cases in a pane and a status line.display-redactionmelodic-softwareMasks email addresses and secret-shaped text in what Claude Code draws, and leaves the transcript, the model's context, and the files unchanged.jev-permission-gatemadisonrickertHolds a commandHolds routine tool calls in auto mode for Jev to allow or deny, and sends the uncertain ones on to Claude Code's built-in classifier.subagent-wallerikdarlingdataHolds a commandHolds a subagent after a time limit to git, gh, and Markdown or text writes, and nudges a code-changing subagent that has edited nothing.public-repo-guardSzotaszHolds a commandAsks in a popup before a push to a public GitHub repo, or before one goes public, when outgoing commits hold keys, emails, local paths, or private repo names.agentic-qe-fleetproffesor-for-testingHolds a commandHolds a command that would delete or overwrite .agentic-qe learning data, and toasts when the guard is set to notify.secrets-guardBioInfoHolds a commandDenies writes of secret files and credential-shaped content, and Bash that would print those secrets.wp-credential-guardnathanonnHolds a commandMasks a WordPress username and application password, refuses a slash command that carries one, and denies Bash when a placeholder is unknown.cockpittsergeytovarovHolds a commandDraws context weather and the plan limits above the prompt, and can stop a dangerous command.taxi-speedcamdevbrother2024Holds a commandStops a risky shell command and asks before it runs, shown as a taxi speed camera.guardrails-mdberget-aiHolds a commandSends each Bash command to a Berget AI scoring model and blocks it when the score says it destroys data, leaks a secret, or breaks your GUARDRAILS.md.
All 73 in Safety