/code-explorer:code-explorer [command] [arguments]from Code Explorer
Query and analyze codebases using the Code Explorer knowledge graph. Use for finding symbols, analyzing impact, understanding architecture, exploring code relationships, generating documentation, and asking questions about code.
Ships in Code Explorer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You have access to Code Explorer, a code-intelligence tool that builds a knowledge graph from source code. Use it to answer questions about codebases, find symbols, trace dependencies, and analyze impact — using a fraction of the context that reading files would cost.
The CLI is code-explorer. After cargo build --release the binary is at target/release/code-explorer; put it on your PATH, or call it by full path from other projects. Inside the Code Explorer repo, cargo run -p code-explorer-cli -- also works.
code-explorer demo [path] # Measure the context an LLM agent saves vs reading files
code-explorer analyze [path] # Index a repository
code-explorer analyze [path] --force # Force re-index
code-explorer analyze [path] --incremental # Only re-parse changed files
code-explorer analyze [path] --embeddings # Generate ONNX semantic embeddings (feature gated)
code-explorer analyze [path] --skip-git # Skip git history phases (required for non-git folders)
code-explorer status # Check if index exists (+ last index duration / phase timings)
code-explorer query "authentication middleware" # Natural language search
code-explorer query "user service" --limit 5 # Limit results
code-explorer context UserService # Callers, callees, imports, exports, hierarchy
code-explorer context handleRequest --repo my-project
code-explorer impact handleRequest --direction both # Upstream + downstream
code-explorer impact UserService --direction upstream # Who calls this?
code-explorer impact UserService --direction downstream # What does this call?
code-explorer ask "how does the pricing calculation work?" --path /path/to/project
code-explorer ask "which controllers call the external API?"
code-explorer report --path /path/to/project # Text report with grade A-E
code-explorer report --path /path/to/project --json # JSON output
code-explorer hotspots --path [path] # Most changed files (last 90 days)
code-explorer coupling --path [path] # Files that change together
code-explorer ownership --path [path] # Code ownership by author
code-explorer coverage # Global tracing + dead code stats
code-explorer coverage UserService # Single class coverage
code-explorer coverage --json # JSON output
code-explorer coverage UserService --trace # Flow trace mode
code-explorer cypher "MATCH (n:Function) RETURN n.name LIMIT 10"
code-explorer cypher "MATCH (n:Controller)-[:DEFINES]->(a:ControllerAction) RETURN n.name, a.name"
code-explorer cypher "MATCH (n:Method) WHERE n.name STARTS WITH 'Get' RETURN DISTINCT n.name"
code-explorer cypher "MATCH (n:Function) WHERE n.name CONTAINS 'auth' OR n.name CONTAINS 'login' RETURN n"
code-explorer cypher "MATCH (n:Method) WHERE NOT n.filePath ENDS WITH '.test.cs' RETURN n.name"
Supported Cypher operators:
=, <>, !=, CONTAINS, STARTS WITH, ENDS WITHAND, OR, NOT (precedence: NOT > AND > OR)DISTINCT, count()ORDER BY [ASC|DESC], LIMITcode-explorer shell # REPL with tab completion
# Inside the shell: query, context, impact, cypher, hotspots, stats, help
code-explorer mcp # Start MCP server (stdio, JSON-RPC 2.0)
# 30 tools, including: list_repos, query, context, impact, detect_changes, rename,
# cypher, search_code, read_file, find_cycles, find_similar_code, hotspots, coupling,
# ownership, coverage, diagram, report, analyze_execution_trace, get_complexity,
# list_todos, list_endpoints, list_db_tables, list_env_vars, get_endpoint_handler,
# get_insights, save_memory
code-explorer mcp-install # Auto-configure the MCP server for Claude Code
code-explorer serve --port 3000 # JSON-RPC /mcp + REST + SSE
code-explorer serve --port 3000 --host 0.0.0.0 # Expose on all interfaces
code-explorer config test # Check API key + test connection
code-explorer list # Show all indexed repositories
code-explorer generate context --path [path] # AGENTS.md at repo root
code-explorer generate wiki --path [path] # /wiki/*.md (one per module)
code-explorer generate docs --path [path] # .codeexplorer/docs/*.md
code-explorer generate docx --path [path] # documentation.docx (Word, full doc with TOC)
code-explorer generate html --path [path] # DeepWiki-style HTML site
code-explorer generate obsidian --path [path] # Obsidian vault export
code-explorer generate all --path [path] # All formats above in one run
Flags on every generate subcommand: --output-dir <dir>, --enrich (LLM, needs chat-config.json), --enrich-profile <fast|quality|strict>, --enrich-lang <auto|fr|en>, --enrich-citations.
code-explorer trace-files ClassName # All source files involved in a feature
code-explorer diagram ClassName --type flowchart|sequence|class
code-explorer rag-import <docs-folder> --path [path] # Import .md/.docx specs, link to code
code-explorer watch [path] # Re-index on file changes (debounced)
code-explorer dashboard [path] # Interactive terminal UI over the graph
code-explorer clean [--force|--all] # Delete an index
code-explorer setup # Configure editor MCP integration
When the user asks about code structure, architecture, dependencies, or impact:
code-explorer status in the relevant directory.code-explorer analyze [path] first (add --skip-git if the target isn't a git repo).code-explorer query "X" or code-explorer context Xcode-explorer impact X --direction upstreamcode-explorer impact X --direction downstreamcode-explorer reportcode-explorer hotspotscode-explorer coverage or code-explorer coverage ClassNamecode-explorer ask "how does X work?"code-explorer generate html then read the outputcode-explorer trace-files Xcode-explorer diagram X --type flowchartThe knowledge graph contains 50+ node types:
rag-import)Calls, CallsAction, CallsService — invocation chainsImports, Exports — module dependenciesInherits, Implements — type hierarchyHasMethod, HasProperty — class membershipBelongsTo, Mentions — RAG doc-to-code anchors.codeexplorer/ directory in the repo root holds the serialized graph (graph.bin), meta.json, and metrics.json (index timing/throughput).obj/, bin/, node_modules/, packages/ during analysis.--skip-git for non-git folders; hotspots/coupling/ownership return empty there (expected).--json flags output machine-readable JSON.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
code-explorer@code-buddy is listed by phuetz/code-buddy — review the source before installing
npx claudepluginhub phuetz/code-buddy --plugin code-explorer2 skills in this plugin