Skip to content

Commit 5be632f

Browse files
gilesknapclaude
andcommitted
sandbox-check: point env-var failures at "just claude"; widen copier-derived skill triggers
Three sandbox guards (SSH_AUTH_SOCK, VSCODE_GIT_IPC_HANDLE, GIT_ASKPASS) match exactly what `just claude` clears, so the failure messages now name that recipe. The other guards keep their original remediations because `just claude` would not fix them. Also extend the copier-derived skill description to fire on .claude/, CLAUDE.md, and README-CLAUDE.md edits — these are template-managed but weren't listed as triggers, so the skill was being missed for sandbox edits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5eed878 commit 5be632f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

template/{% if add_claude %}.claude{% endif %}/hooks/sandbox-check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ fail() { echo "BLOCKED: $1" >&2; exit 2; }
1111

1212
# Host SSH agent must not be reachable.
1313
[ -z "${SSH_AUTH_SOCK:-}" ] || \
14-
fail "SSH_AUTH_SOCK is set ($SSH_AUTH_SOCK) — host SSH agent is reachable."
14+
fail "SSH_AUTH_SOCK is set ($SSH_AUTH_SOCK) — host SSH agent is reachable. run \"just claude\""
1515

1616
# VS Code git credential bridge must be silenced.
1717
[ -z "${VSCODE_GIT_IPC_HANDLE:-}" ] || \
18-
fail "VSCODE_GIT_IPC_HANDLE is set — VS Code credential bridge is reachable."
18+
fail "VSCODE_GIT_IPC_HANDLE is set — VS Code credential bridge is reachable. run \"just claude\""
1919
[ -z "${GIT_ASKPASS:-}" ] || \
20-
fail "GIT_ASKPASS is set — VS Code askpass is injected."
20+
fail "GIT_ASKPASS is set — VS Code askpass is injected. run \"just claude\""
2121

2222
# The /tmp credential helper script VS Code drops in must have been removed.
2323
if compgen -G '/tmp/vscode-remote-containers-*.js' >/dev/null; then

template/{% if add_claude %}.claude{% endif %}/skills/copier-derived/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: copier-derived
3-
description: This project was generated from python-copier-template. Use when editing devcontainer / Dockerfile / .github / pre-commit / justfile / .gitleaks / renovate config, or when the user asks about updating from the template, resolving copier conflicts, or why a config looks the way it does.
3+
description: This project was generated from python-copier-template. Use when editing devcontainer / Dockerfile / .github / pre-commit / justfile / .gitleaks / renovate config, anything under .claude/ (hooks, skills, commands, settings), CLAUDE.md, or README-CLAUDE.md, or when the user asks about updating from the template, resolving copier conflicts, or why a config looks the way it does.
44
---
55

66
# Copier-template-derived project

0 commit comments

Comments
 (0)