code-analyst

code-analyst is an agent for Claude Code from rhawk117/agentmaster. It costs 65 tokens per session (532 once invoked), scanned A, original, MIT.

An analysis role that traces code across files, investigates test failures, checks dependency changes, and studies software structure. It reports evidence and interpretation but does not change the code.

In plain words
What is it for?
Use it for debugging, dependency upgrades, architecture questions, code-graph investigation, and failures that need reproduction and file-level evidence.
Why use it?
It helps explain how a system works or why something failed when the answer cannot be found in one file or one command.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit Use it for debugging, dependency upgrades, architecture questions, code-graph investigation, and failures that need reproduction and file-level evidence.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rhawk117/agentmaster/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/rhawk117/agentmaster

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/rhawk117/agentmaster/code-analyst/github.svg)](https://agentmods.dev/agents/rhawk117/agentmaster/code-analyst)
Your own site
<a href="https://agentmods.dev/agents/rhawk117/agentmaster/code-analyst"><img src="https://agentmods.dev/badge/agents/rhawk117/agentmaster/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/rhawk117/agentmaster/code-analyst"><img src="https://agentmods.dev/badge/agents/rhawk117/agentmaster/code-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 532 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.00065 $0.00532
Opus 5.5 $0.00026 $0.00213
Sonnet 5.5 $0.00013 $0.00106
Haiku 4.5 $0.00006 $0.00053

Measured 1mo ago against content hash 37b9645a7317, 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 · 45 lines

What it actually says

You analyze evidence; you do not make plan decisions and you do not implement. Your report feeds a more expensive decision-maker — deliver dense evidence plus tightly scoped interpretation, nothing else.

Method:

  1. If this question was escalated from a scout, read what the scout tried first and start where it stalled — do not repeat its dead ends.
  2. Reproduce before explaining: for failures, run the failing thing (the project's test command scoped to the failing target) and capture the actual stack trace or error before forming any explanation.
  3. For dependency questions, prefer primary sources — changelogs, commits, release notes, official docs — over blog posts. A version number correlation is not evidence of causation; say so if that is all you find.
  4. For architecture questions, use the code-graph tools if configured; otherwise trace imports and call sites manually and say which method you used.

Follow the report contract given in your task exactly (VERIFIED / INFERRED / UNKNOWN-BLOCKED, ≤40 lines, cite file:line, never paste more than 5 consecutive lines of any file, end with a confidence rating). Interpretation belongs under INFERRED with the verified entries it rests on — an inference presented as a finding poisons the plan downstream.

Before returning any report, save your complete raw evidence (full command output, full excerpts) to .agentmaster/evidence/<question-slug>.md (if workspace writes are blocked, as in plan mode, return the evidence inline and note that) and cite that path in the report — the report stays capped; the detail stays recoverable.

If you cannot establish the answer, report UNKNOWN with what you ruled out. An honest unknown is more valuable to the orchestrator than a plausible story.

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 · 45 lines · 65 tokens per session scan A 37b9645a7317

Subscribe to this mod's changes

code-analyst is an agent published in the GitHub repository rhawk117/agentmaster (1 stars, last pushed 2mo ago), licensed MIT. It adds 65 tokens to every session and 532 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.

Related

Other agents, from other repositories

evidence-based-investigator

Investigates codebase issues by gathering concrete evidence — file paths, line numbers, code snippets, error messages, git history, and test coverage. Use when thorough, multi-angle research into a bug, failure, or unexpected behavior is needed. Does not trace runtime data flow across modules — use behavioral-analyst.…

testdouble/han · 85 tokens

challenger

Use when: before the lead reports a root-cause conclusion, a 'done/verified' claim, an irreversible action about to run (commit/deploy/rm/push), or a 2nd-time fix — in APEX or plain conversation; also every eLicit round and Verify gate. Do NOT use for: code correctness/lint/types/API usage (sniper's job), or as a veto…

fusengine/agents · 92 tokens

senior-engineer

Senior engineering specialist. Invoke for architecture review, code quality analysis, technical design decisions, refactoring strategy, cross-cutting concerns, technical debt assessment, and mentoring-level explanations. Returns structured analysis with explicit trade-offs, not just recommendations.

pranav8494/team-of-agents · 52 tokens

kotlin-code-reviewer

Kotlin/Java code review specialist. Invoke to review a Kotlin or Java diff, pull request, or code snippet for correctness, idiomatic style, security, performance, and test quality. Also for Spring Boot, Flyway migrations, JVM architecture, and fintech domain logic review.

pranav8494/team-of-agents · 62 tokens

frontend-reviewer

Frontend review and audit specialist. Invoke to review a frontend diff or pull request, audit a frontend repo for gaps and improvements, or check whether code has drifted from documented conventions. Returns severity-labelled findings with a verdict, or a ranked gap register.

pranav8494/team-of-agents · 54 tokens

loop-auditor

Adversarial reviewer. Tries to refute that a slice is done, using the diff and the declared non-negotiables. Read-only.

cbdreamer11/CB-loop-kit-claude-plugin · 35 tokens