Skip to main content
subagent official · Anthropic

scan-redactor — Claude Code subagent for report cleanup

This Claude Security subagent replaces secret values in completed scan reports with [REDACTED]. Scan jobs dispatch it automatically; it is not for direct invocation.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install claude-security@claude-plugins-official
Open on GitHub

What scan-redactor does

scan-redactor checks the three files produced by a completed Claude Security scan: CLAUDE-SECURITY-RESULTS.jsonl, CLAUDE-SECURITY-RESULTS.sarif and CLAUDE-SECURITY-RESULTS.md. It replaces password, key, token and other secret values with [REDACTED]. Variable names and placeholders such as ${API_KEY} stay unchanged.

The subagent uses Read and Edit to inspect and change the reports. Long files are read in pieces, and all three files are checked. It avoids JSON keys and the file, uri and symbol fields, and it creates no files. Check that the scan job supplied the expected three files from one directory: a different set of paths means it makes no edits. Direct invocation is not supported.

What it helps with

  • redact secrets in a security scan report
  • remove key and token values from JSONL and SARIF files
  • mask a password in a URL or user:password pair
  • check all report files for remaining secret values

Example prompts for the agent

  • Run Claude Security and redact secrets in the resulting report files.
  • After the scan, replace password and key values with [REDACTED].
  • Check the Claude Security reports and report any file that could not be cleaned.

How to install scan-redactor

1Plugin marketplace

/plugin install claude-security@claude-plugins-official

2Manually: put the files in place

.claude/agents/scan-redactor.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about scan-redactor

How do I install scan-redactor in Claude Code?

Run /plugin install claude-security@claude-plugins-official, then use .claude/agents/scan-redactor.md.

What does scan-redactor do?

It replaces secret values with [REDACTED] in the three Claude Security report files. It leaves variables and path or identifier fields untouched.

Can I invoke scan-redactor directly?

No. Claude Security scan jobs dispatch it to clean that scan's report files.

Similar subagents

All subagents for Security →

From the same set123

The whole set →
legacy-analyst This subagent traces how older codebases work, maps dependencies, and spots dead code. Use it to investigate what an unfamiliar system actually does. ★ 44,635repo stars business-rules-extractor Reads legacy code and pulls out the business rules inside it — calculations, validations, thresholds — as testable Given/When/Then specs. Useful before a rewrite. ★ 44,635repo stars architecture-critic Subagent that audits architectural designs and modernized code with a skeptical lens. Spots over-engineering, unstated latency risks, and redundant service boundaries. ★ 44,635repo stars scan-researcher A read-only security auditing subagent for Claude Code. Traces vulnerabilities from untrusted inputs to risky sinks across repository files without executing project code. ★ 44,635repo stars scan-inventory Internal cartographer subagent for the Claude Security scan workflow. It partitions repository directories into discrete review targets and tracks intentionally skipped paths. ★ 44,635repo stars explore Read-only codebase explorer for Claude Code. Locates files, traces execution flows, and finds symbol callers without modifying code. ★ 44,635repo stars claude-security Scans a repository or its changes, then can turn verified findings into targeted patch files. It runs only as the main agent of a session. ★ 44,635repo stars revise-claude-md Reviews your active session to extract practical codebase learnings and updates CLAUDE.md or .claude.local.md. Helpful after discovering new CLI flags or test quirks. ★ 44,635repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor