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
ast-grep isn't covered yet — only grep/rg get filtered right now.
Matches are usually multi-line (whole statement/block per hit), so raw output on a repo-wide search gets big fast.
Same idea as the grep filter, just for structural search.
I tried a quick prototype locally: group matches by file, cap per-file/total, same pattern as rtk grep.
On a repo-wide test search here it cut ~1528 tokens down to ~235 (~85%). --json stays untouched since that's an explicit structured-output ask.
Happy to open a PR for this if it's a good fit — let me know if the approach makes sense or if you'd want it done differently.
Activity
officiallymarky commentedon Sep 7, 2026
Yes please!
feat(ast-grep): filter ast-grep output like grep/rg