display-redaction
Reviewed
at commit c527c78
New version, not yet reviewed
A mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen shares. It changes the screen only; the…
0 upvotes
Log in to upvote or save- Made by
- Melodic Software
- Pinned commit
-
c527c784bb51d235ee1c574ffbd86bf8a5e90893 - What we checked
-
Masks email addresses and secret-shaped text in what Claude Code draws on screen, as a solid bar or [hidden], for recordings and screen shares. It only changes the display: the transcript, what Claude reads and files on disk stay as they are. /display-redaction on or off switches it for the session.
Review details
Static review of the source at the pinned commit; not run. Registers ui.render for AssistantMessage, UserMessage, CommandOutput, ToolUse, ToolResult, AskUserQuestion and InfoNotice (each with a .catch that blanks the text props rather than drawing the original), session.start and session.end (re-registers the /display-redaction command), and command.run. Uses $.ui.resolve, $.ui.log, $.state.get/set (a session flag for on/off) and $.env.get(COLORTERM) to pick colors. Built-in patterns for emails and secret shapes plus optional user regexes (extra_patterns), which are length-limited and skipped when they could match empty text or backtrack heavily; matching runs over 1024-character windows. No network, file, process or eval use. Changes since f7afac4 (version 0.1.11 to 0.1.15): mask.ts type aliases and an escape-range loop refactor, and walk() now masks non-plain objects only after arrays are handled; lib/prerequisites.mjs, .ps1, .sh and prerequisites.json are a prerequisite checker used by a separate harness-ops skill and are not loaded by the mod (the .mjs diff is a refactor of validation helpers). Masking is display-only and pattern-based, so it can miss secrets and is not a privacy control, as the description says.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
A mod that masks email addresses and secret-shaped text in what Claude Code draws, for recordings and screen shares. It changes the screen only; the transcript, the model's context and the files on disk are untouched, so it is not a privacy or data control.
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/display-redaction/)