Get architecture
get_architectureGet a clear architecture overview of any codebase: compact summary by default, or request specific aspects like dependencies, clusters, and routes. Scope analysis to a directory prefix for targeted insights.
Instructions
Get high-level architecture overview. DEFAULT (no aspects) is a compact summary — overview counts, languages, packages, entry_points; request more via aspects:[...] (structure, dependencies, routes, hotspots, boundaries, layers, clusters, file_tree) or ["all"]. 'clusters' runs Leiden community detection over the call/import graph, surfacing the de-facto modules (label, member count, cohesion score, representative top_nodes, binding packages/edge_types) — the real architectural seams, which often cut across the folder layout. Optional path scopes analysis to nodes under that directory prefix (file_path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional directory prefix to scope architecture (e.g. apps/hoa) | |
| aspects | No | Aspects to include. 'all' = everything; 'overview' = compact summary (all except file_tree); omit = all. 'cycles' is opt-in ONLY (never via all/overview): it scans the whole call graph for circular CALLS dependencies (SCCs of size > 1). | |
| project | Yes |