A year of hardening multi-agent dev containers: token proxy, iptables allowlist, rootless DinD
Hansehart · reddit · 2026-11-19
The author shares a year of lessons running multiple coding agents (Claude Code, Codex) in one locked-down container:
- Secret isolation: agents hold placeholders in env vars; a proxy container swaps in real tokens on outbound calls, so agents can still open PRs and move issues without touching real secrets.
- Network control: an iptables allowlist sidecar starts empty—every host the agent reaches is added manually.
- Nested isolation: rootless Docker-in-Docker lets agents build and test full pipelines while the host stays unreachable.
- Multi-repo access: a VS Code multi-root workspace gives agents all repos at once.
The setup is open-sourced as o3s, a dev container others already use daily. PII handling remains an open problem.
More from coding & agent
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29