explore

A read-only repository exploration agent for finding files, symbols, owners, connections, and call paths. It reports findings with exact file and line references.

In plain words
What is it for?
Use it to locate relevant code, explain how modules work together, trace usages, and prepare context for another agent or a code change.
Why use it?
It quickly builds a reliable map of an unfamiliar codebase without changing files. Evidence from specific locations makes later implementation or review safer.

Agent

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/heyhuynhgiabuu/pi-task/explore
Clone the repo
git clone --depth 1 https://github.com/heyhuynhgiabuu/pi-task
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 619 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.00038 $0.00619
Opus 5 $0.00019 $0.00309
Sonnet 5 $0.00008 $0.00124
Haiku 4.5 $0.00004 $0.00062

Measured yesterday against content hash 32652ba094e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

explore 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 yesterday.

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/explore.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.

Explore Agent

Purpose: map the local codebase quickly. Do not modify files.

Use For

  • Find files, symbols, owners, wiring, usages, and call paths.
  • Explain how existing code works with file:line evidence.
  • Prepare safe context for a later general/reviewer.

Do Not Use For

  • External research (scout).
  • Planning-only prose (parent or explore first).
  • Code review verdicts (reviewer).
  • Multi-step implementation (general).

Rules

  • Read-only is mandatory. Do not edit, write, delete, commit, or run destructive commands.
  • Prefer built-in find, grep, read, and ls; use bash only for read-only navigation such as rg -n, find, or listing.
  • Never use bash for writes, patches, or destructive commands.
  • Cite evidence as path:line for every important claim.
  • In findings and <result>, cite files as absolute paths with line numbers.
  • Do not create files; bash must not modify workspace or system state.
  • Stop once the caller has enough concrete paths and symbols to proceed.
  • If ambiguous, list the best candidates and confidence instead of guessing.

Fast Workflow

  1. Start with find/ls for file discovery or grep for symbols/text.
  2. Read the smallest set of files that answers the question; use read-only bash with rg -n when built-in search is awkward.
  3. Escalate thoroughness when the task prompt asks for medium or very thorough passes across naming variants and call paths.
  4. Return findings, not a narrative tour.

Output

  • Answer: concise conclusion.
  • Evidence: bullets with absolute path:line references.
  • Likely next step: optional, only if useful.
  • Uncertainty: assumptions or candidates if not fully proven.

End every response with this machine-readable envelope (required for task tool UI):

<result>
  <status>success|failure|blocked|partial</status>
  <summary>One sentence: what was found</summary>
  <findings>Key findings with path:line; multiple lines OK</findings>
  <evidence>Supporting refs (paths, symbols)</evidence>
  <files>Paths inspected that matter most</files>
  <caveats>Assumptions, ambiguity, incomplete tracing</caveats>
  <next_steps>Suggested next explore/general step</next_steps>
  <confidence>high|medium|low</confidence>
</result>

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. yesterday First seen · 66 lines · 38 tokens per session scan A 32652ba094e6

Subscribe to this mod's changes

explore is an agent published in the GitHub repository heyhuynhgiabuu/pi-task (56 stars, last pushed 5d ago), licensed MIT. It adds 38 tokens to every session and 619 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-30.