Skip to main content

MAX_GLOB_MATCHES

Constant MAX_GLOB_MATCHES 

Source
pub const MAX_GLOB_MATCHES: usize = 500;
Expand description

Maximum number of paths GlobTool returns in a single call.

Why: An unbounded match set (**/* on a huge tree) would blow the LLM context window. Capping and flagging truncation keeps the result bounded and honest. What: Constant used to truncate the sorted match list. Test: glob_truncates_large_result_sets.