Technology
AST-Grep
ast-grep is a fast, polyglot command-line tool for structural code search, linting, and rewriting at scale.
ast-grep (sg) is a powerful command-line interface (CLI) tool for code structural search, linting, and rewriting. It operates on Abstract Syntax Trees (ASTs) generated by Tree-sitter, allowing it to match code patterns based on syntax rather than just text. This enables precise code analysis and manipulation across various programming languages like C, Java, JavaScript, Python, and Rust. You can use ast-grep for tasks such as finding code smells, refactoring, enforcing coding standards, and even automating large-scale code migrations.
What builders pair with AST-Grep
Projects using both technologies. Select a pairing to see a project.
Pairing: TypeScript
I Gave My Coding Agent ast-grep: 1,406 Invocations Later
Pairing: Claude Sonnet/Haiku
AI-powered linter
Pairing: Elixir
I Gave My Coding Agent ast-grep: 1,406 Invocations Later
Pairing: ripgrep
I Gave My Coding Agent ast-grep: 1,406 Invocations Later
Pairing: tree-sitter
I Gave My Coding Agent ast-grep: 1,406 Invocations Later
Recent Talks & Demos
Showing 1-2 of 2