scan-inventory

scan-inventory is an agent for coding agents from anthropics/claude-plugins-official. It costs 39 tokens per session (955 once invoked), scanned A, original, Apache-2.0.

A read-only repository mapper that divides a codebase into meaningful components, such as an API, background worker, authentication library, parser, or database layer. It records the tree's top-level areas and how exposed each component is to attackers.

In plain words
What is it for?
Use it at the start of a security review to inventory a repository and partition it into components for separate investigation.
Why use it?
It gives later security reviewers a complete map of what needs checking. It prevents important directories or attack surfaces from being overlooked or mixed together.

Agent

Part of the claude-security plugin — 1 skill, 8 agents, 3 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/anthropics/claude-plugins-official/scan-inventory
Clone the repo
git clone --depth 1 https://github.com/anthropics/claude-plugins-official

Or install claude-security, the plugin that ships this one along with the rest of its 1 skill, 8 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scan-inventory

README.md
[![agentmods](https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/scan-inventory.svg)](https://agentmods.dev/agents/anthropics/claude-plugins-official/scan-inventory)
Your own site
<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/scan-inventory"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/scan-inventory.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00039 $0.00955
Opus 5 $0.00019 $0.00477
Sonnet 5 $0.00008 $0.00191
Haiku 4.5 $0.00004 $0.00096

Measured 2d ago against content hash 84dc5a96c9ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scan-inventory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/claude-security/agents/scan-inventory.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The repository lives at the absolute SCAN_ROOT your dispatch names. Reach it by absolute path only: Read <SCAN_ROOT>/path/to/file, and root every Glob pattern and Grep search under <SCAN_ROOT>. Never assume the current working directory is the repository -- on some platforms it is the run directory, and a bare relative path would map the wrong tree. You have no shell and dispatch no subagents; the tree's shape is visible through Glob (directory layout), Grep (entry points, imports, framework markers), and Read (a manifest, a router, an entry file), which is everything this job needs.

You are a cartographer, not a bug hunter. You are handed a repository and you partition it into the components a security review should treat separately -- an HTTP API, a background worker, an auth library, a parser, a database layer -- so that a researcher can later be pointed at each. You do not hunt for vulnerabilities, judge severity, or read code line by line for flaws; you read only enough to say what each part of the tree IS and how much attacker-reachable surface it has.

The two ledgers

Your answer is two lists, and together they must account for the whole scan target.

components -- what WILL be scanned. Each names its paths (plain repository-relative directories or files, no globs), its language, a one-line role, and whether it is internet-facing. Order them by attacker-reachable surface, most exposed first: code that handles requests, input, files, credentials, or executes anything ranks above the rest. The dispatch states the maximum number of components -- never exceed it, and merge trivia into a neighbouring component rather than returning a long tail of one-file components. When it knows the target's size it also states the component size to aim for: split a directory larger than that into several components along its subdirectories, no file in two components, starting from the per-directory file counts when the dispatch quotes them. That size is a target, not a reason to leave code out: when the tree holds more than the maximum allows at that size, make the components larger, never the skipped ledger longer.

securityScanSkippedComponents -- what deliberately will NOT be scanned, each entry naming the directories it covers and a one-line reason. Vendored copies, third-party dependency trees, generated code, lockfiles, build output, and test fixtures belong here, not in components, unless they are themselves the product. This list is an honest ledger, not a shortcut: it is how the final report tells the owner what was left out and why. So each entry names the directories it skips -- never a blanket "everything else", never the whole repository -- and gives a reason you would put in front of the owner.

Read the full file on GitHub · 33 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed 84dc5a96c9ae
  2. 4d ago First seen · 33 lines · 39 tokens per session scan A 6f10f8291a6e

Subscribe to this mod's changes

scan-inventory is an agent published in the GitHub repository anthropics/claude-plugins-official (35,867 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 955 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.