transcript-redactor
Reviewed
at commit 594a3b4
New version, not yet reviewed
Keeps secrets and email addresses out of the session transcript: swaps each one for a stable placeholder on the way in, and puts the real value back on the…
0 upvotes
Log in to upvote or save- Made by
- Ray Amjad
- Pinned commit
-
594a3b448f8603aeba156671f211e17bb3638dd5 - What we checked
-
Swaps API keys, tokens and, if you turn it on, email and IP addresses in your prompts, tool results, attached files and subagent tasks for placeholders before Claude reads them. A key's or token's real value returns only in Bash, Write, Edit and similar local tools; a command is refused if a secret holds shell characters. Values live in memory only and nothing is sent anywhere. An option keeps link paths of hosts you name.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 0504abd; the rest carries over from the review at that commit. Registers prompt.submit, tool.call, prompt.context, prompt.attachment, prompt.mention and agent.spawn. Every hook has a catch that withholds the text or denies the call if scanning fails or runs out of time. tool.call restores placeholders in the inputs of the configured local tools (default Bash, Write, Edit, MultiEdit, NotebookEdit), skips restoring in git commit, tag, notes, send-email and gh issue, pr, release, gist, api and repo commands, denies a Bash command whose restored value would be shell-active, and scrubs results, text and context on the way back. prompt.mention reads the @-mentioned file with $.fs.read and refuses it if it holds a secret. Uses $.ui.toast and $.ui.notice for counts. The vault is an in-memory map; no network, no process calls, no file writes, no eval. Changes in 0.5.2 (detect.ts only): a private key body whose BEGIN line was cut away (for example from tail or cut output) is now recognised by walking back from its END marker over key-shaped base64 lines and swapped for a placeholder (scrubHeadlessKeys with new KEY_END, KEY_BODY_LINE and KEY_LAST_LINE patterns, run after the existing key-block pass), and openssh-key-v1 is added to the markers that mark a base64 blob as a secret. Both only widen what gets hidden; no new network, file, process or permission behaviour. The new code was read in the diff; detection accuracy was not tested. The earlier opt-in allowUrlHosts setting (0.5.1) is unchanged. No npm dependencies.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
- Hooked events
Keeps secrets and email addresses out of the session transcript: swaps each one for a stable placeholder on the way in, and puts the real value back on the way into a tool call
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/transcript-redactor/)