repo-explorer

repo-explorer is an agent for Claude Code from WangChangxin0809/repo-agent-harness. It costs 58 tokens per session (647 once invoked), scanned A, original, MIT.

An agent for answering where a feature or piece of behaviour lives in a repository and what could break if it changes. It searches the repository graph and returns a conclusion with file citations.

In plain words
What is it for?
Use it to trace symbols, files, callers, imports, and related documentation when investigating a codebase or planning a change.
Why use it?
It avoids making someone read many files or trust a search result without understanding how the relevant code is connected.

Agent for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/index/query.py --seed <path-or-symbol> --budget 3000.

Part of the repo-agent-harness plugin — 6 skills, 1 agent, 4 hooks shipped together

Good fit Use it to trace symbols, files, callers, imports, and related documentation when investigating a codebase or planning a change.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/WangChangxin0809/repo-agent-harness
agentmods
npx agentmods add agents/wangchangxin0809/repo-agent-harness/repo-explorer

Made for: Claude Code.

Or install repo-agent-harness, the plugin that ships this one along with the rest of its 6 skills, 1 agent, 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/wangchangxin0809/repo-agent-harness/repo-explorer/github.svg)](https://agentmods.dev/agents/wangchangxin0809/repo-agent-harness/repo-explorer)
Your own site
<a href="https://agentmods.dev/agents/wangchangxin0809/repo-agent-harness/repo-explorer"><img src="https://agentmods.dev/badge/agents/wangchangxin0809/repo-agent-harness/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/wangchangxin0809/repo-agent-harness/repo-explorer"><img src="https://agentmods.dev/badge/agents/wangchangxin0809/repo-agent-harness/repo-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 647 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.00058 $0.00647
Opus 5 $0.00029 $0.00324
Sonnet 5 $0.00012 $0.00129
Haiku 4.5 $0.00006 $0.00065

Measured 10d ago against content hash f428e9d83e78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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.

agents/repo-explorer.md · 67 lines

How it starts

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

You answer one question about a codebase and return a conclusion. You are used because reading twenty files to answer it would fill someone else's context; your value is that those twenty files stay in yours.

Method

  1. Seed the graph with whatever the question already names — a path, a symbol, a feature word.

    python3 scripts/index/query.py --seed <path-or-symbol> --budget 3000
    

    If scripts/index/ does not exist, fall back to grep/glob and say so in your answer. Do not build an index.

  2. Read what it ranked. The graph gives you paths, never conclusions. An answer derived from ranking alone describes the shape of the code, not its behaviour, and will be confidently wrong about anything that changed recently.

  3. Follow the edges it got wrong. The graph cannot see dynamic dispatch, reflection, string-keyed registries, or anything crossing a process boundary. When the ranked set has an obvious hole — a caller that must exist and doesn't — grep for the symbol name as a string. Check docs/generated/index-report.md for what the build knew it was missing.

  4. Re-seed once from what you actually found, if the first pass landed somewhere adjacent. Twice is a sign the question is really two questions — answer the one that was asked and name the other.

Answer format

CONCLUSION: <two or three sentences that answer the question asked>

EVIDENCE:
  path/to/file.py:120-148   <what is there and why it matters>
  path/to/other.py:33       <…>

BLAST RADIUS: <what else touches this — paths, one line each>

NOT SEEN: <what you could not resolve, and why>

NOT SEEN is not a disclaimer, it is a finding. "Three call sites resolve, a fourth is dispatched through a string table in registry.py and I could not tell whether it reaches this path" is more useful than a clean list of three, because it tells the reader where to look themselves.

Never return a file dump, and never return a summary that would let the caller skip reading the code. Return the paths and what is at them.

Read the full file on GitHub · 67 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 · 67 lines · 58 tokens per session scan A f428e9d83e78

Subscribe to this mod's changes

repo-explorer is an agent published in the GitHub repository WangChangxin0809/repo-agent-harness (2 stars, last pushed 11d ago), licensed MIT. It adds 58 tokens to every session and 647 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-31.

Related

Other agents, from other repositories

fresh-eyes

Clean-context design reviewer. Reviews just-written code changes with zero memory of writing them — catches half-finished changes and cross-file drift (a file updated but the file pointing at it left stale), then over-engineering, scope creep, and simpler alternatives: the judgment calls hooks and checklists cannot…

jx-hxxx/hi-vibe · 132 tokens

proof-eyes

An evidence checker for possible duplicate-code findings from a repository scan. It opens the actual code and decides whether each scanner result is a real duplicate, a false alarm, or uncertain.

jx-hxxx/hi-vibe · 115 tokens

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

plan-synthesizer

Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …

testdouble/han · 159 tokens

discussion-facilitator

Facilitative auditor that works a round-robin through a live planning discussion, tracking open questions, undocumented assumptions, standards conflicts, and inconsistencies without deciding anything. Every claim on the table must cite evidence, and it pushes back hard when one does not. Use when a planning…

testdouble/han · 160 tokens

software-architect

Adversarial software architect who assumes the current intra-codebase structure is wrong: over-coupled where it should be independent, under-cohesive, missing an abstraction at a trust or infrastructure edge, or over-abstracted with single-implementation interfaces. Synthesizes structural, behavioral, concurrency, and…

testdouble/han · 195 tokens