Architecture No native equivalent

classify_roles

Classifies symbols as Hub, Bridge, Leaf, or Sink by call graph position. Reveals architectural risk.

What it does

Classifies every symbol in the codebase into an architectural role:

RoleDefinitionSignal
HubHeavily depended upon, low coupling to othersCore utilities, critical paths
BridgeConnects otherwise separate module communitiesPotential coupling risk
LeafUsed in one place, low couplingGood candidate for inlining
SinkImports many things, exports fewOrchestration layer, potential god class

Why this matters

Understanding role distribution reveals architectural risk. Too many Hubs without test coverage is a danger signal. An unexpected Bridge between security and UI modules is worth investigating.

No native equivalent.

Benchmark note

This benchmark compares CodeSift against the closest practical native workflow an agent would use for the same task. For some tools, that baseline is a direct shell equivalent such as rg or find. For AST-aware, graph-aware, and LSP-backed tools, the baseline is a multi-step workflow rather than a strictly identical command. Results should be read as agent-workflow comparisons: token cost, call count, and practical context efficiency.