Add support for running all commands through a shell or another command

Resolved 💬 5 comments Opened Apr 27, 2025 by leighmcculloch Closed Jan 5, 2026

It'd be helpful if claude-code had an option that allowed the developer to configure a shell or command to run all commands within.

It would support a few things, but one specifically is optionally running commands inside a docker container, or running commands with sandbox-exec process on macOS.

openai/codex uses sandbox-exec internally (see the code here) with a preset set of rules, but it would be awesome if claude-code enabled similar via the above feature that would let folks choose how to sandbox commands being executed.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