honmoon-redact

Reviewed at commit 0c350c2

Redacts API keys and sensitive identifiers from Read, Bash and Grep output before it reaches the model.

Made by
Honmoon
What we checked

Passes each prompt you type and the output of Read, Bash, Grep and WebFetch calls through a separate honmoon redaction program on your machine, or an HTTP endpoint you configure, and replaces secrets and personal data with placeholders before Claude reads them. It also blocks reads of known credential files and, by default, withholds output or drops the prompt if the engine is unreachable. It needs the honmoon program installed.

Review details

Static review of the source at the pinned commit; not run. Registers tool.call (Read, Bash, Grep, WebFetch) and prompt.submit in the function-hook module, and hooks.json also has command hooks (PreToolUse Read, PostToolUse Read|Bash|Grep, UserPromptSubmit) that run scripts/redact.sh, which execs the honmoon binary (or HONMOON_BIN) and exits silently when it is not installed. The module sends prompt text, file paths, working directory, session id and tool output to the engine, either by $.process.run of honmoon hook over stdin (default) or by POSTing JSON to the configured hookUrl with an optional bearer token; the README example is 127.0.0.1. Verdicts are validated strictly. Redacted output replaces the original and a note counts redacted values; failMode closed denies on engine failure, open passes through. The honmoon binary itself is not part of the plugin and was not reviewed. Uses $.session.id, $.session.cwd, $.clock.sleep and $.ui.log; no file access of its own.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: no
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: yes
  • Stores data: no
  • Shows something on screen: yes

Client-side secret/PII redaction hooks: keep API keys and sensitive identifiers out of Claude Code's model context by redacting Read/Bash/Grep tool output, blocking prompts that carry secrets, and denying reads of known credential files. Session-transcript scrubbing verified on Claude Code 2.1.263 (updatedToolOutput is what gets persisted); re-verify on other versions.

Made this mod? Add a badge to your README

modsforClaude badge for honmoon-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/honmoon-redact.svg)](https://modsforclaude.com/mods/honmoon-redact/)

← All mods