code_summary
code_summary produces an AI-optimized summary of the entire project: key components, architecture patterns, entry points, and dependencies. It is the recommended first query when starting work on an unfamiliar codebase.
code_summary()What it returns
Section titled “What it returns”- Primary language and framework
- Entry points (main files, server bootstrap, CLI commands)
- Key components and their responsibilities
- Inter-module dependency overview
- Detected patterns (REST, event-driven, monorepo, etc.)
When to use
Section titled “When to use”- First query in any new session on an unfamiliar project
- Before making architectural changes
- When you need to orient quickly without reading many files
Workflow
Section titled “Workflow”# Step 1: orientcode_summary()
# Step 2: find the hot pathscode_hotspots(type="called")
# Step 3: visualize dependenciescode_map()