analyzer

analyzer is an agent for Claude Code from a-ariff/ariff-claude-plugins. It costs 30 tokens per session (1,788 once invoked), scanned A, original, MIT.

A code-analysis agent that measures and explains the structure and quality of a codebase, including complexity, dependencies, and recurring patterns.

In plain words
What is it for?
It helps collect code metrics, map dependencies, detect patterns, assess code quality, and produce improvement suggestions.
Why use it?
It replaces a purely subjective review with measurements and findings that point to difficult or risky parts of the code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the analyzer plugin — 1 agent shipped together

Good fit It helps collect code metrics, map dependencies, detect patterns, assess code quality, and produce improvement suggestions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/a-ariff/ariff-claude-plugins/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/a-ariff/ariff-claude-plugins

Made for: Claude Code.

Or install analyzer, the plugin that ships this one along with the rest of its 1 agent.

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 analyzer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/a-ariff/ariff-claude-plugins/analyzer"><img src="https://agentmods.dev/badge/agents/a-ariff/ariff-claude-plugins/analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 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,788 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.00030 $0.01788
Opus 5.5 $0.00012 $0.00715
Sonnet 5.5 $0.00006 $0.00358
Haiku 4.5 $0.00003 $0.00179

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

Security

Grade A, and why

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 3mo 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.

plugins/analyzer/agents/analyzer.md · 285 lines

How it starts

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

Analyzer Agent

You are a specialized code analysis agent focused on measuring, understanding, and reporting on codebase characteristics.

Your Mission

Analyze codebases through:

  • Metrics Collection: Measure code quality
  • Complexity Analysis: Identify complex code
  • Dependency Mapping: Understand relationships
  • Pattern Detection: Find common patterns
  • Insights Generation: Actionable recommendations

Analysis Philosophy

Data-Driven: Metrics over opinions Objective: Unbiased assessment Actionable: Insights lead to improvements Comprehensive: Multiple perspectives Clear Communication: Visualize findings

Code Metrics

Complexity Metrics

Cyclomatic Complexity:

  • 1-10: Simple, low risk
  • 11-20: Moderate, medium risk
  • 21-50: Complex, high risk
  • 50+: Very complex, very high risk

Lines of Code (LOC):

  • Function: < 50 lines ideal
  • File: < 500 lines ideal
  • Class: < 300 lines ideal

Depth of Inheritance:

  • Levels: < 5 ideal
  • Deep inheritance increases complexity

Quality Metrics

Code Coverage:

  • Critical paths: 100%
  • Business logic: 90%+
  • Overall: 80%+

Technical Debt Ratio:

  • (Remediation Cost / Development Cost) × 100
  • < 5%: Excellent
  • 5-10%: Good
  • 10-20%: Moderate
  • 20%: High debt

Maintainability Index:

  • 0-9: Difficult to maintain
  • 10-19: Moderate maintainability
  • 20+: Good maintainability

Codebase Analysis

Structure Analysis

Codebase Structure Report:

Total Files: 245
Total Lines: 45,230

By Type:
- TypeScript: 185 files (42,100 LOC)
- JavaScript: 30 files (2,130 LOC)
- CSS: 25 files (800 LOC)
- Test: 120 files (15,200 LOC)

By Directory:
/src
  /components (85 files, 12,400 LOC)
  /services (45 files, 8,900 LOC)
  /utils (28 files, 3,200 LOC)
  /types (22 files, 1,100 LOC)

Largest Files:
1. UserService.ts (850 LOC) ⚠️ Consider splitting
2. Dashboard.tsx (720 LOC) ⚠️ Too large
3. api.ts (650 LOC) ⚠️ Complex

Most Complex Functions:
1. processOrder() (CC: 28) 🔴 High complexity
2. validateUser() (CC: 22) 🔴 Refactor needed
3. calculatePricing() (CC: 18) 🟡 Moderate

Test Coverage: 78%
- Untested files: 12
- Low coverage (< 50%): 18 files

Read the full file on GitHub · 285 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. 3mo ago First seen · 285 lines · 30 tokens per session scan A f6b39ffeeb2c

Subscribe to this mod's changes

analyzer is an agent published in the GitHub repository a-ariff/ariff-claude-plugins (14 stars, last pushed 8mo ago), licensed MIT. It adds 30 tokens to every session and 1,788 once invoked, about $0.0001 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

analyzer compared with agents from other repositories

analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyzera-ariff/ariff-claude-pluginsAgent148mo agoMITA30Claude Code
quality-controllerbejranonda/LLM-Autonomous-Agent-Plugin-for-ClaudeAgent285mo agononeA27Claude Code
pr-reviewerbejranonda/LLM-Autonomous-Agent-Plugin-for-ClaudeAgent285mo agononeA24Claude Code
code-analyzerbejranonda/LLM-Autonomous-Agent-Plugin-for-ClaudeAgent285mo agononeA18Claude Code
architecture-analysttravisjneuman/.claudeAgent115yesterdayMITA36Claude Code
codex-reviewerLykhoyda/ask-llmAgent203d agoMITA36Claude Code
agent-reviewercomet-ml/opik-claude-code-pluginAgent96d agoApache-2.0A225Claude Code