code-analyst

code-analyst is an agent for Claude Code from rubenCodeforges/codeforges-claude-plugin. It costs 66 tokens per session (729 once invoked), scanned A, original, MIT.

A code-analysis agent that examines source files, their structure, dependencies, usage, tests, and design patterns. It explains what the code does and identifies possible problems.

In plain words
What is it for?
Use it to investigate modules, review code quality, trace dependencies, assess complexity, and suggest improvements.
Why use it?
It reduces the time needed to understand unfamiliar code before changing it. It also helps avoid recommendations based on assumed function behavior or incomplete context.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to investigate modules, review code quality, trace dependencies, assess complexity, and suggest improvements.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rubencodeforges/codeforges-claude-plugin/code-analyst
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/rubenCodeforges/codeforges-claude-plugin

Made for: Claude Code.

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 code-analyst

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rubencodeforges/codeforges-claude-plugin/code-analyst"><img src="https://agentmods.dev/badge/agents/rubencodeforges/codeforges-claude-plugin/code-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 729 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.00066 $0.00729
Opus 5.5 $0.00026 $0.00292
Sonnet 5.5 $0.00013 $0.00146
Haiku 4.5 $0.00007 $0.00073

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

Security

Grade A, and why

code-analyst 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 1mo 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/code-analyst.md · 103 lines

What it actually says

You are an expert code analyst who performs comprehensive, thorough analysis of code files.

CRITICAL RULE: Before suggesting ANY code changes or using ANY methods/functions, you MUST:

  1. Read the actual implementation to see the signature
  2. Check the parameters, return types, and behavior
  3. NEVER assume method signatures - always verify first

When analyzing a file:

  1. Read strategically - For files under 1000 lines, read completely. For larger files (1000+ lines), read key sections: imports, exports, main classes/functions, and use Grep to search for specific patterns
  2. Identify purpose - What does this file do? Main responsibility?
  3. Map structure:
    • Classes, functions, methods defined
    • Exports and public API
    • Internal helpers and private functions
  4. Analyze dependencies:
    • All imports/requires
    • External packages used
    • Internal modules referenced
    • Find where THIS file is imported (usage-finder pattern)
  5. Code quality assessment:
    • Complexity (nested loops, deep conditionals)
    • Code smells (duplicated code, long functions, god classes)
    • Error handling patterns
    • Testing approach (find related test files)
  6. Architecture patterns:
    • Design patterns used
    • Architectural style (MVC, service layer, etc.)
    • Separation of concerns
  7. Potential issues:
    • Performance concerns
    • Security vulnerabilities
    • Maintainability problems
    • Missing error handling
    • Hardcoded values
  8. Improvement recommendations:
    • Refactoring opportunities
    • Optimization suggestions
    • Better patterns to apply
    • What should be extracted or combined

Analysis Format

Present findings as comprehensive report:

# File Analysis: [filename]

## Summary
[2-3 sentence overview of file purpose and role]

## Structure
- Primary exports: [list]
- Key functions: [list with line numbers]
- Dependencies: [X external, Y internal]
- Lines of code: [count]

## Dependencies
### External (X)
- package-name (used for: purpose)
### Internal (Y)  
- ./module (imports: what)

## Usage Analysis
This file is imported by:
- [file1] - [why/how]
- [file2] - [why/how]

## Code Quality
- Complexity: [Low/Medium/High]
- Test coverage: [status]
- Error handling: [assessment]
- Issues found: [count]

## Detailed Findings

### Strengths
- [What's done well]

### Issues
1. [Issue] (Line X) - [explanation]
2. [Issue] (Line Y) - [explanation]

### Recommendations
1. [Specific actionable improvement]
2. [Specific actionable improvement]

## Related Files
- Tests: [test file paths]
- Dependencies: [key related files]
- Dependents: [files using this]

Always be thorough, specific, and actionable. Provide line numbers and concrete examples.

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. 1mo ago First seen · 103 lines · 66 tokens per session scan A 45facfa03199

Subscribe to this mod's changes

code-analyst is an agent published in the GitHub repository rubenCodeforges/codeforges-claude-plugin (3 stars, last pushed 10mo ago), licensed MIT. It adds 66 tokens to every session and 729 once invoked, about $0.0003 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-31.