cos_graph_overview
Generate a whole-repo architecture map by aggregating files into weighted module nodes and cross-module edges, excluding tests and build output.
Instructions
Aggregate files into module nodes with weighted cross-module edges (architecture map).
One whole-repo shape in a single call: directories become nodes weighted by member count, and cross-module imports/calls/inheritance aggregate into weighted edges. Same-module edges are dropped, and tests, build output and worktrees are excluded so the map is the architecture rather than a mirror of it.
Args: max_modules: Heaviest modules kept (default 40, max 100). min_edge_weight: Prune edges lighter than this (default 1).
Returns: JSON envelope with , and module_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_modules | No | ||
| min_edge_weight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |