Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Emasoftv0.3.3MITIn 1 marketplace
Redact secrets, private paths, identity terms and terminal control characters from report files and folders with a plain script (no LLM tokens), using the same secrets-shield engine as ai-maestro-janitor. Also runs the vendored secrets-shield folder scanner.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
sanitize-reports redacts paths, secrets, emails and identity terms in text report files, in place, with a plain script (no LLM tokens). Use it as a backstop over reports/ folders.
/plugin marketplace add Emasoft/emasoft-plugins
/plugin install reports-sanitizer@emasoft-plugins
The plugin needs bun on PATH for the TypeScript engine.
sanitize-reports [--dry-run | --scan] [--json] [--extra TERM]... [--user NAME]... [--host NAME]... [--group NAME]... [PATH... | --stdin]
PATH is a file or directory (recursed, symlinks not followed, .git skipped). With no PATH it sanitizes <git toplevel of cwd>/reports. Writes are atomic and keep the file mode; reruns change nothing. It prints one line per changed file (path: n replacements (kinds)) and a summary, never a matched value. SANITIZE_REPORTS_EXTRA takes comma-separated extra terms.
Requires bun on PATH: the shield core (vendor/secrets-shield-core/core/) runs in bun. Without it the tool exits 4 and changes nothing.
--dry-run reports what would change and writes nothing.--scan writes nothing and exits 3 when at least one file has a finding (a change the redactor would make); its text output is the dry-run output. It cannot be combined with --dry-run.--json prints one JSON document on stdout instead of the per-file text lines, in any mode (write mode still writes): {"mode": "write"|"dry-run"|"scan", "files": [{"path", "replacements", "kinds": {kind: count}}], "summary": {"changed", "replacements", "skipped", "errors"}}. It holds counts only, never a value or a position, and is not printed on exit 2 or 4. Error lines stay on stderr.--stdin is a filter: it reads all of stdin as bytes, redacts it with the same rules a file gets (--group and --extra apply) and writes the result to stdout in one write after redaction is complete; input with no finding comes back byte for byte (CRLF and BOM kept). The <stdin>: n replacements (kinds) line and the summary: line go to stderr. It takes no PATH (exit 2) and refuses --json in write mode (exit 2), because stdout carries the text. With --dry-run or --scan the input is never printed: the report (or --json) goes to stdout with the path <stdin>, and --scan exits 3 on a finding. Input with a NUL byte in its first 8 KB or invalid UTF-8 exits 1 with nothing on stdout; a shield failure exits 4 with nothing on stdout; a stdout write error exits 1. The whole input is held in memory and sent to bun as one JSON line: no size cap.--user NAME and --host NAME (each repeatable) name the account and the host to redact as USER and HOST. They REPLACE the detected names, they do not add to them: with --user the account name and the home-folder name are not detected, with --host gethostname and scutil are not called, and with neither flag detection runs as before. A value under 3 characters or a reserved name (root, user, runner, localhost) would never be redacted, so it is bad usage: the run exits 2 and names the flag, never the value. The same rule applies to every --extra value and to every non-empty SANITIZE_REPORTS_EXTRA entry (the exit-2 message then names SANITIZE_REPORTS_EXTRA); empty entries, from a trailing or doubled comma, are skipped. Use them on a fixture or a parity run, so the real identity of the machine is never loaded. --extra still adds terms. The home-path rewrite to ~ is not affected by them: it reads the home from the HOME environment variable (USERPROFILE on Windows), so a fixture run also sets HOME to a fixture folder to keep the real home out of the process.Exit codes: 0 ok, 1 file error, 2 bad usage, 3 findings (--scan only), 4 shield core unavailable or failed (bun not on PATH, the shield bridge missing from an incomplete copy, or no answer from the bridge within its deadline: 120 s plus about 1 s per million characters of the request). When several apply, the first of 2, 4, 1, 3, 0 wins. With --json in write mode, a shield failure part-way prints {"aborted": true, "files": [...]} on stderr, listing the files already rewritten.
Install globally from a clone: ln -s <clone>/sanitize_reports.py ~/.local/bin/sanitize-reports. In a plugin install run it as uv run "${CLAUDE_PLUGIN_ROOT}/sanitize_reports.py": the installed plugin folder carries its version and changes on every update, so a link into it goes stale. The script starts with a uv script header (Python 3.12+), so a link needs uv on PATH; the same holds for shield_scan_cli.py and gitignore_audit.py. Tests: uv run --with pytest pytest -q.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
reports-sanitizer@emasoft-plugins is listed by emasoft/emasoft-plugins — review the source before installing
npx claudepluginhub emasoft/emasoft-plugins --plugin reports-sanitizerPlugins from other owners that cover similar ground