feat: sandboxed claude session launcher scripts

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-28 06:48:37 +02:00
commit 1dea5c697c
3 changed files with 176 additions and 0 deletions

11
scripts/refactor-claude.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Backwards-compatible wrapper for the ~/nixos-refactor/ worktree workflow.
# Equivalent to `scripts/sandbox-claude.sh` with no target arg — sandboxes
# the worktree containing this script under the policy in
# scripts/sandbox-settings.json.
#
# For sandboxing a different repo (e.g. a new public template under
# development), use sandbox-claude.sh <dir> directly.
set -euo pipefail
exec "$(dirname "$(readlink -f "$0")")/sandbox-claude.sh" "$@"