important_symbols
Rank symbols by their weighted PageRank importance over the code dependency graph to reveal the spine your changes depend on. Auto-seeds from your git diff or accepts custom symbols for targeted analysis.
Instructions
Rank the most load-bearing symbols by weighted PageRank over the call/type/import edge graph — what the rest of the code most depends on. Run before editing to see the spine you shouldn't reinvent or break. By DEFAULT (no personalize) it auto-seeds from your current git diff, returning importance relative to your current changes; pass personalize (names, refs, or sym_<hex> handles you're working on) to seed it explicitly, or a single "global" to force whole-repo PageRank. The result is a labeled object: mode (which scale), seed_source (seed provenance), and symbols.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max load-bearing symbols to return. | |
| personalize | No | Symbols to bias importance toward (the symbols you're editing/querying) — names, refs (`path::name`), or `sym_<hex>` handles; the random surfer teleports back to these, lifting the spine *they* depend on. A `sym_<hex>` handle resolves to its logical symbol's members; otherwise the entry is resolved by ref then name (ambiguous/missing entries are skipped, never fatal). LEAVE EMPTY to auto-seed from your current git diff (the default — "importance relative to your current changes"). Pass a single `"global"` to force whole-repo PageRank instead. |