With sandbox.mode = on, the claude CLI backend now runs inside the sandbox (bwrap/seatbelt) by default instead of unconfined. Granted inside: ro on the claude binary dir (PATH lookup, symlink target) and the hx binary dir; rw on ~/.claude, ~/.claude.json, ~/.config/claude and the permission socket; network on; env ANTHROPIC_/CLAUDE_/NODE_/XDG_/proxy/SSL_CERT_*/HX_PERMIT_SOCK. Leaving the sandbox needs the user's yes: the TUI asks once per run ('run claude outside the sandbox'), 'always' is stored as rule claude:unsandboxed in .hx/allow.json. In -p mode there is no prompt: only a stored rule lets claude out, else it stays sandboxed. Sandbox off: unchanged. Code: new sandbox::command_with(program, &Extra) (per-program ro/rw/network/env on top of the policy), ClaudeCli::with_spawner, tool::gate reused for the question. Tested: unit test for Extra, claude_cli e2e, sandbox e2e. NOT tested with real bwrap + real claude (bwrap not on dev box); the allowed paths for claude's install layout may need a tweak.
With `sandbox.mode = on`, the `claude` CLI backend now runs inside the sandbox (bwrap/seatbelt) by default instead of unconfined. Granted inside: ro on the claude binary dir (PATH lookup, symlink target) and the hx binary dir; rw on ~/.claude, ~/.claude.json, ~/.config/claude and the permission socket; network on; env ANTHROPIC_*/CLAUDE_*/NODE_*/XDG_*/proxy/SSL_CERT_*/HX_PERMIT_SOCK. Leaving the sandbox needs the user's yes: the TUI asks once per run ('run claude outside the sandbox'), 'always' is stored as rule `claude:unsandboxed` in .hx/allow.json. In -p mode there is no prompt: only a stored rule lets claude out, else it stays sandboxed. Sandbox off: unchanged. Code: new `sandbox::command_with(program, &Extra)` (per-program ro/rw/network/env on top of the policy), `ClaudeCli::with_spawner`, `tool::gate` reused for the question. Tested: unit test for Extra, claude_cli e2e, sandbox e2e. NOT tested with real bwrap + real claude (bwrap not on dev box); the allowed paths for claude's install layout may need a tweak.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
With
sandbox.mode = on, theclaudeCLI backend now runs inside the sandbox (bwrap/seatbelt) by default instead of unconfined. Granted inside: ro on the claude binary dir (PATH lookup, symlink target) and the hx binary dir; rw on ~/.claude, ~/.claude.json, ~/.config/claude and the permission socket; network on; env ANTHROPIC_/CLAUDE_/NODE_/XDG_/proxy/SSL_CERT_*/HX_PERMIT_SOCK. Leaving the sandbox needs the user's yes: the TUI asks once per run ('run claude outside the sandbox'), 'always' is stored as ruleclaude:unsandboxedin .hx/allow.json. In -p mode there is no prompt: only a stored rule lets claude out, else it stays sandboxed. Sandbox off: unchanged. Code: newsandbox::command_with(program, &Extra)(per-program ro/rw/network/env on top of the policy),ClaudeCli::with_spawner,tool::gatereused for the question. Tested: unit test for Extra, claude_cli e2e, sandbox e2e. NOT tested with real bwrap + real claude (bwrap not on dev box); the allowed paths for claude's install layout may need a tweak.