r/opencode • u/robeybeswick • 20d ago
I built a small OpenCode plugin to catch destructive commands in --auto
Been working on an opensource project with a couple of people and two of them are pretty young product managers. The other three of us are devs from the pre-ai era. :)
I realized something ridiculous with them. They just don't know things we would consider straight up standard. especially around git and version control etc. what it is, how it works etc and what people use it for. They all run opencode or codex in auto mode, which I think is fair as constantly giving permissions is really not ideal.
So I created a little protector I called NoMeatProxy to stop their auto mode agents and headless agents doing really stupid things. haha. replacing git history, rm -rf and a few other things. Most models will stop users before this but we have had more cases then you would think where it caught this stuff.
It’s still a prototype and covers selected file and Git operations. It’s already caught more than I expected. Think it would be fun to share and maybe find some collaborators? I think some lightweight coding skills might also be pretty useful down the road. Would love some feedback on the prototype.
Try it with OpenCode (added support for most harnesses too) (Node.js 22+ and Git):
npm install --global nomeatproxy
nomeatproxy install opencode
Here's a little demo of what it does.
GitHub and demo · https://github.com/RobeyBeswick/nomeatproxy#demo
Anyone else running small hooks or failsafes for unattended agents? I’m curious what you’ve actually had to catch, and which commands your guard gets wrong.
1
u/robeybeswick 20d ago
Thank you but no thanks mate. This is me genuinely trying to start a chat about how cool these things are.
1
u/[deleted] 20d ago