claude is now aware that its in a container

This commit is contained in:
2026-09-21 08:12:18 +05:00
parent 956cbc708a
commit a7a77f7b17
4 changed files with 90 additions and 2 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Prepend the sandbox system prompt so Claude knows it is containerised and asks
# the user to run host-side commands. Skipped for subcommands and for
# --help/--version, which do not take the flag.
set -e
PROMPT_FILE=/etc/ccc/sandbox-prompt.md
case "$1" in
agents|attach|auth|auto-mode|doctor|gateway|import|install|logs|mcp|plugin|plugins|project|respawn|rm|setup-token|stop|kill|ultrareview|update|upgrade|-h|--help|-v|--version)
exec claude "$@"
;;
esac
if [ -r "$PROMPT_FILE" ]; then
exec claude --append-system-prompt "$(cat "$PROMPT_FILE")" "$@"
fi
exec claude "$@"