← ALL INSPIRATIONS
REFERENCE NOTE / 28BUILDING BLOCKS

A TOOL WE STUDIED

ast-grep

Structural search can express focused review rules more clearly than text matching.

In the product

01 / THE WORK

What we admire

ast-grep makes syntax-aware search available as a straightforward CLI. It is well suited to small, inspectable rules over changed code rather than an opaque, sweeping analyzer.

02 / THE LESSON

The principle that stayed

A rule match is a lead with a source location. An absent match does not mean the patch is safe; the rule may not cover the language, pattern, or behavior that matters.

03 / OUR BOUNDARY

Where CodeVetter stands

CodeVetter can use an installed `sg` as an optional collector for narrow changed-file evidence. It falls back cleanly when absent and does not require ast-grep for the canonical graph.