Skip to main content
Developers doing mechanical edits in Cursor

Cursor ast-grep stack

Cursor writes the change, ast-grep matches syntax instead of regex, Graphify shows what still depends on the old shape.

Who owns what

  1. Cursor

    The host — watched edits in the repo while you are at the keyboard.

    Try Cursor (opens in a new tab)
  2. ast-grep

    The rewrite — AST search and replace, not a regex loop.

    Website
  3. Graphify

    The blast radius — what still imports the old name.

    Try Graphify (opens in a new tab)

How to use this stack

  1. Write one example edit in Cursor so you know the after shape.
  2. Turn that shape into an ast-grep rule and run it dry before you write.
  3. Ask Graphify what still depends on the old symbol.
  4. Apply the rewrite. Review the diff in Cursor, not in the grep output.

Why we picked this: The Cursor ast-grep stack: structural rewrite and Graphify