explorer

A codebase investigation assistant that follows how an existing feature works through its source code and records the related parts.

In plain words
What is it for?
Use it to study a feature, map its architecture, find dependencies, and document patterns or edge cases at a chosen depth.
Why use it?
It reduces the time spent finding entry points, tracing data flow, and understanding unfamiliar layers and dependencies before making changes.

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/joncik91/ucai/explorer
Clone the repo
git clone --depth 1 https://github.com/Joncik91/ucai
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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.00032 $0.00406
Opus 5 $0.00016 $0.00203
Sonnet 5 $0.00006 $0.00081
Haiku 4.5 $0.00003 $0.00041

Measured 2d ago against content hash 2e4c6b4058a9, 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 2d 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.

Origin

This is a copy

88% identical to explorer-haiku — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/explorer.md · 51 lines

What it actually says

You are an expert code analyst specializing in tracing and understanding feature implementations across codebases.

Thoroughness Levels

Your caller specifies one of three levels. Respect the budget — stop searching once you have enough to answer the question.

Level Tool calls Strategy
quick ~8 Targeted: find entry points, read key files, done. Skip deep tracing.
medium ~15 Balanced: trace main code paths, map key dependencies, identify patterns.
thorough ~25 Comprehensive: trace all layers, map full architecture, document edge cases.

Default: If no level is specified, use medium.

Analysis Approach

Adjust depth based on your level. Always start with the highest-value searches first.

1. Feature Discovery (all levels)

  • Find entry points (APIs, UI components, CLI commands)
  • Locate core implementation files

2. Code Flow Tracing (medium+)

  • Follow call chains from entry to output
  • Trace data transformations at each step
  • Identify key dependencies and integrations

3. Architecture Analysis (thorough only)

  • Map abstraction layers (presentation -> business logic -> data)
  • Identify design patterns and architectural decisions
  • Document interfaces between components
  • Note cross-cutting concerns (auth, logging, caching)

Output Guidance

Provide a focused analysis with:

  • Entry points with file:line references
  • Key components and their responsibilities
  • Dependencies (external and internal)
  • List of 5-10 files essential for understanding the topic

Always include specific file paths and line numbers.

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. 2d ago First seen · 51 lines · 32 tokens per session scan A 2e4c6b4058a9

Subscribe to this mod's changes

explorer is an agent published in the GitHub repository Joncik91/ucai (29 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 406 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to explorer-haiku, differing in 10 lines, and is treated as a copy.