important_symbols
Rank code symbols by their dependency load using weighted PageRank. Automatically seeds from your current git diff to show what your edits most depend on, helping avoid breaking critical parts.
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. |