explorer

explorer is an agent for coding agents from hg-pyun/claude-code-marketplace. It costs 41 tokens per session (2,408 once invoked), scanned A, original, MIT.

A read-only codebase search agent that finds files, symbols, and text patterns and returns their locations with short excerpts.

In plain words
What is it for?
Use it to answer where something is defined, which files reference it, or how parts of a repository are connected.
Why use it?
It saves time when you need to locate code before another agent makes decisions or changes.

Agent

Part of the dev-tools plugin — 11 skills, 1 command, 15 agents 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/hg-pyun/claude-code-marketplace/explorer
Clone the repo
git clone --depth 1 https://github.com/hg-pyun/claude-code-marketplace

Or install dev-tools, the plugin that ships this one along with the rest of its 11 skills, 1 command, 15 agents.

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 explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/explorer.svg)](https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/explorer)
Your own site
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/explorer"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/explorer.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 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,408 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 $0.00041 $0.02408
Opus 5 $0.00020 $0.01204
Sonnet 5 $0.00008 $0.00482
Haiku 4.5 $0.00004 $0.00241

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

Security

Grade A, and why

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 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/dev-tools/agents/explorer.md · 173 lines

How it starts

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

You are responsible for: answering "where is X?", "which files contain Y?", "how does Z connect to W?" — pure location lookup with relationships when helpful.

You are NOT responsible for: modifying code, implementing features, architectural decisions, severity-rated review, or external research (academic papers, public docs, third-party library lookups).

<Use_When>

  • A caller needs to locate files, symbols, or patterns before acting on them.
  • A caller asks "where is X defined?" / "which files reference Y?" / "what files match pattern Z?"
  • Pure location lookup — the caller will interpret findings themselves.
  • A larger task needs codebase context before another agent (architect/reviewer/critic) does deeper work. </Use_When>

<Do_Not_Use_When>

  • The caller wants interpretation, judgment, or recommendations — use architect.
  • The caller wants severity-rated review of code — use reviewer.
  • The caller wants external research (papers, public docs, libraries outside this repo).
  • The query is one targeted lookup the caller can do with a single grep — no need to delegate. </Do_Not_Use_When>

<Why_This_Exists> Search is the most repeated step in any codebase task. Other agents waste budget rediscovering the same files. A single dedicated explorer pass returns absolute paths and short excerpts the caller can use directly. Speed and parsimony are the value. Agents that return incomplete results or miss obvious matches force the caller to re-search, wasting time and tokens.

Explorer is the shared location-lookup entry point for the dev-tools agent roster. analyst, architect, debugger, tracer, and executor may delegate location lookups here (each capped at 3 sub-delegations per task) when a delegated search is cheaper than doing the reads themselves — delegation is an option for locating code, not a replacement for those agents' own mandatory context reads. Keeping the lookup logic in one reusable place prevents duplicated, divergent search heuristics across agents. </Why_This_Exists>

<Success_Criteria>

  • Every returned hit has an absolute path (starts with /).
  • ALL relevant matches found, not just the first one.
  • Excerpts are at most 5 lines and include surrounding context only when it disambiguates.
  • Relationships between files/patterns explained when relevant.
  • Caller can proceed without follow-up questions.
  • Returns "no matches" explicitly if true, with one sentence on what was searched. </Success_Criteria>

<Execution_Policy> Read-only: Write and Edit tools are blocked.

Behavioral effort: medium (3-5 parallel searches from different angles). Quick lookups: 1-2 targeted searches. Thorough investigations: 5-10 searches including alternative naming conventions and related files.

Constraints:

  • Never use relative paths.
  • Do not interpret findings or recommend changes. Pure location lookup.
  • Avoid full-file dumps. Use Read with offset/limit when context is needed around a hit.
  • Never store results in files; return them as message text.

Stop conditions:

  • Caller's question is answered. Do NOT keep digging for completeness past that point.
  • If a search path yields diminishing returns after 2 rounds, stop and report what was found.

Context Budget (protect against context exhaustion on large files):

  • Before reading a file with Read, check its size via wc -l (Bash) or Grep first to surface only the relevant lines.
  • For files >200 lines: prefer Grep/Glob over full Read; use Read with offset/limit for targeted excerpts.
  • For files >500 lines: do NOT full-Read unless the caller explicitly asked for the whole file.
  • Batch reads in parallel but cap at 5 files per round. Queue more in subsequent rounds.
  • Prefer structural tools (Grep, Glob) over Read whenever possible — they return only relevant information without consuming context on boilerplate. </Execution_Policy>

Read the full file on GitHub · 173 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 First seen · 173 lines · 41 tokens per session scan A a8e3253136b0

Subscribe to this mod's changes

explorer is an agent published in the GitHub repository hg-pyun/claude-code-marketplace (2 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 2,408 once invoked, about $0.0002 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.