System & Utilities

Ast Grep

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

By ast-grep. Free and open source for Windows, macOS, Linux. Latest version 0.51.3, released 2026-11-16.

Is Ast Grep safe?

Trust score 72/100: Good. A solid project with a few gaps. Download from the official release and keep it updated.

Things to watch:

16,626 GitHub stars · 4.6M downloads · 53 contributors.

Download Ast Grep

Downloads come straight from github.com/ast-grep/ast-grep.

About Ast Grep

ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting.

ast-grep is an abstract syntax tree based tool to search code by pattern code. Think of it as your old-friend grep, but matching AST nodes instead of text. You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure. You can use $ sign + upper case letters as a wildcard, e.g. $MATCH, to match any single AST node. Think of it as regular expression dot ., except it is not textual.

You can install it from npm, pip, cargo, cargo-binstall, homebrew, scoop, mise or MacPorts!

Or you can build ast-grep from source. You need to install rustup, clone the repository and then

Similar apps

Compare: Ast Grep vs zoxide · Ast Grep vs Miniserve

Questions

Is Ast Grep safe to download?

Ast Grep has an OpenShelf trust score of 72/100 (Good). A solid project with a few gaps. Download from the official release and keep it updated. Main thing to watch: No OpenSSF Scorecard report yet, so security practices are unverified.

Is Ast Grep free?

Yes. Ast Grep is free and open source under the MIT license. The source code is public at github.com/ast-grep/ast-grep.

Does Ast Grep work on Windows, macOS and Linux?

Ast Grep is available for Windows, macOS, Linux. Ready-made downloads exist for Windows, macOS, Linux.

How do I install Ast Grep?

Download the official file from the project's GitHub releases (for example app-aarch64-apple-darwin.zip) and run it.

What are alternatives to Ast Grep?

Similar open-source apps: zoxide (trust 70/100), Miniserve (trust 58/100), Pueue (trust 60/100), Television (tv) (trust 69/100).