Find and refactor code by syntax, not text.
Finds syntax-aware code matches and refactors code using structural patterns.
When to use it
Use to find code patterns, locate calls, classes, or imports, and refactor or rename code.
Give it an AST pattern and a codebase; it finds structural matches or applies a requested replacement.
What you provide
The documented commands run the search script through Python; no version is specified.
The documented invocation uses uv to run Python through runtime.harness.
Requires the ast-grep MCP server configured in mcp_config.json.
No additional actions listed.