Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

ast-grep

Free#9 of 42 in Code Search ToolsCode Refactoring Tools

ast-grep: A strong open-source choice for structural search, codemods, and custom linting. Ranked #9 of 42 in Code Search Tools by our editors (8.4/10); pricing: Open source; best for developers building structural codemods.

8.4/10Editor score
ast-grep8.4 Visit ast-grep

At a glance

  • Editor score
    8.4 / 10
  • Pricing
    Open source
  • Best for
    Developers building structural codemods
  • Paid from
    Free
  • Deployment
    Self_hosted
  • Facts checked
    20 Sep 2026
ast-grep screenshot
  • Where it wins

    • AST patterns support structural search beyond plain-text matching
    • Codemods, lint rules, and rewrites cover several code-maintenance workflows
    • Works across Windows, macOS, Linux, and three major editors
  • Where it doesn't

    • Self-hosted installation requires local setup and maintenance
    • Built-in language support varies by the languages in your codebase
    • Structural workflows may be more than needed for simple text search

Our verdict on ast-grep

ast-grep is an open-source command-line tool for developers who need structural code search, linting, rewriting, or codemod work. Instead of matching only plain text, it works with abstract syntax tree patterns and supports regular-expression matching within AST nodes. Its scope covers codebase search, code navigation, code outlines for symbols, imports, and exports, and programmatic AST manipulation through JavaScript and Python APIs. Developers working on Windows, macOS, or Linux can install it locally, with editor integrations for Visual Studio Code, Neovim, and Emacs.

The strongest fit is for teams building repeatable code transformations or custom static-analysis workflows. Code rewriting and interactive codemods support one-off changes as well as larger migrations, while custom YAML lint rules let developers define project-specific checks. The language server adds diagnostic and fix actions, and the online playground provides another way to work with the tool. Multi-language parsing through tree-sitter broadens its use across repositories, although the practical fit depends on whether the relevant languages are among its built-in language support.

ast-grep is distributed as open-source software and installed locally, making it a self-hosted option rather than a paid hosted service with separate tiers. That model suits developers who want direct control over their code-search and rewriting workflow, but it places setup and ongoing maintenance with the user. Choose ast-grep when structural matching, codemods, lint rules, or editor-based fixes are central requirements. For a developer who only needs straightforward text search, its AST-oriented approach may introduce more capability than necessary.

Your product? Our editors can test ast-grep in depth and publish a review, labelled as paid · from $149/mo →

ast-grep pricing

Plans Open sourceFree Free to use — no paid tier required for the core job.
See plans on ast-grep.github.io

ast-grep fact sheet

Free planNot verified
Paid fromFree
Indexing scopeCodebase
DeploymentSelf_hosted
Supported languagesNot verified
Regex searchYes
Code navigationYes
IDE extensionsYes
DeploymentSelf-hosted
PlatformsWindows, macOS, Linux
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations3 integrations: Visual Studio Code, Neovim, Emacs
PricingOpen source
Websiteast-grep.github.io
Facts checked20 Sep 2026

ast-grep integrations

ast-grep lists 3 integrations on its own site.

  • Visual Studio Code
  • Neovim
  • Emacs

Alternatives to ast-grep

See all ast-grep alternatives →

Also Ranked In

ast-grep is ranked in 2 of our directories.

Used ast-grep? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used ast-grep for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — ast-grep 8.4/10

ast-grep is listed in our Code Search Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/ast-grep/"><img src="https://www.itechguides.com/best/badge/ast-grep.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update