discovered 08 Sep 2026
ast-grep
→ View on GitHubast-grep is a command-line interface (CLI) tool designed for structural code searching, linting, and code rewriting using abstract syntax trees (ASTs). It allows users to write search patterns that match code based on its syntactical structure, employing a wildcard mechanism to represent varying AST nodes. Key features include easy pattern matching using code-like syntax and the capability to rewrite code snippets automatically, enhancing code quality and maintainability.