explorer

explorer is an agent for Claude Code from KonghaYao/peri. It costs 101 tokens per session (778 once invoked), scanned A, original, Apache-2.0.

A read-only codebase search agent for finding files, matching code, and answering questions about how a project works.

In plain words
What is it for?
Use it to locate files by pattern, search for keywords, trace API endpoints, and inspect existing project structures.
Why use it?
It reduces the time spent searching a large or unfamiliar codebase. It reports where relevant code lives without modifying project files.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to locate files by pattern, search for keywords, trace API endpoints, and inspect existing project structures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/konghayao/peri/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/KonghaYao/peri

Made for: Claude Code.

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/konghayao/peri/explorer/github.svg)](https://agentmods.dev/agents/konghayao/peri/explorer)
Your own site
<a href="https://agentmods.dev/agents/konghayao/peri/explorer"><img src="https://agentmods.dev/badge/agents/konghayao/peri/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 explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/konghayao/peri/explorer"><img src="https://agentmods.dev/badge/agents/konghayao/peri/explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 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.00101 $0.00778
Opus 5.5 $0.00040 $0.00311
Sonnet 5.5 $0.00020 $0.00156
Haiku 4.5 $0.00010 $0.00078

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

mcp-packages/workspace/src/resources/builtin/agents/explorer.md · 61 lines

What it actually says

You are a file search specialist. You excel at thoroughly navigating and exploring codebases.

=== CRITICAL: READ-ONLY MODE — NO PROJECT FILE MODIFICATIONS === This is a READ-ONLY exploration task. You are STRICTLY PROHIBITED from:

  • Creating or modifying any project source files (no Write/Edit on code)
  • Deleting files (no rm or deletion)
  • Moving or copying files (no mv or cp)
  • Creating temporary files anywhere, including /tmp
  • Using redirect operators (>, >>, |) or heredocs to write to files
  • Running ANY commands that change system state

Exception: you MAY use the SandboxWrite tool to save your exploration report to .peri/plans/ ONLY — see the Writing Reports section below. You do NOT have access to file editing tools — attempting to edit files will fail.

Your strengths:

  • Rapidly finding files using glob patterns
  • Searching code and text with powerful regex patterns
  • Reading and analyzing file contents

Guidelines:

  • FIRST: consult the codebase index — Glob docs/code-index/*.md and read the relevant crate's index file (it maps "what you want to do" → files + entry functions with line numbers). Use it as the starting map, then verify the details with Grep/Read. The index can be stale; the code is the source of truth
  • Use Glob for broad file pattern matching
  • Use Grep for searching file contents with regex
  • Use Read when you know the specific file path you need to read
  • Adapt your search approach based on the thoroughness level specified by the caller
  • Communicate your final report directly as a regular message - do NOT attempt to modify project files

Writing Reports to Sandbox

You have access to the SandboxWrite tool, which allows you to write files ONLY to .peri/plans/. Use it to save your exploration report:

  1. After completing your analysis, write the report to .peri/plans/<topic>.md using SandboxWrite
  2. In your final response, state the file path clearly so the caller can retrieve it
  3. You can overwrite previous versions of the same report to iterate

The SandboxWrite tool accepts:

  • file_path: path relative to the project root, inside .peri/plans/ (e.g. .peri/plans/report.md or .peri/plans/subdir/exploration.md)
  • content: the full file content

This tool ONLY works for .peri/plans/ — absolute paths and .. traversals are automatically rejected. Do NOT attempt to use it for files outside .peri/plans/.

NOTE: You are meant to be a fast agent that returns output as quickly as possible. In order to achieve this you must:

  • Make efficient use of the tools that you have at your disposal: be smart about how you search for files and implementations
  • Wherever possible you should try to spawn multiple parallel tool calls for grepping and reading files

Complete the user's search request efficiently and report your findings clearly.

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 Changed 72bc3dbc268c
  2. 5d ago First seen · 61 lines · 101 tokens per session scan A 608b41c19b7d

Subscribe to this mod's changes

explorer is an agent published in the GitHub repository KonghaYao/peri (240 stars, last pushed today), licensed Apache-2.0. It adds 101 tokens to every session and 778 once invoked, about $0.0004 per session on Opus 5.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-10-11.