| title | Multi-Root Workspace Installation | |||||
|---|---|---|---|---|---|---|
| description | Set up HVE-Core using VS Code multi-root workspaces for any environment | |||||
| author | Microsoft | |||||
| ms.date | 2025-12-02 | |||||
| ms.topic | how-to | |||||
| keywords |
|
|||||
| estimated_reading_time | 8 |
Multi-root workspaces are the RECOMMENDED method for consuming HVE-Core. This approach works in any environment (Local VS Code, Devcontainers, Codespaces) and provides the most portable configuration.
✅ Use this when:
- You want a single configuration that works everywhere
- Your project uses Codespaces or devcontainers
- You need paths that work for the whole team
- You want integrated source control across both projects
❌ Consider alternatives when:
- Your team needs version-pinned dependencies → Submodule
- You're developing HVE-Core itself → Peer Clone
A .code-workspace file defines multiple folders as a single workspace. VS Code treats HVE-Core as part of your project, making all paths work correctly.
┌─────────────────────────────────────────────┐
│ VS Code Multi-Root Workspace │
├─────────────────────────────────────────────┤
│ 📁 My Project (primary) │
│ └── Your code │
│ 📁 HVE-Core Library (secondary) │
│ └── .github/agents, prompts, etc. │
└─────────────────────────────────────────────┘
↑
.code-workspace file defines this
Use the hve-core-installer agent:
- Open GitHub Copilot Chat (
Ctrl+Alt+I) - Select
hve-core-installerfrom the agent picker - Say: "Install HVE-Core using multi-root workspace"
- Follow the guided setup
Local VS Code:
# Clone next to your project
cd /path/to/your-projects
git clone https://github.com/microsoft/hve-core.gitCodespaces/Devcontainer: HVE-Core will be cloned automatically (see Step 3).
Create .devcontainer/hve-core.code-workspace in your project:
For local development, use a relative path instead:
{
"name": "HVE-Core Library",
"path": "../../hve-core"
}Update .devcontainer/devcontainer.json:
{
"name": "My Project + HVE-Core",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"onCreateCommand": "git clone --depth 1 https://github.com/microsoft/hve-core.git /workspaces/hve-core 2>/dev/null || git -C /workspaces/hve-core pull --ff-only || true",
"customizations": {
"vscode": {
"extensions": [
"github.copilot",
"github.copilot-chat"
]
}
}
}Critical: You must open the .code-workspace file, not the folder.
- Local:
File→Open Workspace from File...→ selecthve-core.code-workspace - Codespaces: Run
code .devcontainer/hve-core.code-workspacein terminal
The VS Code title bar should show your workspace name, not just the folder name.
Multi-root workspaces use folder names for paths:
| Path Style | Example | Recommended |
|---|---|---|
| Folder name relative | "HVE-Core Library/.github/agents" |
✅ Yes |
| Absolute path | "/workspaces/hve-core/.github/agents" |
The folder names in your .code-workspace file ("name": "HVE-Core Library") become path prefixes in settings.
| Strategy | Configuration | When Updates Apply |
|---|---|---|
| Manual | Run git -C /workspaces/hve-core pull when desired |
On demand |
| On rebuild | Add updateContentCommand to devcontainer.json |
Container rebuild |
| On every start | Add postStartCommand to devcontainer.json |
Every startup |
Recommended: Update on rebuild for stability:
{
"updateContentCommand": "git -C /workspaces/hve-core pull --ff-only || true"
}After setup, verify HVE-Core is working:
- Check the Explorer sidebar shows both folders
- Open Copilot Chat (
Ctrl+Alt+I) - Click the agent picker dropdown
- Verify HVE-Core agents appear (task-planner, task-researcher, etc.)
- Verify workspace is open: Title bar should show workspace name
- Check folder paths: Ensure
pathvalues in.code-workspaceare correct - Reload window:
Ctrl+Shift+P→ "Developer: Reload Window"
- Local: Verify HVE-Core is cloned at the relative path specified
- Codespaces: Check
onCreateCommandran successfully in creation logs
- Settings precedence: Folder settings override workspace settings
- Path format: Use folder names (
"HVE-Core Library/...") not absolute paths
- Your First Workflow - Try HVE-Core with a real task
- RPI Workflow - Research, Plan, Implement methodology
- Back to Installation Guide - Compare other methods
🤖 Crafted with precision by ✨Copilot following brilliant human instruction, then carefully refined by our team of discerning human reviewers.
{ "folders": [ { "name": "My Project", "path": ".." }, { "name": "HVE-Core Library", "path": "/workspaces/hve-core" } ], "settings": { "chat.modeFilesLocations": { "HVE-Core Library/.github/agents": true, "My Project/.github/agents": true }, "chat.promptFilesLocations": { "HVE-Core Library/.github/prompts": true, "My Project/.github/prompts": true }, "chat.instructionsFilesLocations": { "HVE-Core Library/.github/instructions": true, "My Project/.github/instructions": true } }, "extensions": { "recommendations": [ "github.copilot", "github.copilot-chat" ] } }