Skip to content

chore(sandbox): update plugin paths to evolve-lite and create bash history in sandbox#133

Merged
visahak merged 3 commits into
AgentToolkit:mainfrom
vinodmut:worktree-sandboxhistory
Apr 2, 2026
Merged

chore(sandbox): update plugin paths to evolve-lite and create bash history in sandbox#133
visahak merged 3 commits into
AgentToolkit:mainfrom
vinodmut:worktree-sandboxhistory

Conversation

@vinodmut

@vinodmut vinodmut commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

For #132

Summary by CodeRabbit

  • Chores
    • Updated sandbox configuration to mount an alternate plugins directory for containerized runs, improving integration with a different plugin layout.
    • Adjusted sandbox prompt/command references to align with the updated plugin variant for consistency.
    • Added a pre-populated shell history in the sandbox environment to surface common commands for faster testing.

@coderabbitai

coderabbitai Bot commented Apr 2, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updated sandbox justfile to mount platform-integrations/claude/plugins and switch plugin paths and endpoints from evolve to evolve-lite; added a pre-populated /home/sandbox/.bash_history in sandbox/Dockerfile with two claude command invocations.

Changes

Cohort / File(s) Summary
Justfile / Sandbox commands
justfile
Changed Docker volume mount to -v "$(pwd)/platform-integrations/claude/plugins":/plugins. Updated sandbox-run and sandbox-prompt invocations to use --plugin-dir /plugins/evolve-lite/ and replaced evolve:learn with evolve-lite:learn.
Sandbox image build
sandbox/Dockerfile
Added build step that creates /home/sandbox/.bash_history pre-populated with two claude command lines (one including --plugin-dir /plugins/evolve-lite --dangerously-skip-permissions, one with --dangerously-skip-permissions).

Sequence Diagram(s)

(omitted — changes are configuration and small scripts; no new multi-component control flow requiring a sequence diagram)

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇✨
I hopped the plugin path so bright,
from evolve to evolve-lite.
Two secret commands I tucked away,
a sandbox ready for the play.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: updating plugin paths to evolve-lite and creating bash history in the sandbox, matching the actual modifications in both justfile and Dockerfile.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@vinodmut vinodmut force-pushed the worktree-sandboxhistory branch from 45ac662 to fe133f6 Compare April 2, 2026 16:15

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
justfile (1)

35-57: ⚠️ Potential issue | 🟠 Major

Use the new plugin root in sandbox-prompt as well.

The commands in this block now point Claude at /plugins/evolve-lite/, but the docker run on Line 56 still mounts $(pwd)/plugins instead of $(pwd)/platform-integrations/claude/plugins like Line 33. That leaves sandbox-prompt on a different plugin tree than sandbox-run and can prevent the updated evolve-lite commands from loading the intended plugin.

🔧 Proposed fix
-    docker run --rm -it --env SANDBOX_PROMPT --env-file {{env_file}} -v "$(cd {{workspace}} && pwd)":/workspace -v "$(pwd)/plugins":/plugins {{image}} sh -c "
+    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 "
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@justfile` around lines 35 - 57, The sandbox-prompt recipe mounts the wrong
plugin directory into the docker run command, causing it to use
/plugins/evolve-lite/ from $(pwd)/plugins instead of the updated plugin root;
update the docker run volume in the sandbox-prompt block (the docker run ... -v
"$(pwd)/plugins":/plugins invocation used by sandbox-prompt) to mount the same
plugin root as the other command (use
$(pwd)/platform-integrations/claude/plugins mapped to /plugins) so the
sandbox-prompt and sandbox-run use the same /plugins/evolve-lite/ plugin tree.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@justfile`:
- Around line 35-57: The sandbox-prompt recipe mounts the wrong plugin directory
into the docker run command, causing it to use /plugins/evolve-lite/ from
$(pwd)/plugins instead of the updated plugin root; update the docker run volume
in the sandbox-prompt block (the docker run ... -v "$(pwd)/plugins":/plugins
invocation used by sandbox-prompt) to mount the same plugin root as the other
command (use $(pwd)/platform-integrations/claude/plugins mapped to /plugins) so
the sandbox-prompt and sandbox-run use the same /plugins/evolve-lite/ plugin
tree.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8a04d1d6-dd5d-47b5-8d9c-c87b8a6ce0c4

📥 Commits

Reviewing files that changed from the base of the PR and between 215704e and 45ac662.

