Skip to content

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()
  • 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.)
  • First query in any new session on an unfamiliar project
  • Before making architectural changes
  • When you need to orient quickly without reading many files
# Step 1: orient
code_summary()
# Step 2: find the hot paths
code_hotspots(type="called")
# Step 3: visualize dependencies
code_map()