Unattended work needs boundaries you can enforce. Define what runs automatically, what it can reach, and where it must stop—before the job starts.
For broad shell or browser autonomy, start with a VM or dedicated device and a separate network segment. A container shares its host kernel: avoid privileged mode, host mounts and the Docker socket. A folder or Git worktree alone is not a security boundary.
Restrict both files and network access. Keep personal logins and production secrets out; copy in only the inputs needed. Websites, emails, repositories and tool output can contain prompt injection. Treat their instructions as untrusted data, even when the source looks familiar.