3 ms·
Since it's generating terminal commands dynamically, what safeguards (if any) are in place to avoid generating destructive or insecure commands (like rm -rf /,
by badmonster 1y ago
Since it's generating terminal commands dynamically, what safeguards (if any) are in place to avoid generating destructive or insecure commands (like rm -rf /, etc.)?
- sathishvj 1y agoYes, this is a concern. When I built something similar (gencmd.com), I avoided the auto-run option even though it was easy to implement. imho, it's better to have a human in the loop for these.
- dtnewman 1y ago1) When you are selecting a command you get a little description at the bottom telling you what it does. 2) this doesn’t run anything. It goes to your clipboard and you have to run it yourself 3) this a good callout… what do u think? I’m thinking maybe ask the models to return a Boolean is_dangerous plus a small explanation and then I can display dangerous commands in red and show the warning when you select one.
- badmonster 1y agosounds like a solid plan
- dtnewman 1y agoJust fyi, this is now implemented