More Convenient Straitjackets
Agent confinement is part of the 2026 development workflow. Understanding and managing confinement is a core skill when working with agents, comparable to knowing Git - and probably a better way to separate “vibe coding” from engineering.
Confinement is an engineering concern.
The risks are well-rehearsed. What’s undersupplied is practical, maintainable mitigation advice.
The thesis I’ll advance here: Nix + native OS sandboxing is a sleeper for ergonomic agent confinement. It’s not always enough for long-duration unattended sessions running in parallel - but it’s pretty good, most of the time.
To clarify: this is about using nix to define a declarative shell for your project. Enter the shell, and the stuff you declared is set up. You don’t have to install NixOS (the linux distro) or nix-darwin (managing your Mac system with nix) or home-manager (managing your userland with nix).