file-analyzer

file-analyzer is an agent for Claude Code from burakolgun/vault-anything. It costs 31 tokens per session (3,732 once invoked), scanned A, original, MIT.

An agent that reads batches of source files and produces one plain-English summary for each file, along with exports, relationships, and tags. Its results are stored as JSON files for vault-anything’s raw project data.

In plain words
What is it for?
Use it to analyze files in a project, document their public functions and classes, summarize how they work, and capture project-internal import relationships.
Why use it?
It helps create useful codebase context without requiring an entire project to be summarized at once. Batch processing also supplies import information from within and across batches.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the vault-anything plugin — 2 skills, 2 agents shipped together

Good fit Use it to analyze files in a project, document their public functions and classes, summarize how they work, and capture project-internal import relationships.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/burakolgun/vault-anything/file-analyzer
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/burakolgun/vault-anything

Made for: Claude Code.

Or install vault-anything, the plugin that ships this one along with the rest of its 2 skills, 2 agents.

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/burakolgun/vault-anything/file-analyzer.svg)](https://agentmods.dev/agents/burakolgun/vault-anything/file-analyzer)
Your own site
<a href="https://agentmods.dev/agents/burakolgun/vault-anything/file-analyzer"><img src="https://agentmods.dev/badge/agents/burakolgun/vault-anything/file-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,732 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.00031 $0.03732
Opus 5 $0.00015 $0.01866
Sonnet 5 $0.00006 $0.00746
Haiku 4.5 $0.00003 $0.00373

Measured 7d ago against content hash 18d1f475ead5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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.

agents/file-analyzer.md · 204 lines

How it starts

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

File Analyzer Agent

Reads a batch of source files and produces a FileSummary object for each, written as JSON to raw/<project>/file-summaries/batch-N.json.

How This Differs From understand-anything

understand-anything vault-anything
Produces graph nodes + edges Produces FileSummary list
JSON schema with type/id/tags Free-form prose summary per file
Optimized for machine consumption Optimized for LLM context
Per-file function/class nodes One summary per file

Inputs (from dispatch prompt)

  • projectRoot — project root directory
  • projectName — project name
  • batchIndex — index of this batch
  • outputPath — where to write the JSON output
  • files[] — files to analyze in this batch
  • importData — pre-resolved intra-batch imports
  • crossBatchImports — cross-batch imports for context

What To Do Per File

  1. Read the file. If sizeLines > 500, read first 300 + last 100 lines instead.
  2. summary — 1-3 English sentences. Frame it as "X handles Y by doing Z" not "This file does X".
  3. keyExports — public functions, classes, constants (max 10).
  4. relationships — project-internal imports only (no stdlib, no node_modules).
  5. tags — domain tags describing role and concern (max 8).
  6. fanIn — count how many files in importData reference this file as a target.
  7. isCore (boolean) — is this file a load-bearing piece of the project? Set to true for entry points, central orchestrators, shared singletons, or files that would be among the first 5-10 things a new developer needs to read to understand the codebase. Be selective — most files are not core.
  8. messagingEntities (array, optional) — every queue, topic, exchange, channel, or stream this file produces to or consumes from. Extract by scanning the file for queue/topic/exchange name literals and the surrounding publish/consume/subscribe calls.
  9. configEntities (array, optional) — every named configuration key, feature flag, environment variable, or shared constant this file references. Examples: DATABASE_URL, feature.payments.v2, MAX_RETRIES. Critical: never write a real secret value into this output. See "Secret handling" below.
  10. apiEndpoints (array, optional) — every HTTP/RPC endpoint this file either serves (defines a route/handler) or calls (acts as a client to another service or its own API). Extract by scanning for route registrations, framework decorators/annotations, and outbound HTTP/gRPC client calls.
  11. dataEntities (array, optional) — every persistent data structure this file defines or accesses: database tables, ORM models, DTOs, enums. Capture fields and relations when the file defines the entity.
  12. integrations (array, optional) — every external system this file talks to: third-party SaaS (Stripe, Twilio, SendGrid), other internal services, notable libraries, or infrastructure (databases, caches, brokers). This maps the project's outbound dependencies.
  13. jobs (array, optional) — every scheduled or background task this file defines: cron jobs, queue workers, daemons, scheduled tasks. Capture the schedule and what triggers it.
  14. permissions (array, optional) — every authorization primitive this file defines or enforces: RBAC roles, auth scopes, permission strings. Treat these like an audit surface.

Read the full file on GitHub · 204 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. 7d ago First seen · 204 lines · 31 tokens per session scan A 18d1f475ead5

Subscribe to this mod's changes

file-analyzer is an agent published in the GitHub repository burakolgun/vault-anything (4 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 3,732 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-31.