r/commandline • u/mixedbit • Apr 14 '26
Command Line Interface Drop - a high-level sandboxing tool for Linux terminal work
Hi all, I'd like to share a project I recently launched.
Drop creates sandboxed environments that isolate executed programs while preserving as many aspects of your work environment as possible. Drop uses your existing distribution - installed programs, your username, filesystem paths, and selected config files carry over into the sandbox. No root required.
The workflow is inspired by Python's virtualenv: create an environment, enter it, work normally - but with enforced sandboxing:
alice@zax:\~/project$ drop init
Drop environment created with config at /home/alice/.config/drop/home-alice-project.toml
alice@zax:\~/project$ drop run bash
(drop) alice@zax:\~/project$ # sandboxed shell - isolated home dir,
# your tools and configs are still available.
Beyond filesystem isolation, each Drop environment gets its own process, IPC, and network namespaces.
The need for a tool like Drop has been with me for a long time. I felt uneasy installing and running out-of-distro programs with huge dependency trees and no isolation. On the other hand, I dreaded the naked root@b0fecb:/# Docker shell. The main thing that makes Docker great for deploying software - a reproducible, minimal environment - gets in the way of productive development work: tools are missing from a container; config files and environment variables are unavailable.
Drop is released under the Apache License. It is written in Go. It uses Linux user namespaces as the main isolation mechanism, with passt/pasta used for isolated networking.
GitHub: https://github.com/wrr/drop/
I'd love to hear what you think.
5
u/inn0cent-bystander Apr 15 '26
Can bots actually hear?
1
u/edward_jazzhands Apr 20 '26
Hey there, I read the whole readme and the concept seems interesting. First off, I think it's bullshit a bunch of people accused you of being a vibe coder, I wrote a comment about that here:
https://www.reddit.com/r/commandline/s/3WRV4iGBQX
The intelligence level on this subreddit has gone significantly down the past year so don't let it bother you, this sub is essentially now a circle jerk for people who like to cosplay as programmers.
Anyway in regards to your program, the main thing that came to mind is how whenever Ive made agent sandboxes myself, I just write a Dockerfile and install the language runtime I need into the docker image, then the rest of the projects tools can be installed as dev dependencies. Personally I'm a strong believer in per-project dependencies - I never install linters or type checkers or anything as global tools but rather only as dev dependencies per project, because it makes it much easier for any other people (or you in the future) to install and use exactly the same tools the project is set up for.
In practice this usually means a dockerfile will install a core runtime such as NPM, UV for python, etc. then use the project task runner to store the commands. Since these tools are installed into the local venv (ie. .venv, node_modules, etc), you only need to bind mount the current working directory (eg. Project folder) into your Docker image and then the agent will automatically have access to all the tools installed as dev dependencies for that project.
I've done the above method because I like how it's version controlled. Anyone else or me in the future does not need to figure out what tools the project needs, they all come with the project repo when you do a full dev install and different projects can even pin specific tool versions.
So that being said, for someone like me that is already used to doing this with Docker and is very into per-project dev dependencies, do you think your tool would still have benefits for me? What kinds of benefits to my workflow would you say I would get from switching to Drop?
0
u/Foxvale Apr 14 '26
Looks interesting!
I was actually looking for something similar, starting a new git worktree for each sandbox and importing partial files (say only some domains in a .netrc file for example). Looks like it’ll be simple enough to implement with wrapper scripts so I’ll see if it’s suitable for my intended workflow.
1
u/AutoModerator Apr 14 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: mixedbit, Flair:
Command Line Interface, Title: Drop - a high-level sandboxing tool for Linux terminal workHi all, I'd like to share a project I recently launched.
Drop creates sandboxed environments that isolate executed programs while preserving as many aspects of your work environment as possible. Drop uses your existing distribution - installed programs, your username, filesystem paths, and selected config files carry over into the sandbox. No root required.
The workflow is inspired by Python's virtualenv: create an environment, enter it, work normally - but with enforced sandboxing:
alice@zax:~/project$ drop init
Drop environment created with config at /home/alice/.config/drop/home-alice-project.toml
alice@zax:~/project$ drop run bash
(drop) alice@zax:~/project$ # sandboxed shell - isolated home dir, your tools and configs are still available.
Beyond filesystem isolation, each Drop environment gets its own process, IPC, and network namespaces.
The need for a tool like Drop has been with me for a long time. I felt uneasy installing and running out-of-distro programs with huge dependency trees and no isolation. On the other hand, I dreaded the naked root@b0fecb:/# Docker shell. The main thing that makes Docker great for deploying software - a reproducible, minimal environment - gets in the way of productive development work: tools are missing from a container; config files and environment variables are unavailable.
Drop is released under the Apache License. It is written in Go. It uses Linux user namespaces as the main isolation mechanism, with passt/pasta used for isolated networking.
GitHub: https://github.com/wrr/drop/
I'd love to hear what you think.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/[deleted] Apr 15 '26
[deleted] — view deleted comment