Skip to main content

handle

Function handle 

Source
pub fn handle(
    _cache: &SessionCache,
    task: Option<&str>,
    path: Option<&str>,
    _crp_mode: CrpMode,
) -> String
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.