file-analyzer

file-analyzer is an agent for Claude Code from Egonex-AI/Understand-Anything. It costs 47 tokens per session (8,675 once invoked), scanned A, original, MIT.

A source-code analysis agent that examines batches of files and maps their structure, contents, and relationships as a knowledge graph.

In plain words
What is it for?
Use it to inspect code, configuration, documentation, infrastructure, data, scripts, and markup files and record their components, summaries, tags, complexity, and links.
Why use it?
It turns scattered code into structured information, making it easier to see how files, functions, classes, and other parts connect.

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, 12 agents, 2 hooks shipped together

Good fit Use it to inspect code, configuration, documentation, infrastructure, data, scripts, and markup files and record their components, summaries, tags, complexity, and links.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/egonex-ai/understand-anything/file-analyzer
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 · 95,207 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.

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, 12 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 file-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/egonex-ai/understand-anything/file-analyzer/github.svg)](https://agentmods.dev/agents/egonex-ai/understand-anything/file-analyzer)
Your own site
<a href="https://agentmods.dev/agents/egonex-ai/understand-anything/file-analyzer"><img src="https://agentmods.dev/badge/agents/egonex-ai/understand-anything/file-analyzer/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 file-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/egonex-ai/understand-anything/file-analyzer"><img src="https://agentmods.dev/badge/agents/egonex-ai/understand-anything/file-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,675 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.00047 $0.08675
Opus 5.5 $0.00019 $0.03470
Sonnet 5.5 $0.00009 $0.01735
Haiku 4.5 $0.00005 $0.00868

Measured 2mo ago against content hash faa8054935e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

file-analyzer 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 2mo 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/file-analyzer.md · 530 lines

How it starts

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

File Analyzer

You are an expert code analyst. Your job is to read source files and produce precise, structured knowledge graph data (nodes and edges) that accurately represents the code's structure, purpose, and relationships. You must be thorough yet concise, and every piece of data you produce must be grounded in the actual source code.

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

Task

For each file in the batch provided to you, extract structural data via a script, then apply expert judgment to generate summaries, tags, complexity ratings, and semantic edges. You will accomplish this in two phases: first, write and execute a structural extraction script; second, use those results as the foundation for your analysis.

File categories in this batch: Each file has a fileCategory field indicating its type: code, config, docs, infra, data, script, or markup. Adapt your analysis approach accordingly — see the category-specific guidance below.

Language directive: If the dispatch prompt includes a language directive (e.g., "Generate all textual content in Chinese"), apply it to ALL textual output:

  • summary — Write in the specified language
  • tags — Use localized tags when natural (e.g., Chinese tags like "入口点", "工具函数") or keep English tags for universal technical terms (e.g., "middleware", "api-handler", "test")
  • languageNotes — Write in the specified language when present Use natural, native-level phrasing. Keep technical terms in English when no standard translation exists.

Phase 1 -- Structural Extraction (Bundled Script)

Execute the pre-built structural extraction script bundled with the Understand-Anything plugin. This script uses tree-sitter for code files and specialized parsers for non-code files, providing deterministic, high-quality structural extraction without writing any ad-hoc scripts.

Step 1 — Prepare the input JSON

Create the input file with the batch data. IMPORTANT: Use the batch index in ALL temp file paths to avoid collisions when multiple file-analyzer agents run concurrently. First resolve the project's data directory once (the legacy .understand-anything/ when it already exists, otherwise the new .ua/) and reuse $UA_DIR for every path below: UA_DIR="$PROJECT_ROOT/$([ -d "$PROJECT_ROOT/.understand-anything" ] && echo .understand-anything || echo .ua)".

Read the full file on GitHub · 530 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. 2mo ago Changed · +3 lines faa8054935e8
  2. 2mo ago Changed · +4 lines 24b587a8a65a
  3. 3mo ago First seen · 523 lines · 47 tokens per session scan A 913a605380ec

Subscribe to this mod's changes

file-analyzer is an agent published in the GitHub repository Egonex-AI/Understand-Anything (95,207 stars, last pushed 8d ago), licensed MIT. It adds 47 tokens to every session and 8,675 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

file-analyzer compared with agents from other repositories

file-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
file-analyzerEgonex-AI/Understand-AnythingAgent95k8d agoMITA47Claude Code
executordatit309/supergraphAgent238d agoMITA25Claude Code
qa-testerdatit309/supergraphAgent238d agoMITA41Claude Code
diagnosticiandatit309/supergraphAgent238d agoMITA37Claude Code
diff-revieweraiskillstore/marketplaceAgent509todaynoneA43Claude Code
agent-factoryvibhasdutta/loop-engineerAgent34mo agononeA37Claude Code
loop-engineer-agent-factoryvibhasdutta/loop-engineerAgent34mo agononeA40Claude Code