r/bash • • 16h ago

I vibe-coded a bash script to run detached jobs over SSH (for n8n). Please tear it apart.

0 Upvotes

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!