
ast-grep
ast-grepCode searchBy ast-grep ↗
Search and rewrite code using syntax-aware patterns.
For your agent
Find code structures through an AST-based command-line interface.
Agent/AI workflow support: Not marked in source list (source list)
Example command
ast-grep --helpRun after following the project’s setup instructions. Local files, credentials, or a connected service may be required.
What it does
- AST search
- Structural patterns
- Code rewriting
Homebrew installs
ast-grep ↗Explicitly requested installation events
- 30 days
- 10,326
- 90 days
- 31,369
- 365 days
- 77,506
From Homebrew installations that report analytics. Includes package variants; counts are not unique users.
Checked . Source dated . How installs are counted ↗
Repository activity
Commits per week · GitHub snapshot
Tap, hover, or use the arrow keys to inspect weekly commits. The latest week may be incomplete.
Commands and capabilities are described from the project documentation. Repository statistics cover ast-grep/ast-grep, which may contain more than the CLI. Listing a tool does not mean every command has been tested with every agent.


