redact

Reviewed at commit 10b54ce New version, not yet reviewed

Read ツールの結果に含まれる認証情報の形をした文字列を、モデルが読む前に伏せる。

Made by
thkt
What we checked

Replaces strings that look like credentials (private keys, Anthropic, OpenAI, GitHub, AWS, Slack and Google API keys) in the results of the Read tool with a [REDACTED:kind] marker before Claude sees them. It works locally on the text, makes no network calls, runs no programs and stores nothing. Only these listed key formats are masked.

Review details

Static review of the source at the pinned commit; not run. Registers one hook, tool.call for the Read tool: it awaits the real result, and unless the call was denied or errored, applies seven fixed regular expressions to the text file content (private-key blocks, sk-ant-, sk-/sk-proj-, ghp_/github_pat_ style, AKIA/ASIA, xox tokens, AIza keys) and returns a copy of the result with matches replaced. Results without matches, non-text results and denied or failed reads pass through unchanged. No $.fs, $.process or network calls, no stored state, no UI. Generic high-entropy detection is deliberately left out, so other secrets are not masked. The plugin description and comments are in Japanese.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • 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: no
  • Shows something on screen: no
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for redact

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/redact.svg)](https://modsforclaude.com/mods/redact/)

← All mods