A CLI tool for code structural search, lint and rewriting. Written in Rust
$ apk add ast-grep$ snap install ast-grep$ nix-shell -p ast-grep$ brew install ast-grep$ sudo port install ast-grep$ pkgin install devel/ast-grep$ scoop install main/ast-grep$ pip install ast-grep-cli$ cargo binstall ast-grep$ cargo install ast-grep
ast-grep is a blazing-fast AST-based tool for code structural search, linting, and rewriting that goes beyond traditional regex by understanding programming language syntax.
It uses a intuitive pattern-matching syntax that looks like real code, allowing developers to query and refactor complex codebases across multiple languages effortlessly.
Featuring high performance and seamless CI integration, it is ideal for enforcing custom architectural rules, automating large-scale migrations, and maintaining code quality.
Maintain ast-grep? Add this badge to your README: listings that link back are marked verified and ranked first in the directory. It's checked once a day.
[](https://cli.masoko.net/tools/ast-grep/)<a href="https://cli.masoko.net/tools/ast-grep/"><img src="https://cli.masoko.net/badge/ast-grep.svg" alt="ast-grep on The Terminal Index"></a>to comment.
ShellCheck, a static analysis tool for shell scripts
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
A command-line benchmarking tool
a structural diff that understands syntax 🟥🟩
Your CLI home video recorder 📼
Count your code, quickly.