scan-inventory

scan-inventory is an agent for Claude Code from anthropics/claude-plugins-official. It costs 45 tokens per session (1,174 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 for Claude Code ✓ vendor

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Part of the claude-security plugin — 6 skills, 17 agents, 5 hooks shipped together

Good fit Use it at the start of a security review to inventory a repository and partition it into components for separate investigation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anthropics/claude-plugins-official/scan-inventory
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 49,087 stars · on GitHub · code.claude.com

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.

Clone the repo
git clone --depth 1 https://github.com/anthropics/claude-plugins-official

Made for: Claude Code.

Or install claude-security, the plugin that ships this one along with the rest of its 6 skills, 17 agents, 5 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scan-inventory

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00045 $0.01174
Opus 5.5 $0.00018 $0.00470
Sonnet 5.5 $0.00009 $0.00235
Haiku 4.5 $0.00005 $0.00117

Measured 9d ago against content hash 3beb20f6d63c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 9d 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 · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 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, and run git plainly when SCAN_ROOT is the working directory, as git -C <SCAN_ROOT> ... when it is not. Stay inside it: search no other folder of this machine. Bash is for listing, searching, reading and read-only git. Never build, test, execute, install, write or fetch anything. When a command is refused, do the job with Read (its offset and limit give a range of lines) or a plainer read-only command, never with a program of your own (a one-line script in any language counts), a shell inside a shell, a scratch file or a redirect into a file. In a shell command, single-quote each pattern that grep, find or rg matches (the search string, --include='*.go', -name '*.go'), but not a path glob that the shell must expand, such as src/*.go.

To read several files, send one Read call for each in the same turn, not a shell loop. Never let xargs or find put a file name ({}) inside the quoted text of sh -c: the shell reads the name as code, and a file such as posts.$postId.tsx goes unread.

A file or folder that a permission rule or a file mode closes to you stays closed, whoever set the rule. Do not read it another way, look for a copy, or try to get more rights, and leave it out of every search, git's history too (git show, git log -p, git cat-file). Say what you could not read where your answer has a place for it, and go on without it.

One try is allowed: if a shell command, a search or a listing met such a refusal, try Read once on the file you need. If that Read works, the file is open to you. If it is refused too, name the file in the brief of the component that holds it. When the refusal of a Bash command says "Claude Security" and "agents may not", it is the plugin's guard on that one command, not a refusal of the file: take one of the ways it names.

You plan a security review that other agents carry out. One researcher gets each component you name, and owns every kind of vulnerability in it. It sees shared and its own component's name, paths and brief, and nothing else of your work. You report no vulnerabilities yourself.

Read before you split

List the tree and count its files by folder. Read the README, the manifests, any security notes and the entry files. Search for where untrusted input enters and for the dangerous operations. Stop when you can say who attacks this project, from where, and which code they reach.

Read the full file on GitHub · 47 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. 9d ago Changed · +14 lines · +6 tokens per session 3beb20f6d63c
  2. 3mo ago Changed 84dc5a96c9ae
  3. 3mo 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 (49,087 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 1,174 once invoked, about $0.0002 per session on Opus 5.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.

Related

scan-inventory compared with agents from other repositories

scan-inventory next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scan-inventoryanthropics/claude-plugins-officialAgent49kyesterdayApache-2.0A45Claude Code
it-engineerserejaris/personal-corp-osAgent2503d agoMITA66Claude Code
shamanpjt222/agent-almanacAgent46yesterdayMITA29Claude Code
mlops-engineerpjt222/agent-almanacAgent46yesterdayMITA31Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
loom-advisorcosmix/loomAgent663d agoMITA51Claude Code
audit-agentmarconae/speq-skillAgent541mo agoMITA32Claude Code