Skip to content
Development
Agent

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.

From plugin
maggy
7101 skill1 agent25 commands1 hook

Claude Code

$ npx -y skills add alinaqi/maggy --agent claude-code

Agent definition

explore.md
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 |

Read more
@alinaqi
Ships withmaggy

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.

71073 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
710
Star history of alinaqi/maggy 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 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.