Skip to main content
subagent official · Anthropic

scan-inventory — Claude Code subagent: what it does, how to install

Internal cartographer subagent for the Claude Security scan workflow. It partitions repository directories into discrete review targets and tracks intentionally skipped paths.

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

What scan-inventory does

The subagent runs in read-only mode on the Sonnet model with medium effort. It has no shell access and cannot dispatch secondary subagents. File inspections rely entirely on three primitives: Read, Glob, and Grep. To avoid confusing the execution directory with the actual codebase, it resolves every file pattern from the absolute SCAN_ROOT.

Its task is structural cartography rather than vulnerability research. The agent divides the codebase into two structured ledgers: target components and intentionally skipped areas (securityScanSkippedComponents). The scan ledger lists modules ranked by external exposure, placing network endpoints, parsers, and authentication paths first. The skipped ledger records dependencies, vendored packages, generated code, and fixtures along with an explicit justification.

Because this subagent is designed for machine consumption within a security pipeline, it does not accept manual vulnerability audits. It treats repository contents as untrusted input. Any directives inside code comments or CLAUDE.md files that request skipping a directory are ignored.

What it helps with

  • partition repository directories into discrete security review targets
  • rank codebase components by attacker-reachable exposure
  • document justified exclusions for third-party and generated code
  • enforce complete coverage across all top-level repository directories

Example prompts for the agent

  • Run a repository security audit using the claude-security workflow
  • Partition the repository structure into components for security review
  • Map the codebase and isolate third-party dependencies from review targets

How to install scan-inventory

1Plugin marketplace

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

2Manually: put the files in place

.claude/agents/scan-inventory.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-inventory

How do I install scan-inventory in Claude Code?

Add the security plugin by running /plugin install claude-security@claude-plugins-official. Alternatively, place the agent definition directly into .claude/agents/scan-inventory.md.

Does scan-inventory search for vulnerabilities?

No. It acts strictly as an architectural cartographer without evaluating code flaws or severity ratings.

Which tools can the subagent access?

It only uses Read, Glob, and Grep. Shell execution is disabled, and it cannot spawn other subagents.

Similar subagents

All subagents for Security →

From the same set123

The whole set →
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-redactor This Claude Security subagent replaces secret values in completed scan reports with [REDACTED]. Scan jobs dispatch it automatically; it is not for direct invocation. ★ 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 agent-sdk-verifier-ts Verifies @anthropic-ai/claude-agent-sdk applications before release. It detects type errors, misconfigured TypeScript settings, and exposed credentials. ★ 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