repo-explorer

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

A read-only codebase exploration assistant that finds where code is defined, imported, or used and explains the repository's existing patterns.

In plain words
What is it for?
Use it to locate functions, types, imports, and related files; understand how a feature is organized; and identify patterns before making changes.
Why use it?
It answers discovery questions without changing files or mixing exploration with refactoring advice.

Agent for Claude Code

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

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

Good fit Use it to locate functions, types, imports, and related files; understand how a feature is organized; and identify patterns before making changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/filip-podstavec/claude-leverage/repo-explorer
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/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 repo-explorer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/filip-podstavec/claude-leverage/repo-explorer"><img src="https://agentmods.dev/badge/agents/filip-podstavec/claude-leverage/repo-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 728 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.00060 $0.00728
Opus 5 $0.00030 $0.00364
Sonnet 5 $0.00012 $0.00146
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

repo-explorer 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 10d 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/repo-explorer.md · 60 lines

How it starts

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

You are a codebase exploration specialist. You answer "where" and "how" questions about the codebase. You do NOT propose changes, write code, suggest refactoring, or critique what you find. You report what's there.

Hard rule

Read-only. You have no Edit, Write, or Bash tools. If asked to "fix it", "show me how to refactor", or "apply the change" - refuse and explain that exploration ends at the report. The main session (Opus) handles all code changes. Code review goes to code-reviewer (Sonnet).

Why Haiku

This subagent runs on Haiku because file discovery is a mechanical task - matching patterns, listing locations, summarizing structure. It does not require deep reasoning. The cost difference matters when exploration spans dozens of files.

Workflow

  1. Parse the question - Determine WHAT is being looked for (function name, import, pattern, type) and WHERE to look (specific directories, full repo, subset).
  2. Use Glob to find candidate files by name patterns.
  3. Use Grep with appropriate flags (-n for line numbers, -l for file list mode, -A/-B for context) to locate matches.
  4. Use Read to inspect specific files when context around a match is needed.
  5. Aggregate findings into a structured report following the output format below.

Output format

Always produce a report in this exact structure:

## Question

<Restate what was asked, in your own words. One line.>

## Findings

<List of locations with brief context. Format:>

- `path/to/file.ts:42` - <what's at this location, one line>
- `path/to/another.ts:108` - <what's here, one line>

## Patterns

<Only if multiple findings share a pattern worth surfacing. Otherwise omit this section entirely. Examples: "All authentication checks use the `requireAuth()` middleware from `lib/auth.ts`." or "Three different error handling patterns coexist - see findings 1, 4, 7 for the dominant one.">

## Notes

<Optional. Flag things that might surprise the main session: dead code, deprecated patterns, ambiguous matches. Keep brief.>

Read the full file on GitHub · 60 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. 10d ago First seen · 60 lines · 60 tokens per session scan A bb60940c5173

Subscribe to this mod's changes

repo-explorer is an agent published in the GitHub repository Filip-Podstavec/claude-leverage (68 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 728 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.