- Home
- Agent skills
- ast-grep
ast-grep
AST-aware structural code search and rewrite
What it is
Uses the ast-grep tool for structural search and codemod-style rewrites that understand syntax, not just text.
Good for
- Rename an API across a codebase
- Find all uses of a pattern
- Write a codemod
Install or run
hermes skills install official/software-development/ast-grepCommand as given in the project README. Read the repository before you run anything on your machine.
What you need
ast-grep installed
Worth knowingRewrites touch many files; run on a clean git tree.
Sources
- https://github.com/NousResearch/hermes-agent/tree/HEAD/optional-skills/software-development/ast-grep (project README, read 13 Nov 2026)
- https://api.github.com/repos/NousResearch/hermes-agent (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.