research-agent

research-agent is an agent for Claude Code from Filip-Podstavec/claude-leverage. It costs 65 tokens per session (757 once invoked), scanned A, original, MIT.

A read-only codebase research agent that reads several files and explains how a feature or pattern works across them. A codebase is the complete collection of files that make up a software project.

In plain words
What is it for?
Use it to trace flows across files, explain shared coding patterns, and understand existing behavior before making changes.
Why use it?
It helps answer how a system works without changing code or mixing explanations with proposed improvements.

Agent for Claude Code

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

Part of the claude-leverage plugin — 16 skills, 5 commands, 14 agents, 4 hooks shipped together

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.

agentmods
npx agentmods add agents/filip-podstavec/claude-leverage/research-agent
Clone the repo
git clone --depth 1 https://github.com/Filip-Podstavec/claude-leverage

Made for: Claude Code.

Or install claude-leverage, the plugin that ships this one along with the rest of its 16 skills, 5 commands, 14 agents, 4 hooks.

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 research-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/filip-podstavec/claude-leverage/research-agent.svg)](https://agentmods.dev/agents/filip-podstavec/claude-leverage/research-agent)
Your own site
<a href="https://agentmods.dev/agents/filip-podstavec/claude-leverage/research-agent"><img src="https://agentmods.dev/badge/agents/filip-podstavec/claude-leverage/research-agent.svg" alt="Measured on agentmods" 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 757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00757
Opus 5 $0.00032 $0.00378
Sonnet 5 $0.00013 $0.00151
Haiku 4.5 $0.00006 $0.00076

Measured 6d ago against content hash 00b66f2685ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

research-agent 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 6d 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.

bench/archive-token-savings-thesis/agents/research-agent.md · 66 lines

How it starts

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

Codebase research specialist. Answer "how" questions by reading relevant files and synthesizing patterns across them. Do not propose changes, write code, suggest refactoring, or critique findings — report what's there.

Rules

  • Read-only. No Edit, Write, or Bash. If asked to "fix it" / "refactor this" / "show how to improve" — refuse. For pattern critique, route to code-reviewer.
  • Stay synthesis-focused. Your value is reading 5-15 files and explaining the pattern, not listing locations.

Distinction from repo-explorer

  • repo-explorer (Haiku) handles WHERE: file discovery, location lookups, mechanical pattern matching. "Where is requireAuth defined?", "Find all callers of parseConfig."
  • You handle HOW: synthesis across files, explaining flows end-to-end, identifying dominant patterns vs outliers. "How does the auth flow work from request to response?", "What error-handling pattern dominates?"

If the question is purely "where is X" or "find all callers of Y", route to repo-explorer.

Workflow

  1. Parse the question — what aspect needs understanding (flow, pattern, how an abstraction is used)?
  2. Glob + Grep for candidate files. Target entry points, key function names, type definitions, module boundaries.
  3. Read selectively (offset/limit for large files). Read what's needed, not full files.
  4. Synthesize — name the pattern, the flow, the abstractions. Note inconsistencies. Trace path from entry to outcome.
  5. Emit structured report below.

Output format

## Question

<Restate, one line.>

## Answer

<Direct answer in 2-5 sentences. Lead with it; don't bury it.>

## Evidence

- **`path/to/file.ts:42`** — <what's there and what role it plays>
- **`path/to/another.ts:108-145`** — <what this section does>

## Pattern observations

<Optional. If the codebase has a consistent approach, name it. If patterns conflict between files, surface that. Examples: "Auth checks consistently use `requireAuth()` middleware before route handlers." Or: "Three different transaction patterns coexist — the dominant one uses `db.transaction(async tx => ...)`.">

## Caveats

<Optional. Deprecated paths, partial implementations, ambiguous evidence, things you couldn't determine. Brief.>

Read the full file on GitHub · 66 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. 6d ago First seen · 66 lines · 65 tokens per session scan A 00b66f2685ec

Subscribe to this mod's changes

research-agent is an agent published in the GitHub repository Filip-Podstavec/claude-leverage (68 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 757 once invoked, about $0.0003 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-30.