From fb6248e0fa49b592d07f9dec58fb7ff644a96d7d Mon Sep 17 00:00:00 2001 From: agent Date: Sat, 7 Nov 2026 18:19:32 +1100 Subject: [PATCH] derive default sandbox name from repo directory Co-Authored-By: Claude Sonnet 5.5 --- .sandbox/README.md | 2 +- .sandbox/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.sandbox/README.md b/.sandbox/README.md index c99f08f..f020546 100644 --- a/.sandbox/README.md +++ b/.sandbox/README.md @@ -7,7 +7,7 @@ From the repo root, create the sandbox or reopen it if it already exists: ```bash -.sandbox/run.sh [name] # name defaults to "monorepo" +.sandbox/run.sh [name] # name defaults to the repo directory name ``` The Claude kit asks to approve its Anthropic credentials. Select **3. No** (start without them). diff --git a/.sandbox/run.sh b/.sandbox/run.sh index 91d942d..65bdab5 100755 --- a/.sandbox/run.sh +++ b/.sandbox/run.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash # Start (or reopen) the workspace sandbox with the workspace kits attached. -# Usage: .sandbox/run.sh [name] (default name: monorepo) +# Usage: .sandbox/run.sh [name] (default name: the repo directory name) set -euo pipefail -name="${1:-"base-template"}" cd "$(dirname "$0")/.." +name="${1:-"$(basename "$PWD")"}" if sbx ls | awk -v n="$name" '$1 == n { found = 1 } END { exit !found }'; then exec sbx run --name "$name"