# ast-grep alternatives

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

24 products that do a similar job, closest first. 20 have pricing checked on their own site; 20 of those are free or have a free tier.

Page: https://nowfound.app/alternatives/ast-grep
About ast-grep: https://nowfound.app/launch/ast-grep.md

- [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, 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, 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, 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, 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, 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, github.com)
- [Transductive regular expressions for text](https://nowfound.app/launch/transductive-regular-expressions-for-text-editing): Transductive regular expressions for text editing is a command-line tool that extends standard regular expressions to simplify group logic for text editing tasks. (2025-02-07, 263 votes, free, github.com)
- [A book on GNU grep and ripgrep](https://nowfound.app/launch/i-wrote-a-book-on-gnu-grep-and-ripgrep): My book on "GNU grep and ripgrep" is free to download today and tomorrow \[1\]\[2\] Code snippets, example files and sample chapters are available on GitHub \[3\] The book uses plenty of examples and regul… (2019-06-18, 182 votes)
- [Semble](https://nowfound.app/launch/semble-code-search-for-agents-that-uses-98-fewer-tokens-than): Semble is an open-source code search tool designed for AI agents working with large codebases. (2026-05-17, 445 votes, free, github.com)
- [Grep with colours written in Go](https://nowfound.app/launch/grep-with-colours-written-in-go): Grep with colours. (2018-06-05, 127 votes, free, github.com)
- [XRAY MCP](https://nowfound.app/launch/xray-mcp-ast-grep-wrapped-in-a-tiny-server-for-code-aware-ai): XRAY MCP provides progressive code intelligence and navigation capabilities for AI assistants through structural code analysis using ast-grep (2025-08-06, 5 votes, free, github.com)
- [Semantic grep with local embeddings](https://nowfound.app/launch/semantic-grep-with-local-embeddings): Local first semantic and hybrid BM25 grep / search tool for use by AI and humans! - GitHub - BeaconBay/ck: Local first semantic and hybrid BM25 grep / search tool for use by AI and humans! (2025-09-07, 179 votes, free, github.com)
- [GNU grep as a PHP extension](https://nowfound.app/launch/gnu-grep-as-a-php-extension): Uses upstream GNU grep to build a native php extension. (2026-04-10, 32 votes, free, github.com)
- [Greplica](https://nowfound.app/launch/greplica): Self updating wiki for coding agents (2026-07-30, 186 votes, free, github.com)
- [Grasp](https://nowfound.app/launch/grasp-grep-clojure-code-using-clojure-spec-regexes): Grep Clojure code using clojure.spec regexes. (2020-10-29, 123 votes, free, github.com)
- [Using Parsing Expression Grammars to rewrite](https://nowfound.app/launch/using-parsing-expression-grammars-to-rewrite-source-code): An example of PEG usage. (2016-09-14, 63 votes, free, github.com)
- [Gomp](https://nowfound.app/launch/gomp-a-tool-for-comparing-git-branches): GOMP (Git cOMPare) is a tool for comparing branches. (2020-07-30, 92 votes, free, github.com)
- [Gitlogue](https://nowfound.app/launch/gitlogue-a-terminal-tool-that-replays-your-git-commits-with): Gitlogue is a CLI that turns your Git commits into a typing-style replay. It visualizes diffs line by line, shows the file tree, and plays back each edit as if it were typed in real time. Key points… (2025-11-18, 159 votes, free, github.com)
- [CodeRLM](https://nowfound.app/launch/coderlm-tree-sitter-backed-code-indexing-for-llm-agents): CodeRLM is a code indexing tool that helps LLM coding agents navigate and understand large codebases more efficiently. (2026-02-11, 81 votes, free, github.com)
- [Crespo](https://nowfound.app/launch/crespo-tree-sitter-ast-blueprints-instead-of-raw-code-for-ll): Crisp Repos, Sharp AI. (2026-06-22, 14 votes, free, github.com)
- [Gat](https://nowfound.app/launch/gat-cat-alternative-written-in-go): 🐱 cat alternative written in Go. (2023-04-04, 40 votes, free, github.com)
- [Capn-hook for coding agents](https://nowfound.app/launch/capn-hook-for-coding-agents-don-t-grep-the-same-mystery-twic): Navigational memory for coding agents: chart discoveries as you explore, cache-bust when files change (2026-07-12, 29 votes, free, github.com)
- [Onboard-CLI](https://nowfound.app/launch/onboard-cli-a-llm-powered-and-ast-based-tool-to-visualize-co): Onboard-CLI is an AI-powered command-line tool that uses abstract syntax trees (AST) to visualize codebases. (2026-07-08, 24 votes, free, github.com)
- [CodeQL-Like Analyzer for Go](https://nowfound.app/launch/codeql-like-analyzer-for-go): Define and run pattern-based custom linting rules. (2020-01-07, 39 votes, free, github.com)
