yolo
Run Claude Code in isolated git worktrees with Docker.
Features
- Isolated Worktrees: Create and manage git worktrees for each task
- Claude Integration: Run Claude Code in Docker containers on your worktrees
- Visual Worktree Management: View and manage all worktrees in the sidebar
- Quick Actions: Right-click code selections to run Claude with context
- Diff Viewing: Compare worktree changes with your main branch
Prerequisites
- Git installed
- Docker installed and running
- Claude Code CLI installed and authenticated
Setup
1. Install and Authenticate Claude Code CLI
If you haven't already, install the Claude Code CLI:
npm install -g @anthropic-ai/claude-code
Then authenticate:
claude auth login
The extension automatically uses the same authentication as your Claude Code CLI.
2. Install the Extension
Install from the VSCode Marketplace or download the .vsix file.
Usage
- Open the yolo sidebar (rocket icon in the activity bar)
- View all your git worktrees
- Click the refresh button to update the list
Creating a Worktree
- Click the + button in the yolo sidebar
- Enter a name for your worktree
- The extension creates a new git worktree and copies gitignored files (like
node_modules)
Running Claude on a Worktree
From the sidebar:
- Click the terminal icon next to any worktree
- Enter your prompt for Claude
- Claude runs in an isolated Docker container on that worktree
From code selection:
- Select code in your editor
- Right-click and choose "yolo: Run Claude with Selection"
- Enter your prompt - the selected code will be included as context
Viewing Diffs
Use the "yolo: Show Diff" command to compare worktree changes with your main branch.
Commands
yolo: Create Worktree - Create a new git worktree
yolo: Run Claude in Worktree - Run Claude on a specific worktree
yolo: Run Claude with Selection - Run Claude with selected code as context
yolo: Show Diff - Show diff between worktree and main branch
yolo: Refresh Worktree Tree - Refresh the worktree list
How It Works
- Creates isolated git worktrees for each task
- Copies gitignored files to new worktrees for faster setup
- Runs Claude Code in Docker containers to isolate dependencies
- Allows you to work on multiple features in parallel without conflicts
CLI Companion
This extension has a companion CLI tool available on npm:
npm install -g yolo-cli
See the full documentation for more details.
Issues & Contributions
Report issues or contribute at: https://github.com/JohanVikstroem/yolo
License
ISC
| |