# ast-grep

> It is heavily inspired by semgrep, but intends to be an AST-base searcher/linter/rewriter. https://github.com/ast-grep/ast-grep

Page: https://nowfound.app/launch/ast-grep

- Launched: 2023-05-11
- Launch-day votes: 63, 4 comments; #1,296 of 4,395 launches that month (top 29%)
- Website: [ast-grep.github.io](https://ast-grep.github.io/), online when checked 2026-09-16
- Category: [Dev tools](https://nowfound.app/c/developer-tools.md)
- Forecast: 87% chance its website is still online in November 2031 (98% in November 2027, 92% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2023: 80%. [Method](https://nowfound.app/forecast.md)
- Originality: 62/100 (familiar idea). More original than 62% of products launched in 2023. On its launch day the archive already held 3 similar products; 9 products like it have launched since.
- Makers: Herrington Darkholme
- Topics: Productivity, Developer Tools, Tech

## In plain words

AST-grep is a command-line tool that searches, lints, and rewrites code using abstract syntax tree analysis powered by tree-sitter. It combines the functionality of grep, ESLint, and codemod tools into a single utility. Designed for developers who need to find patterns in code and make large-scale refactoring changes, AST-grep enables syntax-aware code inspection and transformation across multiple programming languages.

_Written by AI from its launch page and website, 2026-09-05._

## What it does, from its own words

ast-grep(sg) is a fast and polyglot tool for code searching, linting, and rewriting at large scale. Think it as a hybrid of grep, eslint, and codemod. But for all programming languages with super fast running speed!

ast-grep is a fast and polyglot tool for code structural search, lint, rewriting at large scale.

## Does a similar job

- [Search code in GitHub repos using regular](https://nowfound.app/launch/search-code-in-github-repos-using-regular-expressions): Code search made fast (2020-02-23, 614 votes, forecast: 90% online in 2031, grep.app)
- [Structural code grep across public GitHub](https://nowfound.app/launch/structural-code-grep-across-public-github-repositories): Codemod grep searches public code by syntax and structure, not just text or regex. Use ast-grep patterns to find code by shape across repositories. (2026-08-22, 15 votes, forecast: 84% online in 2031, grep.codemod.com)
- [Anyone interested in a tool helps to explore](https://nowfound.app/launch/anyone-interested-in-a-tool-helps-to-explore-c-asts): This tool helps C++ developers perform static code analysis by providing interactive exploration of abstract syntax trees (ASTs). (2026-05-21, 49 votes, forecast: 86% online in 2031, uvic-aurora.github.io)
- [SeaGOAT](https://nowfound.app/launch/seagoat-local-ai-based-grep-for-semantic-code-search): local-first semantic code search engine. (2023-09-20, 240 votes, free, forecast: 93% online in 2031, github.com)
- [Semantic Grep](https://nowfound.app/launch/semantic-grep-a-word2vec-powered-search-tool): Much improved new version. Search for words similar to the query. For example, "death" will find "death", "dying", "dead", "killing"... Incredibly useful for exploring large text datasets where exact… (2024-07-27, 356 votes, free, forecast: 91% online in 2031, github.com)
- [A syntax highlighter for Git and diff output](https://nowfound.app/launch/a-syntax-highlighter-for-git-and-diff-output-written-in-rust): A syntax-highlighting pager for git, diff, grep, rg --json, and blame output (2020-04-27, 261 votes, free, forecast: 95% online in 2031, github.com)

All alternatives: https://nowfound.app/alternatives/ast-grep.md

## For the maker of ast-grep

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/ast-grep
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/ast-grep"><img src="https://nowfound.app/badge/ast-grep.svg" alt="ast-grep on NowFound" height="32"></a>`

Source: [Product Hunt launch](https://www.producthunt.com/products/ast-grep/launches/ast-grep)
