A lightning fast code search/rewrite tool!
ast-grep helps AI agents explore and change codebases by structure rather than plain text, most notably through a skill that produces a cheap map of files, directories, imports, exports and direct members before any full source is read. A second skill guides the writing of ast-grep rules for Abstract Syntax Tree pattern searches, letting agents find specific code structures that simple text matching cannot isolate.
Agent Skill
2 skills · 902 stars
Ast Grep Guide for writing ast-grep rules to perform structural code search and analysis.
Ast Grep Outline Use when exploring or modifying a codebase and you need a cheap structural map of files, director…