logoalt Hacker News

embedding-shapeyesterday at 4:55 PM1 replyview on HN

> * I don't want to push unreviewed code to the repo, so I have set up a git hook refusing to push commits done by an LLM agent."

Seems... Not that useful?

Why would someone make commits in your local projects without you knowing about it? That git hook only works on your own machine, so you're trying to prevent yourself from pushing code you haven't reviewed, but the only way that can happen is if you use an agent locally that also make commits, and you aren't aware of it?

I'm not sure how you'd end up in that situation, unless you have LLMs running autonomously on your computer that you don't have actual runtime insights into? Which seems like it'd be a way bigger problem than "code I didn't reviewed was pushed".


Replies

raphinouyesterday at 5:09 PM

The agents run in a container and have an other git identity configured. It happens that agents commit code and I don't want to push it accidentally from outside the container, which is where I work.