ast-grep0.51.3

A fast and polyglot tool for code searching, linting, rewriting at large scale.

WindowsSystem ToolsOpen source

v0.51.3

15.8 MBscanned clean

Verify your download

Select the file you downloaded to check it against the hash we published — the check runs in your browser, nothing is uploaded.

Screenshots

About

Search and modify code by syntax rather than text, using AST patterns to locate matching structures across thousands of source files. ast-grep can replace patterns interactively, making large-scale refactoring and codemod work practical while preserving the structure of the surrounding code.

It also acts as an AST-based linter: users define custom rules with concise patterns, then receive formatted diagnostic output from the command line. Its parallel Rust engine handles large searches and rewrites, and built-in support covers many programming languages, with custom tree-sitter parsers available through dynamic loading. Interactive codemods, a language server, and a testing tool extend it beyond one-off searches.

Developers can use a single command for quick checks or connect to its Node.js binding, @ast-grep/napi, for programmatic syntax-tree traversal with jQuery-like utility methods and optional type safety. This suits teams performing broad API migrations, enforcing project-specific coding rules, or building automated source transformations across polyglot codebases.

Version 0.51.3 can load built-in outline rules from a project configuration and fixes range rules that contain only one column on a line. It is an open-source System Tools utility for Windows 8 and later, Windows Server 2012 and later, on x64 systems; its npm integration requires Node.js 20 or newer.

Requires Windows 8+ · Server 2012+ · Architecture: x64

What's new in v0.51.3

  • feat(cli): load built-in outline rules from project config #2978
  • fix(cli): replace npm binaries atomically in postinstall #3083
  • chore(deps): update rust crate inquire to v0.9.5 #3097
  • fix(config): allow range rule with only one column on a single line #3091
  • Revert "chore(deps): update dependency node to v26 (#3069)" #3095
  • chore(deps): update dependency python to 3.15 #2996
  • chore(deps): update rust crate tree-sitter-scala to v0.26.13 #3086
  • chore(deps): update dependency @ast-grep/napi to v0.51.2 #3089
  • chore(deps): update rust crate libloading to v0.9.1 #3093
  • ci(pyo3): build Python 3.15 wheels on Linux and Windows #3094
  • chore(deps): update rust crate napi to v3.16.2 #3087
  • chore(deps): update rust crate napi-derive to v3.7.1 #3088
  • chore(npm): require Node.js 20 or later 4fd48c5
  • fix: bump pyo3 version c7e005c

Details

PlatformWindows
CategorySystem Tools
LicenseOpen source
PricingFree
Package IDast-grep.ast-grep
Authorast-grep
Latest versionv0.51.3
File typeZIP
Minimum OSWindows 8+ · Server 2012+
Architecturex64
File size15.8 MB
Published11/23/2026

SHA-256

Does this still work for you?

Works (0)Doesn't work (0)Sign in to vote

Badge for your website

Developers can show that ast-grep is available on MirrorNest. Copy the code below: the badge links to this page and updates itself.

ast-grep on MirrorNest
HTML
<a href="https://mirrornest.com/software/ast-grep-02f73acb"><img src="https://mirrornest.com/badge/ast-grep-02f73acb.svg" alt="ast-grep on MirrorNest" height="20"></a>
Markdown
[![ast-grep on MirrorNest](https://mirrornest.com/badge/ast-grep-02f73acb.svg)](https://mirrornest.com/software/ast-grep-02f73acb)

Reviews

No reviews yet — be the first.

Leave a review

Sign in to post as a verified member instead of anonymously.

ast-grep alternatives