📒 Files selected for processing (2)
  • justfile
  • sandbox/Dockerfile

@vinodmut vinodmut requested review from illeatmyhat and visahak April 2, 2026 17:03
Comment thread sandbox/Dockerfile

# 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.

@vinodmut vinodmut force-pushed the worktree-sandboxhistory branch from fe133f6 to f63fe21 Compare April 2, 2026 18:13

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@justfile`:
- Line 56: The docker run for sandbox-prompt is mounting the wrong host plugins
path (uses -v "$(pwd)/plugins":/plugins) which won't include
platform-integrations/claude/evolve-lite; update the mount to match sandbox-run
by replacing -v "$(pwd)/plugins":/plugins with -v
"$(pwd)/platform-integrations/claude/plugins":/plugins so the container sees
/plugins/evolve-lite/ as expected by the claude commands.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c658e23f-1b65-4145-8ace-c169e358b6f4

📥 Commits

Reviewing files that changed from the base of the PR and between fe133f6 and f63fe21.

📒 Files selected for processing (2)
  • justfile
  • sandbox/Dockerfile
✅ Files skipped from review due to trivial changes (1)
  • sandbox/Dockerfile

Comment thread justfile Outdated
vinodmut added 2 commits April 2, 2026 13:59
Addresses CodeRabbit review finding: Inconsistent volume mount path will cause `sandbox-prompt` to fail
@vinodmut vinodmut force-pushed the worktree-sandboxhistory branch from 0af0bf5 to 7670073 Compare April 2, 2026 18:59

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
justfile (1)

47-47: Optional: deduplicate plugin path and skill literals.

/plugins/evolve-lite/ and /evolve-lite:learn are repeated in multiple commands; centralizing them will reduce drift risk in future renames.

Proposed refactor
 image := "claude-sandbox"
 env_file := "sandbox/myenv"
 sandbox_dir := "sandbox"
 workspace := "demo/workspace"
 trace := "false"
 learn := "false"
+plugin_dir := "/plugins/evolve-lite/"
+learn_skill := "/evolve-lite:learn"
@@
-            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/'
+            claude --plugin-dir {{plugin_dir}} --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 --continue -p '/evolve-lite:learn'
+            claude --plugin-dir {{plugin_dir}} --dangerously-skip-permissions --continue -p '{{learn_skill}}'
@@
-        claude --plugin-dir /plugins/evolve-lite/ --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"
+        claude --plugin-dir {{plugin_dir}} --dangerously-skip-permissions -p \"\$SANDBOX_PROMPT\"

Also applies to: 53-53, 57-57

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@justfile` at line 47, The plugin path '/plugins/evolve-lite/' and skill
literal '/evolve-lite:learn' are duplicated across justfile commands; centralize
them by introducing top-level variables (e.g., PLUGIN_DIR and SKILL_NAME) and
replace every literal occurrence (the claude command lines that include
"--plugin-dir /plugins/evolve-lite/" and the skill reference
'/evolve-lite:learn') with those variables so future renames only require
updating the single declaration; update all affected targets (the commands at
the shown diff and the other occurrences mentioned) to reference PLUGIN_DIR and
SKILL_NAME instead of hard-coded strings.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@justfile`:
- Line 47: The plugin path '/plugins/evolve-lite/' and skill literal
'/evolve-lite:learn' are duplicated across justfile commands; centralize them by
introducing top-level variables (e.g., PLUGIN_DIR and SKILL_NAME) and replace
every literal occurrence (the claude command lines that include "--plugin-dir
/plugins/evolve-lite/" and the skill reference '/evolve-lite:learn') with those
variables so future renames only require updating the single declaration; update
all affected targets (the commands at the shown diff and the other occurrences
mentioned) to reference PLUGIN_DIR and SKILL_NAME instead of hard-coded strings.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b86fdcc0-82ca-439d-866d-7a21b386c7f5

📥 Commits

Reviewing files that changed from the base of the PR and between 0af0bf5 and 7670073.

📒 Files selected for processing (2)
  • justfile
  • sandbox/Dockerfile
✅ Files skipped from review due to trivial changes (1)
  • sandbox/Dockerfile

@visahak visahak self-requested a review April 2, 2026 20:00

@visahak visahak left a comment

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.

LGTM

@visahak visahak merged commit 6e2c787 into AgentToolkit:main Apr 2, 2026
16 checks passed
@vinodmut vinodmut deleted the worktree-sandboxhistory branch April 3, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants