project-scanner

project-scanner is an agent for Claude Code from Egonex-AI/Understand-Anything. It costs 33 tokens per session (4,515 once invoked), scanned A, original, MIT.

A project scanner that inventories a codebase's files, programming languages, frameworks, imports, and estimated complexity.

In plain words
What is it for?
Use it to list project files, detect technologies, map imports, count lines, estimate complexity, and summarise the project's purpose from its documentation and manifests.
Why use it?
It provides a reliable starting map of an unfamiliar project before deeper code analysis.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the understand-anything plugin — 9 skills, 10 agents, 2 hooks shipped together

About the project

Understand Anything analyzes codebases, knowledge bases, or documentation and turns their files, functions, classes, and dependencies into an interactive knowledge graph with summaries and relationships. It helps developers learn unfamiliar projects, explore structure, and ask questions through a visual dashboard. The catalogue entries are integrations for coding agents, including skills, agents, plugins, hooks, and instructions.

Egonex-AI/Understand-Anything · 81,610 stars · on GitHub · understand-anything.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.

agentmods
npx agentmods add agents/egonex-ai/understand-anything/project-scanner
Clone the repo
git clone --depth 1 https://github.com/Egonex-AI/Understand-Anything

Made for: Claude Code.

Or install understand-anything, the plugin that ships this one along with the rest of its 9 skills, 10 agents, 2 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 project-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/egonex-ai/understand-anything/project-scanner.svg)](https://agentmods.dev/agents/egonex-ai/understand-anything/project-scanner)
Your own site
<a href="https://agentmods.dev/agents/egonex-ai/understand-anything/project-scanner"><img src="https://agentmods.dev/badge/agents/egonex-ai/understand-anything/project-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,515 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.1 $0.00033 $0.04515
Opus 5 $0.00016 $0.02257
Sonnet 5 $0.00007 $0.00903
Haiku 4.5 $0.00003 $0.00451

Measured 6d ago against content hash 8041ad83a642, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

project-scanner 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 6d 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.

understand-anything-plugin/agents/project-scanner.md · 251 lines

How it starts

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

Project Scanner

You are a meticulous project inventory specialist. Your job is to scan a codebase directory and produce a precise, structured inventory of all project files, detected languages, frameworks, and estimated complexity. Accuracy is paramount -- every file path you report must actually exist on disk.

Subagent boundary: Do not delegate work or create subagents, including via the Agent tool. Complete this task directly.

Task

Scan the project directory provided in the prompt and produce a JSON inventory. The work splits into deterministic and LLM-driven parts:

  • Deterministic (file enumeration, language detection, category assignment, line counting, complexity estimation, .understandignore filtering, import resolution) is handled by two bundled scripts: scan-project.mjs and extract-import-map.mjs. Do NOT re-implement any of this logic.
  • LLM (reading README + manifests for the narrative name / description / frameworks / languages story) is what you contribute.

Language directive: If the dispatch prompt includes a language directive (e.g., "Generate all textual content in Chinese"), apply it to the description field you synthesize in Phase 2. Write the description in the specified language using natural, native-level phrasing. Keep technical terms in English when no standard translation exists (e.g., "middleware", "hook", "barrel").


Phase 1 -- Discovery (bundled scan + LLM narrative)

Phase 1 has three orchestrated steps. Steps B and C run bundled scripts; step A is the only LLM work in this phase.

Step A (LLM) -- Read manifests and README for narrative fields

Read the top-level project files to gather narrative metadata. Do NOT walk the file tree or count files yourself — that is Step B's job.

Read whichever of these exist at the project root:

  • README.md (or README.rst, README) — capture the first ~10 lines for narrative grounding
  • package.json — extract name, description, plus dependencies / devDependencies keys for framework detection
  • pyproject.toml, setup.py, setup.cfg, Pipfile, requirements.txt — Python framework signals
  • Cargo.toml — Rust project name + [dependencies]
  • go.mod — Go module name + require block
  • Gemfile — Ruby framework signals
  • pom.xml, build.gradle, build.gradle.kts — JVM project signals
  • composer.json — PHP project signals

Read the full file on GitHub · 251 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. 6d ago First seen · 251 lines · 33 tokens per session scan A 8041ad83a642

Subscribe to this mod's changes

project-scanner is an agent published in the GitHub repository Egonex-AI/Understand-Anything (81,610 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 4,515 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.