Skip to content

AST-GREP

Write Code to Match Code

ast-grep(sg) is a lightning fast and user friendly tool for code searching, linting, rewriting at large scale.

ast-grep
⚡️

Performant

Blazing fast search and replace across thousands of source code files, powered by parallel Rust.

👟

Progressive

Supports multiple forms of usages from one-line command to fully programmatic interface, scaling to different scenarios.

🛠️

Pragmatic

Not a toy but a batteries-included tool with interactive codemod, language server and testing tool.

Made with ❤️ with Rust