Expand description
Search result summarization
Summarizes grep_file and list_files outputs from full match listings into concise summaries suitable for LLM context.
§Strategy
Instead of sending all 127 matches across 2,500 tokens, send: “Found 127 matches in 15 files. Key files: src/tools/grep.rs (3 matches), src/tools/list.rs (1 match). Pattern in: execute_grep(), grep_impl() functions”
Target: ~50 tokens vs 2,500 tokens = 98% savings
Structs§
- Grep
Summarizer - Summarizer for grep_file results
- List
Summarizer - Summarizer for list_files results