You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smart fallback & hints for batch_searchglob queries (src/tools/batch-search.ts)
Preserves exact glob matching first; only when exact matching returns 0 files, automatically recovers two common LLM mistakes observed in live transcripts:
Regex alternation passed to glob (e.g., test|smoke|live) is auto-expanded with a concise inline note (or returns a syntax hint when still empty).
Bare keywords without wildcards, slashes, or extension dots (e.g., proxy) fall back to case-insensitive path substring matching (*proxy*) while keeping missing explicit filenames (e.g., missing.ts) cleanly as (no files matched).
Higher-density large outline batches (src/tools/read-slices.ts)
Tuned perFileSymbolLimit for larger batches (11–20 files: 16 symbols; >20 files: 10 depth-0-prioritized symbols) and shortened per-file omission footers (... (+N more symbols)) so 30–40 file calls spend less of the 8.8 KB cap on truncation boilerplate.
Appends a 1-line batching tip when outlining >20 files exceeds the 8.8 KB inline budget, steering callers toward 10–20 files per batch.
Added concise guidance in Rule 6 to remind swarm workers in their brief to batch searches/edits via agy-fast_fast (if available) or parallel ranged read_file instead of serial ls/grep shell calls, since swarm workers do not receive the SessionStart snapshot.
Clarified batch_search glob syntax (*/{a,b}, not regex |) and recommended read_slices outline batch sizes (10–20 files, max 40) in both AGENTS.md and MCP tool schemas.