MerchantryTidbits

codebase-intel / cli

ast-grep

Capability: ast-grep

Use it when

  • structural search replace across a large codebase
  • AST-aware refactors without fragile regex

What it solves

Not the fit when

  • semantic natural language code search alone

Install

cargo install ast-grep  # or npm/brew packages

Invoke

ast-grep -p 'console.log($A)' -l ts  # structural search beyond regex

Alternatives

repomix