Expand description
Repo-aware working set tracking and prompt context packing.
The goal of this module is to keep a small, high-signal list of “active” paths that the assistant should prioritize. It observes user messages and tool calls, extracts likely paths, and produces:
- a compact working-set summary block for the system prompt
- pinned message indices that compaction should preserve
Structs§
- Working
Set - Repo-aware working-set state.
- Working
SetConfig - Configuration for working-set tracking.
- Working
SetEntry - A single working-set entry.
- Workspace
- Repo-aware resolver for
@-mentions and file pickers.
Enums§
- Working
SetSource - The source that most recently updated an entry.
Constants§
- DEFAULT_
COMPLETIONS_ WALK_ DEPTH - Default directory depth walked when surfacing file-mention completions.
Set high enough that conventionally nested source trees (Java/.NET/web
projects routinely reach 7-9 levels) stay reachable, while a
0override removes the limit entirely. Keeps Tab snappy in deep monorepos via the.gitignore-aware walk and per-keypress candidate caps (#2488).
Functions§
- rank_
completion_ candidates - Rank pre-collected completion candidates for
partialthe same wayWorkspace::completionsranks live walk hits: case-insensitive prefix matches first, then substring matches, each bucket alphabetical, truncated tolimit(#3757).