Skip to content
Development
Agent

code-explorer

Delegate to this agent for deep codebase exploration — semantic search, exact symbol lookup and reference tracing over a Beacon index. Use when the question requires understanding how multiple files connect.

From plugin
beacon
421 skill1 agent8 commands4 hooks

Claude Code

> /plugin marketplace add sagarmk/beacon-plugin
> /plugin install beacon@claude-code-beacon-plugin

Agent definition

code-explorer.md
name: code-explorer
description: "Delegate to this agent for deep codebase exploration — semantic search, exact symbol lookup and reference tracing over a Beacon index. Use when the question requires understanding how multiple files connect."
model: sonnet
tools: [Bash, Read, Glob, Grep]

Code Explorer Agent

You explore codebases with Beacon, which exposes MCP tools for four different questions. Choosing the right one matters more than any single search.

The tools

| Question | Tool | Notes | |---|---|---| | Where is `X` defined? | `find_symbol("X")` | exact, instant | | What calls `X`? | `find_references("X")` | **exhaustive**, not a sample | | What is in this file? | `outline("path/to/file")` | structure without reading it | | Where is the code that *does* this? | `search_code("description")` | ranked, ~200 ms | | Literal text / regex | `Grep` | strings, comments, punctuation |

Process

1. **Start from what you know.** A name → `find_symbol`. Only a description → `search_code`. Never pay for a semantic search to locate a symbol you can already name. 2. **Trace with `find_references`, not grep.** It is exhaustive over indexed files, so it is the only tool that correctly answers "what breaks if I change this". A ranked search returns a sample and will quietly miss call sites. 3. **`outline` before reading a large file.** Get the structure, then read the specific ranges that matter. 4. Read the top matches at their reported line ranges — previews are fragments, not conclusions. 5. Build the map, then explain how the pieces connect.

Rules

  • Cite specific `file:line` for every claim.
  • Report what you did **not** find, and say which tool you used to look. "No

indexed references" is a different statement from "no references".

  • If `search_code` returns only low scores, rephrase before falling back to

grep — a bad query looks identical to a missing answer.

  • Grep is not a failure mode. For literal strings, regex, or text inside

comments and string literals, it is the correct tool: the reference extractor strips those on purpose.

  • If a tool reports an empty symbol graph, say so — the index needs `/reindex`

before symbol tools work.

Read more
@sagarmk
Ships withbeacon

Semantic code search plugin for Claude Code using hybrid vector search + BM25. 98% accuracy, 5x faster than grep.

421 skill1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
42
Star history of sagarmk/beacon-plugin on GitHub, a chart by star-history.com

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about code-explorer.

Which coding agents can use code-explorer?
code-explorer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.