Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ sandbox-setup:

# Run an interactive Claude Code shell in the sandbox
sandbox-run:
docker run --rm -it --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/plugins":/plugins {{image}}
docker run --rm -it --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/platform-integrations/claude/plugins":/plugins {{image}}

# Run a one-shot prompt in the sandbox (trace=true to summarize session, learn=true to run /evolve:learn)
# Run a one-shot prompt in the sandbox (trace=true to summarize session, learn=true to run /evolve-lite:learn)
sandbox-prompt prompt:
#!/usr/bin/env sh
export SANDBOX_PROMPT="$(cat <<'PROMPT_EOF'
Expand All @@ -44,17 +44,17 @@ sandbox-prompt prompt:
if [ "{{trace}}" = "true" ]; then
TRACE_CMD="
echo; echo; echo Summarizing the session...; echo
claude --plugin-dir /plugins/evolve/ --dangerously-skip-permissions --no-session-persistence -p 'tell me what happened in the newest json file in /home/sandbox/.claude/projects/-workspace/'
claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions --no-session-persistence -p 'tell me what happened in the newest json file in /home/sandbox/.claude/projects/-workspace/'
"
fi
if [ "{{learn}}" = "true" ]; then
LEARN_CMD="
echo; echo; echo Learning...; echo
claude --plugin-dir /plugins/evolve/ --dangerously-skip-permissions --continue -p '/evolve:learn'
claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions --continue -p '/evolve-lite:learn'
"
fi
docker run --rm -it --env SANDBOX_PROMPT --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/plugins":/plugins {{image}} sh -c "
claude --plugin-dir /plugins/evolve/ --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"
docker run --rm -it --env SANDBOX_PROMPT --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/platform-integrations/claude/plugins":/plugins {{image}} sh -c "
claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"
$TRACE_CMD
$LEARN_CMD
"
Expand Down
6 changes: 6 additions & 0 deletions sandbox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ RUN curl -fsSL -o /tmp/install.sh https://claude.ai/install.sh \
ENV HOME="/home/sandbox"
ENV PATH="/opt/claude-venv/bin:/home/sandbox/.local/bin:${PATH}"

# Pre-populate bash history with common sandbox commands (most recent last)
RUN cat <<'EOF' > /home/sandbox/.bash_history
claude --plugin-dir /plugins/evolve-lite --dangerously-skip-permissions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using the same docker file for codex. can we do this after we build the image?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, can you create a folder claude under sandbox and put the stuff there. I can put my stuff under codex

@vinodmut vinodmut Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the same container for claude code and codex. Why do you need separate directories?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turns out at this point, the docker files are not the same. I have a different docker file.

claude --dangerously-skip-permissions
EOF

WORKDIR /workspace

CMD ["bash"]
Loading