EVERYTHING XIAOMI
Get listed
Side by side

ast-grep vs Coccinelle

ast-grep logo

ast-grep

7.0#3 in code search toolsFree plan
Free planWebAPIExtensionLinux
Visit
Coccinelle logo

Coccinelle

5.9#11 in code refactoring toolsFree plan
Free planLinuxmacOS
Visit

What both publish

Factast-grepCoccinelle
Purposeast-grep is a fast, polyglot tool for structural code search, linting, and rewriting at scale.Coccinelle is a program matching and transformation engine that uses SmPL to specify desired matches and transformations in C code.
SupportThe project directs users with questions or issues to GitHub or Discord and also points to Stack Overflow and Reddit.Questions can be sent to the [email protected] mailing list, which is moderated for non-members; contributions are preferred via the list and may also be submitted on GitHub.

ast-grep plans

  • ast-grepFree

Coccinelle plans

  • CoccinelleFree

Pick ast-grep if…

It suits developers who need syntax-aware search, linting, or bulk code changes across supported languages. Teams wanting advanced static-analysis information or one rule spanning multiple languages should note its stated limits.

Pick Coccinelle if…

Coccinelle suits developers working on C code who need repository-wide transformations or help finding and fixing systems-code bugs. It also offers C++ mode for projects using that language.

Charts they share