AST-Grep Find Structural code search that understands syntax. Find patterns like function calls, imports, class definitions - not just text. When to Use - Find code patterns (ignores strings/comments) - Search for function calls, class definitions, imports - Refactor code with AST precision - Rename variables/functions across codebase Usage Search for a pattern Search in specific directory Refactor/replace pattern Dry run (preview changes) Parameters | Parameter | Description | |-----------|-------------| | | AST pattern to search (required) | | | Language: , , , , etc. | | | Directory to sea…