Semgrep is the spiritual successor of a tool called Coccinelle , which was initially used to help with refactoring on the Linux kernel. One of Coccinelle's authors actually works on Semgrep today!