mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
- Add RunVSAgent as a Git submodule for bridging JetBrains IDEs with VSCode extensions - Create build scripts that use the main Roo Code source directly (no duplicate copy) - Add comprehensive documentation for building and installing the plugin - Add .gitignore to exclude build artifacts and temporary files - Successfully tested plugin running in IntelliJ IDEA with Roo Code extension The integration allows Roo Code to run in any JetBrains IDE (IntelliJ, WebStorm, PyCharm, etc.) Build scripts now reference the main project source to avoid duplication. |
||
|---|---|---|
| .. | ||
| RunVSAgent@2d9e374b01 | ||
| .gitignore | ||
| build-dev.sh | ||
| build.sh | ||
| README.md | ||
Roo Code for JetBrains IDEs
This directory contains the integration of Roo Code with RunVSAgent, enabling Roo Code to run seamlessly in JetBrains IDEs (IntelliJ IDEA, WebStorm, PyCharm, etc.).
🎯 Overview
RunVSAgent acts as a bridge between VSCode extensions and JetBrains IDEs, allowing you to use Roo Code's AI-powered development features in your favorite JetBrains IDE.
🚀 Quick Start
Prerequisites
- Node.js 18.0+
- JDK 17+
- JetBrains IDE 2023.1+
- Git
Building
# From the project root
cd jetbrains
./build.sh
This will:
- Update the RunVSAgent submodule
- Build the Roo Code extension
- Package everything for JetBrains
- Create
dist/RunVSAgent-RooCode.zip
Installation
- Open your JetBrains IDE
- Go to Settings/Preferences → Plugins
- Click the gear icon ⚙️ → Install Plugin from Disk...
- Select
jetbrains/dist/RunVSAgent-RooCode.zip - Restart your IDE
📁 Project Structure
jetbrains/
├── RunVSAgent/ # RunVSAgent submodule
│ ├── extension_host/ # Node.js runtime for VSCode APIs
│ ├── jetbrains_plugin/ # Kotlin-based JetBrains plugin
│ └── deps/
│ └── roo-code/ # Roo Code extension files
├── build.sh # Main build script
├── build-dev.sh # Development build (faster)
├── README.md # This file
└── dist/ # Build output directory
🔧 Development
For development, use the faster dev build:
./build-dev.sh
This skips some optimization steps for quicker iteration.
Debugging
- Extension Host Logs: Check the IDE logs for Node.js runtime issues
- Plugin Logs: Look in
Help → Show Log in Finder/Explorer - Enable Debug Mode: Set
VSCODE_DEBUG=truein environment
🏗️ Architecture
graph LR
A[JetBrains IDE] --> B[RunVSAgent Plugin]
B --> C[RPC Socket]
C --> D[Node.js Extension Host]
D --> E[VSCode API Layer]
E --> F[Roo Code Extension]
🤝 How It Works
- RunVSAgent Plugin runs in the JetBrains IDE (Kotlin)
- Extension Host provides VSCode-compatible APIs (Node.js)
- RPC Communication bridges the two environments
- Roo Code runs unmodified using VSCode APIs
⚙️ Configuration
After installation, configure Roo Code:
- Open RunVSAgent panel in your IDE
- Select "Roo Code" from available agents
- Configure API keys and settings
- Start using AI-powered development features
🐛 Troubleshooting
Plugin doesn't load
- Ensure JetBrains IDE version ≥ 2023.1
- Check if JCEF is enabled (required for WebView)
- For Android Studio, enable JCEF manually
Node.js not found
- Verify Node.js is in PATH:
node --version - Restart IDE after installing Node.js
Extension not activating
- Check extension host logs
- Verify
deps/roo-code/contains extension files - Rebuild with
./build.sh
📚 Resources
📄 License
This integration follows the licenses of both projects:
- Roo Code: Check main repository
- RunVSAgent: Apache License 2.0