Skip to content
OSSsoftware

AST-GREP

A CLI tool for code structural search / lint and rewriting.

Open sourceThriving · 96/10017k GitHub stars

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.

AST-GREP screenshot

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

Open source
Yes
License
MIT
Language
Rust
Pricing
Free

AST-GREP vs similar projects

AST-GREP compared with similar open-source projects
ProjectStarsLicenseLanguageLast commitHealth
AST-GREPA CLI tool for code structural search / lint and rewriting.17k GitHub starsMITRusttodayThriving
PullflowAI-enhanced code review collaboration across GitHub / Slack & VS Code.7 GitHub starsMITTypeScript1 year agoInactive
DifyThe next-gen development platform - Easily build and operate generative AI applications.162k GitHub starsOtherPythontodayThriving
OpenHandsOpen-source AI software development agent that can autonomously work on code and development tasks.94k GitHub starsMITTypeScripttodayThriving
HoppscotchOpen-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI 81k GitHub starsMITTypeScript2 days agoThriving
ClineOpen-source coding agent for IDE, terminal and automated development workflows.72k GitHub starsApache-2.0TypeScripttodayThriving
BerriAICall all LLM APIs using the OpenAI format.64k GitHub starsOtherPythontodayThriving

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).

Share:XLinkedIn

Maintain AST-GREP? Add the badge to your README

Shows your project's health score and links back to this page.

AST-GREP on OSS Software
[![AST-GREP on OSS Software](https://osssoftware.org/badge/ast-grep.svg)](https://osssoftware.org/tools/ast-grep/)