Skip to content

Commit 6e2c787

Browse files
vinodmutvisahak
andauthored
chore(sandbox): update plugin paths to evolve-lite and create bash history in sandbox (#133)
* chore(sandbox): update plugin paths to evolve-lite and create bash history in sandbox * fix(justfile): correct volume mount path in sandbox-prompt Addresses CodeRabbit review finding: Inconsistent volume mount path will cause `sandbox-prompt` to fail --------- Co-authored-by: Vatche Isahagian <visahak@users.noreply.github.com>
1 parent 58e7727 commit 6e2c787

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ sandbox-setup:
3030

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

35-
# Run a one-shot prompt in the sandbox (trace=true to summarize session, learn=true to run /evolve:learn)
35+
# Run a one-shot prompt in the sandbox (trace=true to summarize session, learn=true to run /evolve-lite:learn)
3636
sandbox-prompt prompt:
3737
#!/usr/bin/env sh
3838
export SANDBOX_PROMPT="$(cat <<'PROMPT_EOF'
@@ -44,17 +44,17 @@ sandbox-prompt prompt:
4444
if [ "{{trace}}" = "true" ]; then
4545
TRACE_CMD="
4646
echo; echo; echo Summarizing the session...; echo
47-
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/'
47+
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/'
4848
"
4949
fi
5050
if [ "{{learn}}" = "true" ]; then
5151
LEARN_CMD="
5252
echo; echo; echo Learning...; echo
53-
claude --plugin-dir /plugins/evolve/ --dangerously-skip-permissions --continue -p '/evolve:learn'
53+
claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions --continue -p '/evolve-lite:learn'
5454
"
5555
fi
56-
docker run --rm -it --env SANDBOX_PROMPT --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/plugins":/plugins {{image}} sh -c "
57-
claude --plugin-dir /plugins/evolve/ --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"
56+
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 "
57+
claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"
5858
$TRACE_CMD
5959
$LEARN_CMD
6060
"

sandbox/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ RUN curl -fsSL -o /tmp/install.sh https://claude.ai/install.sh \
3535
ENV HOME="/home/sandbox"
3636
ENV PATH="/opt/claude-venv/bin:/home/sandbox/.local/bin:${PATH}"
3737

38+
# Pre-populate bash history with common sandbox commands (most recent last)
39+
RUN cat <<'EOF' > /home/sandbox/.bash_history
40+
claude --plugin-dir /plugins/evolve-lite --dangerously-skip-permissions
41+
claude --dangerously-skip-permissions
42+
EOF
43+
3844
WORKDIR /workspace
3945

4046
CMD ["bash"]

0 commit comments

Comments
 (0)