Mount profile dir with --add-dir, simplify skills#11
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Dockerfile just re-tagged aztecprotocol/devbox:3.0 with UID remapping and git config. These are now handled at runtime by docker.ts (--user flag, GIT_* env vars). No custom image build needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- docker.ts: mount profiles/<name> at /opt/claudebox-profile:rw in Claude container - docker.ts: pass CLAUDEBOX_PROFILE env to Claude container - container-entrypoint.sh: --add-dir /opt/claudebox-profile gives Claude access - container-entrypoint.sh: source CLAUDE.md from profile mount first Claude sessions can now read and modify their profile (add skills, update container-claude.md, etc.) and changes persist across sessions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Profile dirs now have CLAUDE.md (loaded by Claude via --add-dir). Entrypoint writes only session metadata to /workspace/.claude/CLAUDE.md instead of copying the whole profile prompt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Skills now saved to /opt/claudebox-profile/.claude/skills/ (persists on host) - Sidecar also gets profile dir mounted rw - Removed git/PR machinery from create_skill — no GitHub access needed - Cleaned up unused imports (pushToRemote, addTrackedPR, git, sanitizeError) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
create_skill writes to the profile dir only (no PR machinery). claudebox-dev CLAUDE.md now documents the full pattern for improving profiles: edit live profile dir for immediate effect, copy to workspace clone and PR for version control. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- create_skill removed — skills are just files in the profile dir, create them via create_pr in the claudebox-dev profile - TOOL_LIST removed from all sidecars — Claude discovers tools via MCP protocol, no need for a manually maintained string - get_context no longer returns tools list - Cleaned up all CLAUDE.md references to create_skill Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # packages/libclaudebox/mcp/tools.ts # profiles/barretenberg-audit/CLAUDE.md # profiles/barretenberg-audit/mcp-sidecar.ts # profiles/claudebox-dev/mcp-sidecar.ts # profiles/default/CLAUDE.md # profiles/default/mcp-sidecar.ts # profiles/test/mcp-sidecar.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ludamad
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/opt/claudebox-profile:rw--add-dir /opt/claudebox-profileto Claude CLI so it sees the profile'sCLAUDE.mdnativelycontainer-claude.md→CLAUDE.mdin all 5 profiles/workspace/.claude/CLAUDE.md(no more copying the full prompt)create_skillwrites directly to the profile dir instead of creating a git branch + PRubuntu:latest)Test plan
🤖 Generated with Claude Code