Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by virtualritz

1 month ago

What you really want is ast-grep[1].

Ripgrep is much faster than grep. But the result is not more concise and tokens are wasted.

I think codex uses ast-grep by default, if installed; Claude has to be instructed?

[1] https://ast-grep.github.io/

0 comments

virtualritz

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities