Miscellaneous sandboxed third-party packages
  • Nix 79%
  • Go 19.1%
  • Shell 1.9%
Find a file
poly2it 2be4ffc45b claude-code: add nest-safe + wrapped-nest-safe variants
claude-code 2.1.x unconditionally wraps every Bash tool call in
`bwrap --die-with-parent --unshare-pid --unshare-net …` and ignores
both `sandbox.enabled: false` and `dangerouslyDisableSandbox: true`
because the wrap happens before any in-app flag is consulted
(anthropics/claude-code#50781, #35986, #46560 — all open as of
2026-05). Inside an outer bwrap (e.g. a QEQE workspace) the inner
argv collides with the outer's binds and the call hangs.

Add a tiny shell-script `bwrap` shim at packages/claude-code/
fake-bwrap.nix that strips every sandbox argument and execs the
program after the `--` separator. Override the upstream
`claude-code` derivation's `bubblewrap` input with the shim and
expose two new attributes on the overlay:

* `claude-code.nest-safe` — base claude-code with its inner bwrap
  stubbed out.
* `claude-code.wrapped-nest-safe` — the same plus the depot
  MCP-config attached via the existing wrapped.nix helper. Drop-in
  replacement for `claude-code.wrapped` when running inside an
  outer sandbox.

Verified: builds cleanly, `claude --version` reports 2.1.123, the
shim correctly skips a representative argv and execs the trailing
command. MCP server sandboxing is preserved — nixpak resolves its
own bubblewrap at build time, not through PATH, so the shim only
intercepts claude-code's own bwrap calls.
2026-05-19 01:25:39 +00:00
.claude Automatically include Claude Code changelog 2026-02-15 19:40:47 +01:00
.forgejo Improve claude-code update CI 2026-02-20 07:28:48 +00:00
packages claude-code: add nest-safe + wrapped-nest-safe variants 2026-05-19 01:25:39 +00:00
scripts Rewrite claude-code updater for manifest-based packaging 2026-04-29 22:22:49 +00:00
.gitignore Package more MCPs 2026-01-14 23:16:51 +01:00
CLAUDE.md Package 0 A.D. 2026-02-24 05:46:55 +01:00
flake.lock Package Ghidra 2026-01-24 01:26:01 +01:00
flake.nix Package 0 A.D. 2026-02-24 05:46:55 +01:00
treefmt.nix Set up sandbox 2025-12-01 02:40:00 +01:00