defaultHeadLimit top-level constant

int const defaultHeadLimit

Default cap on grep results when head_limit is unspecified. Unbounded content-mode greps can fill up to the 20KB persist threshold (~6-24K tokens / grep-heavy session). 250 is generous enough for exploratory searches while preventing context bloat. Pass head_limit=0 explicitly for unlimited.

Implementation

const int defaultHeadLimit = 250;