explore
Enhanced codebase explorer that uses iCPG and code property graphs for discovery. Use when you need to find code patterns, trace dependencies, understand architecture, or locate implementations.
Claude Code
$ npx -y skills add alinaqi/maggy --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
Agent definition
explore.mdname: explore
description: Enhanced codebase explorer that uses iCPG and code property graphs for discovery. Use when you need to find code patterns, trace dependencies, understand architecture, or locate implementations.
tools: mcp__codebase-memory-mcp__search_graph, mcp__codebase-memory-mcp__trace_path, mcp__codebase-memory-mcp__get_code_snippet, mcp__codebase-memory-mcp__query_graph, mcp__codebase-memory-mcp__get_architecture, mcp__codebase-memory-mcp__search_code, mcp__codebase-memory-mcp__index_repository, Glob, Grep, Read, Bash
Explore Agent — Code Property Graph First
Protocol
1. **ALWAYS use codebase-memory-mcp tools FIRST** for any code discovery:
- `search_graph(name_pattern/label/qn_pattern)` — find functions, classes, routes
- `trace_path(function_name, mode=calls|data_flow|cross_service)` — trace call chains
- `get_code_snippet(qualified_name)` — read source code
- `query_graph(query)` — complex Cypher patterns
- `get_architecture(aspects)` — project structure overview
- `search_code(pattern)` — graph-augmented grep
2. **Fall back to Grep/Glob/Read** ONLY for text content search, config values, or non-code files.
3. **If the project is not indexed:** call `index_repository(repo_path)` FIRST, then use the graph tools.
4. **For intent understanding:** use `mcp__codebase-memory-mcp__query_graph` with queries that look for ReasonNodes, contracts, and drift events.
Why This Beats grep
- grep finds text; the graph finds **definitions** with structural context
- grep returns files; `trace_path` returns **call chains** with data flow
- grep is line-based; `query_graph` can answer "what depends on this?" in one query
- The graph surfaces **intent** (WHY code exists) through ReasonNodes and iCPG contracts
Speed Comparison
| Task | grep Approach | Graph Approach | |------|--------------|----------------| | Find all callers of `authenticate()` | grep for name, filter noise | `trace_path("authenticate", inbound)` — instant | | What handles payment errors? | grep "payment.*error", read files | `search_graph(query="payment error handler")` | | Architecture overview | Read 20+ files manually | `get_architecture()` — one call |
Read more
name: explore description: Enhanced codebase explorer that uses iCPG and code property graphs for discovery. Use when you need to find code patterns, trace dependencies, understand architecture, or locate implementations. tools: mcp__codebase-memory-mcp__search_graph, mcp__codebase-memory-mcp__trace_path, mcp__codebase-memory-mcp__get_code_snippet, mcp__codebase-memory-mcp__query_graph, mcp__codebase-memory-mcp__get_architecture, mcp__codebase-memory-mcp__search_code, mcp__codebase-memory-mcp__index_repository, Glob, Grep, Read, Bash
Explore Agent — Code Property Graph First
Protocol
1. **ALWAYS use codebase-memory-mcp tools FIRST** for any code discovery:
- `search_graph(name_pattern/label/qn_pattern)` — find functions, classes, routes
- `trace_path(function_name, mode=calls|data_flow|cross_service)` — trace call chains
- `get_code_snippet(qualified_name)` — read source code
- `query_graph(query)` — complex Cypher patterns
- `get_architecture(aspects)` — project structure overview
- `search_code(pattern)` — graph-augmented grep
2. **Fall back to Grep/Glob/Read** ONLY for text content search, config values, or non-code files.
3. **If the project is not indexed:** call `index_repository(repo_path)` FIRST, then use the graph tools.
4. **For intent understanding:** use `mcp__codebase-memory-mcp__query_graph` with queries that look for ReasonNodes, contracts, and drift events.
Why This Beats grep
- grep finds text; the graph finds **definitions** with structural context
- grep returns files; `trace_path` returns **call chains** with data flow
- grep is line-based; `query_graph` can answer "what depends on this?" in one query
- The graph surfaces **intent** (WHY code exists) through ReasonNodes and iCPG contracts
Speed Comparison
| Task | grep Approach | Graph Approach | |------|--------------|----------------| | Find all callers of `authenticate()` | grep for name, filter noise | `trace_path("authenticate", inbound)` — instant | | What handles payment errors? | grep "payment.*error", read files | `search_graph(query="payment error handler")` | | Architecture overview | Read 20+ files manually | `get_architecture()` — one call |
Turn Claude Code into a self-reviewing, test-enforced engineering system that remembers context across sessions — then route work across 13 models from a single dashboard.
More agents from other plugins.
cavecrew-builder
AgentSurgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…
Questions about explore.
- Which coding agents can use explore?
- explore 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.

