Expand description
Hierarchical narrowing middleware.
Implements a three-phase progressive-disclosure strategy:
tree— build a directory map of the projectskeleton— extract signatures from candidate files- targeted read — return only the relevant function/range
This reduces token usage versus reading entire files by ~75%.
Structs§
- Hierarchical
Narrowing - Hierarchical narrowing engine.
- Narrowing
Query - Query parameters for hierarchical narrowing.
- Narrowing
Result - A single result from hierarchical narrowing.
Enums§
- Narrowing
Error - Errors produced by
HierarchicalNarrowing.
Functions§
- file_
score - Score a file path by the proportion of query words that appear in it.
- symbol_
score - Score a skeleton line by query word overlap.