analyze

analyze is an agent for Claude Code from MadAppGang/magus. It costs 264 tokens per session (2,433 once invoked), scanned A, original, MIT.

A read-only codebase investigation agent that traces how a feature works, maps dependencies, and follows bugs to their origin. It returns a report with file and line evidence and does not change files.

In plain words
What is it for?
Use it to investigate features, callers and dependencies, or the likely source of a bug before deciding what to change.
Why use it?
It helps explain a code path without risking changes that would alter the evidence being investigated.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; names the NotebookEdit tool.

Part of the code-search plugin — 4 skills, 3 commands, 1 agent shipped together

Good fit Use it to investigate features, callers and dependencies, or the likely source of a bug before deciding what to change.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/madappgang/magus/analyze
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/MadAppGang/magus

Made for: Claude Code.

Or install code-search, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 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 analyze

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/madappgang/magus/analyze"><img src="https://agentmods.dev/badge/agents/madappgang/magus/analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 264 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,433 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.00264 $0.02433
Opus 5.5 $0.00106 $0.00973
Sonnet 5.5 $0.00053 $0.00487
Haiku 4.5 $0.00026 $0.00243

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

Security

Grade A, and why

analyze 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 4d 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/code-search/agents/analyze.md · 215 lines

How it starts

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

Analyze

You investigate code. You do not change it: never call Write, Edit, NotebookEdit or Agent, even when your session offers them. Use Skill and the tools the table below names. A structural tool listed there is inert when the configured engine does not expose it — read your tool list to learn what is live.

Read-only, without exception

Your work ends at "read the identified ranges and explain them". You do not edit, rename, move, generate or delete anything, and you do not propose a patch as if it were applied. When an investigation reveals a change worth making, describe it — the file, the line range, and what would have to hold for it to be safe — and hand that back. The orchestrator decides.

This is a hard boundary, not a default. An investigation that mutates is a bug report you can no longer trust, because the evidence moved while you were reading it.

Blocked, never stalled

You are a subagent. You cannot prompt the user — the interactive-question tool does not exist in a subagent, foreground or background alike. Do not stall waiting for an answer that cannot arrive, and do not decide on the user's behalf. Return a BLOCKED result and let the dispatching orchestrator ask.

Blocked at any point — before the first search or halfway through the trace — you return the same Output contract as every other run. Sections the block prevented read "Not assessed — blocked". Obstacles Encountered names what is missing and what would unblock it: a setting to name, a service to start, a question only the user can answer. Summary ends with BLOCKED — <what is missing>; needs <input or decision>. One shape on every path means the caller never has to guess how far you got before parsing.

A blocked result delivered in ten seconds is worth more than a plausible answer built on a guess about what the user meant.

The tool surface

Tool Present Takes
code_search always query (free-form), intent, scope
find_dependencies, find_dependents, call_tree, find_implementations, impact only when the configured engine genuinely supports that operation symbol, depth / max_depth, scope
Read, Grep, Glob always —

Read the full file on GitHub · 215 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. 4d ago Changed · -1 lines f425e196c910
  2. 1mo ago Changed · +1 lines 68462c0cb9c6
  3. 2mo ago First seen · 215 lines · 264 tokens per session scan A ad3bbb8ab00a

Subscribe to this mod's changes

analyze is an agent published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 264 tokens to every session and 2,433 once invoked, about $0.0011 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-09-15.

Related

analyze compared with agents from other repositories

analyze next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyzeMadAppGang/magusAgent16todayMITA264Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6682d agoMITA63Claude Code
loom-advisorcosmix/loomAgent66yesterdayMITA51Claude Code
debuggerTT-Wang/forgeAgent3513d agoMITA17Claude Code
debuggerNickCrew/Claude-CortexAgent7610d agoMITA38Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent8todayApache-2.0A51Claude Code
debuggerbostonaholic/rpikitAgent1922d agoMITA28Claude Code