Skip to main content

handle

Function handle 

Source
pub fn handle(
    _cache: &SessionCache,
    task: Option<&str>,
    path: Option<&str>,
    _crp_mode: CrpMode,
) -> (String, bool)
Expand description

Multi-resolution context overview.

Provides a compact map of the entire project, organized by task relevance. Files are shown at different detail levels based on their relevance score:

  • Level 0 (full): directly task-relevant files → full content (use ctx_read)
  • Level 1 (signatures): graph neighbors → key signatures
  • Level 2 (reference): distant files → name + line count only

This implements lazy evaluation for context: start with the overview, then zoom into specific files as needed. Returns the rendered overview plus whether it is the complete graph-backed view (#1134). false means the partial, still-indexing fallback — callers must take it from here rather than pattern-matching the body text.