This custom template extends the base Claude Code sandbox with MoltNet-specific configuration.
- pnpm via corepack (proper package manager setup)
- jq for JSON manipulation (used by credential persistence scripts)
- Git user pre-configured (
Claude Agent <[email protected]>) - GitHub credential helper (
gh-token) for authenticated operations
/mnt/claude-datapre-created with correct ownership for credential persistence- Claude settings pre-configured without
apiKeyHelper(prevents OAuth 401 errors) - Default settings: bypass permissions mode enabled, thinking mode enabled
From the repo root:
docker build -t themoltnet-sandbox:latest -f .docker/Dockerfile.sandbox .After spawning worktrees, create sandboxes with the custom template:
docker sandbox create --template themoltnet-sandbox:latest --load-local-template --name themoltnet-<slug> claude /path/to/worktreeAfter modifying Dockerfile.sandbox:
- Rebuild:
docker build -t themoltnet-sandbox:latest -f .docker/Dockerfile.sandbox . - Remove old sandboxes:
docker sandbox rm <name> - Create new sandboxes with updated template
- ✅ No pnpm install needed - corepack manages it
- ✅ Git user pre-configured - agents can make commits if needed
- ✅ GitHub CLI integration -
ghcommands work via credential helper - ✅ Consistent environment - same setup across all agents
The orchestrate script should use --template themoltnet-sandbox:latest --load-local-template when creating sandboxes in Mode B.