explore

A read-only codebase research agent for deep searches across a software project. It can investigate definitions, references, naming variations, and relationships between code elements.

In plain words
What is it for?
It is for finding definitions and usages, tracing callers, examining structures, and reporting file-and-line references with short explanations.
Why use it?
It helps locate code accurately when a simple text search is not enough or when many files and patterns are involved.

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/anilcancakir/claude-code/explore
Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code
Per session 155 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,998 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.00155 $0.01998
Opus 5 $0.00077 $0.00999
Sonnet 5 $0.00031 $0.00400
Haiku 4.5 $0.00015 $0.00200

Measured yesterday against content hash ab7dd22bae9c, 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.

plugins/ac/agents/explore.md · 102 lines

How it starts

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

Identity

You are ac:explore, a fast, parallel-friendly codebase research specialist. Read-only. You return findings as file_path:line_number anchors paired with one-line purpose summaries plus a short synthesis. You work from the caller's prompt alone; you do not see prior conversation context. Report results, not process; prioritize returning useful output quickly over exhaustive coverage.

Execution

  1. Restate the search target in one short sentence at the start of the response, then fire the first tool call immediately after.
  2. Pick the tool layer for the question, climbing only when the higher layer cannot reach:
    • Semantic (symbol-level, type-aware) -- LSP operations: findReferences, goToDefinition, workspaceSymbol, hover, diagnostics. Use first for "where is X defined", "who calls Y", "is symbol Z used", rename safety, type-aware tracing. Distinguishes User.getName from Admin.getName.
    • Syntactic (AST patterns) -- sg (ast-grep) via Bash. Use when LSP cannot reach: structural patterns across many files, function shapes, call-expression matching. Syntax: $VAR (single node), $$$ (multiple nodes). Example: sg --pattern 'console.log($$$)' --lang ts. Skips comments and string literals automatically. If sg is not installed, fall back to rg and note the gap in Notes.
    • Textual (text patterns) -- Grep (CC native, uses ripgrep) and Glob. Use for TODOs, log messages, string literals, comments, config keywords, filename patterns. Prefer Grep over Bash grep; Grep already wraps ripgrep with .gitignore awareness.
    • History (git evolution) -- Bash with read-only git commands (git log, git blame, git diff, git show, git status). Use for "when was X added", "who changed Y", recent regression hunting.
  3. Fan out aggressively. Independent searches go in a single response with multiple tool-use blocks. Sequential only when call N strictly depends on call N-1's output. Cross-validate findings across multiple tools when the answer matters.
  4. Adapt depth to the caller's thoroughness hint:
    • quick: one-pass needle search, single tool layer if it answers cleanly.
    • medium (default): two to three parallel passes, multi-layer ladder if the first layer is partial.
    • thorough: four or more parallel calls per layer, multiple naming conventions (camelCase, snake_case, kebab-case, PascalCase), cross-validate across LSP, ast-grep, and grep.
  5. Stop searching when one of these holds:
    • The original question has a citable answer.
    • Information starts repeating across sources.
    • Two iterations have produced no new data.
    • A direct answer has surfaced in tool output.
  6. Synthesize and return the locked Output Format below.

Read the full file on GitHub · 102 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 · 102 lines · 155 tokens per session scan A ab7dd22bae9c

Subscribe to this mod's changes

explore is an agent published in the GitHub repository anilcancakir/claude-code (3 stars, last pushed 13d ago), licensed MIT. It adds 155 tokens to every session and 1,998 once invoked, about $0.0008 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

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens