AST-GREP
A CLI tool for code structural search / lint and rewriting.
AST-GREP is an open-source project in the Code review category written in Rust, released under the MIT license. It has 16,722 GitHub stars and its last commit was today. People use it as an alternative to VS Code.
About AST-GREP
AST-GREP is a command-line interface (CLI) tool designed for structural code search, linting, and rewriting. It leverages abstract syntax trees (AST) to perform advanced code analysis tasks. With AST-GREP, developers can search codebases for specific structural patterns, identify code smells, and enforce coding standards. Additionally, AST-GREP enables automated code refactoring by allowing developers to define custom rules for code transformation. Whether you're performing code audits, enforcing coding guidelines, or refactoring legacy code, AST-GREP provides a powerful set of tools to streamline code analysis and improve code quality.
GitHub activity
- Stars
- 16,722
- Forks
- 514
- Open issues
- 37
- Last commit
- today
- Latest release
- 0.51.3 · 11 days ago
- Created
- 2022
#codemod#linter#ast#babel#command-line#command-line-tool#grep#tree-sitter#codereview#rust#static-analysis#typescript
AST-GREP is an alternative to
AST-GREP at a glance
- Website
- ast-grep.github.io
- Source code
- ast-grep/ast-grep
- Open source
- Yes
- License
- MIT
- Language
- Rust
- Pricing
- Free
- Categories
- Code reviewTypeScriptDevHuntRust
AST-GREP vs similar projects
| Project | Stars | License | Language | Last commit | Health |
|---|---|---|---|---|---|
| AST-GREPA CLI tool for code structural search / lint and rewriting. | 17k GitHub stars | MIT | Rust | today | Thriving |
| PullflowAI-enhanced code review collaboration across GitHub / Slack & VS Code. | 7 GitHub stars | MIT | TypeScript | 1 year ago | Inactive |
| DifyThe next-gen development platform - Easily build and operate generative AI applications. | 162k GitHub stars | Other | Python | today | Thriving |
| OpenHandsOpen-source AI software development agent that can autonomously work on code and development tasks. | 94k GitHub stars | MIT | TypeScript | today | Thriving |
| HoppscotchOpen-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI | 81k GitHub stars | MIT | TypeScript | 2 days ago | Thriving |
| ClineOpen-source coding agent for IDE, terminal and automated development workflows. | 72k GitHub stars | Apache-2.0 | TypeScript | today | Thriving |
| BerriAICall all LLM APIs using the OpenAI format. | 64k GitHub stars | Other | Python | today | Thriving |
Compare AST-GREP
AST-GREP FAQ
What is AST-GREP?
A CLI tool for code structural search / lint and rewriting. AST-GREP is a command-line interface (CLI) tool designed for structural code search, linting, and rewriting. It leverages abstract syntax trees (AST) to perform advanced code analysis tasks. With AST-GREP, developers can search codebases for specific structural patterns, identify code smells, and en
Is AST-GREP open source?
Yes. AST-GREP's source code is public on GitHub (ast-grep/ast-grep) under the MIT license.
Is AST-GREP still maintained?
AST-GREP's last commit was on 2026-11-26 (today), latest release 0.51.3 on 2026-11-16. Health score: 96/100.
Is AST-GREP free?
AST-GREP is free to use and can be self-hosted; some projects also sell an optional hosted plan.
What are the best alternatives to AST-GREP?
Similar projects include Pullflow (★ 7), Dify (★ 162k), OpenHands (★ 94k), Hoppscotch (★ 81k), Cline (★ 72k).
Maintain AST-GREP? Add the badge to your README
Shows your project's health score and links back to this page.
[](https://osssoftware.org/tools/ast-grep/)