Codex and Claude Code default sandboxes still expose ~/.ssh and skip MCP

Independent-Sir3234 · reddit · 2026-12-04

Both OpenAI Codex and Claude Code leave surprisingly wide security holes in their default sandboxes.

Claude Code

Codex

The author shares working TOML and JSON configs to actually lock both down, and recommends running the agent process itself in an OS sandbox.

Original post →

More from coding & agent

coding & agent channel →