sha256:93d7535fc034ddee5a3c3a1a56f8f2aa4e5367424462ad542ff9fbbdb7e41bf4
Last pushed
19 days by bmillerz
Type
Sandbox Kit
Manifest digest
sha256:93d7535fc034ddee5a3c3a1a56f8f2aa4e5367424462ad542ff9fbbdb7e41bf4
schemaVersion: "3"
displayName: Claude Code config
description: 'Carries the host''s Claude Code preferences into a sandbox: a ccstatusline status line (alongside sbx Desktop''s, not instead of it), settings and global communication-style instructions. Merges into settings.json, so the claude kit''s own keys survive. Plugins aren''t here: they live on the claude.ai account and sync into every session signed in to it.'
sourceUrl: https://github.com/bmillerz/sbx-workbench/tree/main/kits/claude-config
version: 2.0.0
kind: mixin
requires:
- claude
- deb/jq
capabilities:
- type: com.docker.sandbox/lifecycle@1
config:
install:
- command: |
set -eu
D=/usr/local/share/claude-config
S=/home/agent/.claude/settings.json
mkdir -p /home/agent/.claude /home/agent/.config/ccstatusline
[ -f "$S" ] || echo '{}' > "$S"
tmp=$(mktemp -p /home/agent/.claude)
jq -s --arg mode "${SBX_CRED_ANTHROPIC_MODE:-none}" '
.[0] * .[1]
| if $mode == "oauth" and .apiKeyHelper == "echo proxy-managed"
then del(.apiKeyHelper) else . end
' "$S" "$D/settings.json" > "$tmp"
mv "$tmp" "$S"
cp "$D/ccstatusline.json" /home/agent/.config/ccstatusline/settings.json
description: Merge host preferences into settings.json, keep claude.ai plugin sync on for subscription logins, install the ccstatusline layout
env:
- SBX_CRED_ANTHROPIC_MODE
user: agent
- type: com.docker.sandbox/agent-context@1
config:
contentFile: /usr/share/sandbox/kit/claude-config/claude-config-context.md