Important: Multi-root workspaces are currently an experimental feature and have the following limitations:
- Cline rules only work in the first workspace folder
- Checkpoints are automatically disabled with a warning message
- Both features are restored when you return to a single-folder workspace
What is multiroot workspace support?
Instead of being limited to one project folder, Cline can read files, write code, and run commands across all folders in your VSCode workspace. This is helpful when working with monorepos, microservices, or when you’re working on related projects simultaneously.How it works
When you open multiple workspace folders in VSCode, Cline automatically:- Designates one folder as the primary workspace (typically the first folder added)
- Tracks all workspace folders and their paths
- Resolves file paths intelligently across workspaces
- Displays workspace information in the environment details for each API request
Getting Started
Setting Up Multi-Root Workspaces
-
Add folders to your workspace:
- Use
File > Add Folder to Workspacein VSCode - Or create a
.code-workspacefile with multiple folder paths - Drag and drop folders to the File Explorer
- Select multiple folders when opening a new workspace
- Use
- Start using Cline - Cline will automatically detect all your workspace folders and interact with them as needed.
Technical behavior
Workspace detection- Cline detects all workspace folders when a task starts
- The first workspace folder becomes the primary workspace by default
- Each workspace can have its own VCS (Git, SVN, etc.)
- Relative paths are resolved relative to the primary workspace
- You can use workspace hints to target specific workspaces:
@workspaceName:path/to/file - Cline attempts to intelligently determine which workspace a file belongs to
- Commands execute in the appropriate workspace context
- The working directory is set based on where files are being accessed
Working across workspaces
Referencing specific workspaces
You can reference different workspaces naturally in your prompts:Workspace hints
Use workspace hints to explicitly reference files in specific workspaces:Common use cases
Monorepo Development
Perfect for when you have related projects in one repository:Microservices Architecture
Manage multiple services from one workspace:Full-Stack Development
Keep everything together while maintaining separation:Auto-Approve Integration
Multiroot workspaces work with Auto Approve:- Enable permissions for operations within workspace folders
- Restrict auto-approve for files outside your workspace(s)
- Configure different levels for different workspace folders
Cross-Workspace Operations
Cline can complete tasks spanning multiple workspaces:- Refactoring: Update imports and references across projects
- Feature development: Implement features requiring changes in multiple services
- Documentation: Generate docs referencing code from multiple folders
- Testing: Build & run tests across all workspaces and analyze results
Best Practices
Organizing Your Workspaces
- Group related projects that often need coordinated changes
- Use consistent folder structures across workspaces when possible
- Name folders clearly so Cline can understand your project structure
Effective Prompting & Tips
When working with multiroot workspaces, these approaches work best:- Be specific about which workspace when it matters: “Update the user model in the backend workspace”
- Reference relationships: “The frontend uses the API types from the shared workspace”
- Describe cross-workspace operations: “This change needs to be reflected in both the web and mobile apps”
- Scope your searches when dealing with large codebases: “Search for ‘TODO’ in just the frontend workspace”
- Break down large tasks into workspace-specific operations when possible
- Consider excluding large folders like
node_modulesfrom your workspace search Scope

