Claude Runner
A Visual Studio Code extension that provides a seamless interface for executing Claude Code commands directly from your development environment.
Features
- Model Selection: Choose from all available Claude models (Opus 4, Sonnet 4, Sonnet 3.7, Haiku 3.5)
- Interactive Mode: Launch Claude in a terminal
- Task Mode: Execute specific prompts and view results in a new terminal
- Pipeline System: Define and execute reusable task sequences with model flexibility
- Execution Logging: Comprehensive logging of all pipeline runs with metrics
- Estimated cost: Modern webview-based interface integrated with VS Code (credit for ccusage for workflow)
- Conversation logs: Parse and review conversation logs directly in vscode
Installation
Prerequisites
- Claude Code CLI: This extension requires the Claude Code CLI to be installed and available in your PATH.
- Visit Claude Code for installation instructions
- Verify installation with
claude --version
From VSIX
- Download the latest
.vsix
file from releases
- In VS Code, open Command Palette (
Ctrl/Cmd+Shift+P
)
- Run
Extensions: Install from VSIX...
- Select the downloaded
.vsix
file
Usage
Quick Start
- Open the Claude Runner panel from the Activity Bar
- Select your preferred Claude model
- Configure the root path (defaults to current workspace)
- Choose between Interactive or Task mode
Interactive Mode
Click Run Interactive to:
- Open a new terminal with Claude ready for conversation
- Use the selected model and root path
- Interact directly with Claude in the terminal
Task Mode
Click Run Task to:
- Enter a specific prompt or task
- Execute in the background with chosen model
- View results in a new editor tab
- Configure advanced options (output format, max turns, etc.)
Pipeline Mode
Define and execute multi-task workflows:
- Create Pipelines: Chain multiple tasks with dependencies
- Model Flexibility: Use different models for different tasks
- Session Continuity: Tasks can share context
- Save & Load: Store pipelines for reuse
- Real-time Progress: Monitor task execution with live updates
Creating a Pipeline
- Add tasks in the Task tab
- Configure each task:
- Name and description
- Model selection (per-task)
- Prompt
- Session continuation settings
- Click "Save as Pipeline"
- Enter pipeline name and description
Loading a Pipeline
- Select from available pipelines dropdown
- Click "Load Pipeline"
- Modify if needed
- Run the pipeline
See examples/
directory for sample pipelines.
Model Selection
Choose from available Claude models:
- Claude Opus 4: Most capable, highest cost (Not available if you use Pro subscription)
- Claude Sonnet 4: Balanced performance and cost
- Claude Sonnet 3.7: Good performance, moderate cost
- Claude Haiku 3.5: Fastest, lowest cost
Configuration
Access settings through:
- VS Code Settings (
Ctrl/Cmd+,
) → Search "Claude Runner"
- Command Palette → "Claude Runner: Open Settings"
- Settings panel in the Claude Runner view
Key settings:
- Default model selection
- Root path configuration
- Tool permission settings
Commands
Available through Command Palette (Ctrl/Cmd+Shift+P
):
Claude Runner: Show Panel
- Open the main panel
Claude Runner: Run Interactive Mode
- Quick interactive launch
Claude Runner: Run Task
- Quick task execution
Claude Runner: Select Model
- Change default model
Claude Runner: Open Settings
- Access configuration
The extension provides control over Claude's tool access:
Allow All Tools: Uses --dangerously-skip-permissions
flag
Default: Claude asks for permission before using tools
Security Note: "Allow All Tools" bypasses safety prompts. Use with caution in trusted environments only.
Advanced Features
Task Mode Options
- Output Format: Text, JSON, or Streaming JSON
- Max Turns: Limit conversation length (1-50)
- Verbose Output: Show detailed execution information
- Custom System Prompts: Add additional instructions
Terminal Integration
- Automatic terminal creation and management
- Working directory set to configured root path
Development
Setup
# Install dependencies
make setup
# Build extension only (compile) and uninstall extension
make dev-preprare
# install extension
make dev-install
# Run tests
make test
# Build for production
make build-vsix
Project Structure
src/
├── extension.ts # Main extension entry point
├── providers/ # VS Code providers
├── services/ # Business logic services
└── src/ # React-based UI
├── App.tsx # Main app component
└── components/ # React components
Architecture
The extension follows a clean architecture pattern:
- Extension Host: Manages VS Code integration and lifecycle
- Services Layer: Handles Claude Code CLI interaction and configuration
- Webview UI: React-based interface for user interaction
- Message Passing: Communication between extension and webview
Troubleshooting
Claude Code Not Found
# Check installation
claude --version
# If not found, install Claude Code CLI
# Visit https://claude.ai/code for instructions
Permission Issues
- Ensure Claude Code CLI has necessary permissions
- Check workspace folder permissions
- Verify tool permission settings
Terminal Issues
- Check VS Code terminal settings
- Verify shell configuration
- Try restarting VS Code
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run
make validate
to check code quality
- Submit a pull request
License
GPL-3.0 - See LICENSE file for details.
Support
- Report issues on GitHub
- Check troubleshooting section
- Review Claude Code documentation
Changelog
See CHANGELOG.md for release history.
Credit
Ccusage for the idea of usage parsing.
Claaude code log for the idea of parsing conversations.
Anthropic team for the great Claude code & the SDK.