communities
Partitions the code's call graph into natural subsystems based on call frequency, revealing cohesive clusters and connector hubs. Reports modularity and top members for structural analysis.
Instructions
The codebase's SUBSYSTEMS: partitions the call graph into clusters that call each other more than the rest of the tree (label propagation), independent of the directory layout — the structure the code HAS, not how it was filed. Each community carries a label (its highest-degree member), size, cohesion, the files it spans, and its top members with node_id + handle. Reports the graph modularity and lifts out cross-cutting connector hubs. Partitions over precise compiler calls by default; set include_dispatch for C function-pointer trees. Use AFTER hubs to go from 'what is central' to 'what are the parts'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| format | No | text (compact, default) | json (structured result page) | |
| members | No | ||
| min_size | No | ||
| include_dispatch | No |