s
March 26, 2024, 12:51 a.m. |

Simon Willison's Weblog simonwillison.net

Semgrep: AutoFixes using LLMs


semgrep is a really neat tool for semantic grep against source code - you can give it a pattern like "log.$A(...)" to match all forms of log.warning(...) / log.error(...) etc.


Ilia Choly built semgrepx - xargs for semgrep - and here shows how it can be used along with my llm CLI tool to execute code replacements against matches by passing them through an LLM such as Claude 3 Opus.


Via lobste.rs

ai claude cli code error etc forms generativeai llm llms match semantic shows tool

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Principal Data Engineering Manager

@ Microsoft | Redmond, Washington, United States

Machine Learning Engineer

@ Apple | San Diego, California, United States