r/bash • u/Quirky-Wolf9799 • 8d ago
I vibe-coded a bash script to run detached jobs over SSH (for n8n). Please tear it apart.
I got AI write a small bash script called runit (complete AI slop). It runs a command fully detached over SSH, so n8n can start a long job and check back on it later. Each job keeps its state in its own folder, and you can check status, read logs, send input, or kill it by PID.
I've tested it and it works for my use case, but I've hit the limit of what I know, and I'd like experienced people to look at it before I rely on it.
Things I'd love suggestions on:
Bash pitfalls or edge cases I missed
Features that are missing
Repo: https://github.com/Bipul-Bimali/Toolz
Thanks for any feedback, even harsh!
15
u/BenZed 8d ago
vibe code scripts for humans to review? lol, get your model to review it
5
u/ladder_filter 8d ago
So you're not getting a lot of help here, so I'll chime in:
Install 2 things:
The first will look for errors, the 2nd will correct formatting.
This is better than nothing.
Make sure that you write logging into your script (I haven't looked at it, too much going on this morning) and review those logs.
1
u/kai_ekael 8d ago
Guess we need a name for an "AI reviewer", imagine this will become a valuable thing (please, oh please). "Trainer", no flippin' way.
4
u/[deleted] 8d ago
[removed] — view removed comment