microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b3fcbb5d710029cb4fe91fca91c5ebf46bfb362e

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/getting-started/methods/peer-clone.md

210lines · modecode

1---
2title: Peer Directory Clone Installation
3description: Install HVE-Core as a sibling directory for local VS Code development
4author: Microsoft
5ms.date: 2025-12-03
6ms.topic: how-to
7keywords:
8 - peer directory
9 - installation
10 - github copilot
11 - local development
12estimated_reading_time: 5
13---
14
15Peer Directory Clone places HVE-Core as a sibling folder next to your project. This is the simplest method for developers working with local VS Code without devcontainers.
16
17## When to Use This Method
18
19✅ **Use this when:**
20
21* You're using local VS Code (no devcontainer)
22* You're working solo on a project
23* You want the simplest possible setup
24* You're developing or testing HVE-Core itself
25
26❌ **Consider alternatives when:**
27
28* You use devcontainers → [Git-Ignored Folder](git-ignored.md) or [Mounted Directory](mounted.md)
29* You use Codespaces → [GitHub Codespaces](codespaces.md)
30* Your team needs version control → [Submodule](submodule.md)
31* You need paths that work everywhere → [Multi-Root Workspace](multi-root.md)
32
33## How It Works
34
35HVE-Core is cloned into a sibling directory. Your project's VS Code settings reference it using relative paths.
36
37```text
38projects/
39├── my-project/ # Your project
40│ └── .vscode/
41│ └── settings.json # Points to ../hve-core
42
43└── hve-core/ # Sibling directory
44 └── .github/
45 ├── agents/
46 ├── prompts/
47 └── instructions/
48```
49
50## Quick Start
51
52Use the `hve-core-installer` agent:
53
541. Open GitHub Copilot Chat (`Ctrl+Alt+I`)
552. Select `hve-core-installer` from the agent picker
563. Say: "Install HVE-Core using peer directory clone"
574. Follow the guided setup
58
59## Manual Setup
60
61### Step 1: Clone HVE-Core
62
63Open a terminal in your project's parent directory:
64
65```bash
66# Navigate to parent of your project
67cd /path/to/projects
68
69# Clone HVE-Core as a sibling
70git clone https://github.com/microsoft/hve-core.git
71```
72
73Your directory structure should now look like:
74
75```text
76projects/
77├── my-project/
78└── hve-core/
79```
80
81### Step 2: Update VS Code Settings
82
83Create or update `.vscode/settings.json` in your project:
84
85```json
86{
87 "chat.agentFilesLocations": {
88 "../hve-core/.github/agents/ado": true,
89 "../hve-core/.github/agents/data-science": true,
90 "../hve-core/.github/agents/design-thinking": true,
91 "../hve-core/.github/agents/github": true,
92 "../hve-core/.github/agents/installer": true,
93 "../hve-core/.github/agents/project-planning": true,
94 "../hve-core/.github/agents/hve-core": true,
95 "../hve-core/.github/agents/hve-core/subagents": true,
96 "../hve-core/.github/agents/security-planning": true
97 },
98 "chat.promptFilesLocations": {
99 "../hve-core/.github/prompts/ado": true,
100 "../hve-core/.github/prompts/design-thinking": true,
101 "../hve-core/.github/prompts/github": true,
102 "../hve-core/.github/prompts/hve-core": true,
103 "../hve-core/.github/prompts/security-planning": true
104 },
105 "chat.instructionsFilesLocations": {
106 "../hve-core/.github/instructions/ado": true,
107 "../hve-core/.github/instructions/coding-standards": true,
108 "../hve-core/.github/instructions/design-thinking": true,
109 "../hve-core/.github/instructions/github": true,
110 "../hve-core/.github/instructions/hve-core": true,
111 "../hve-core/.github/instructions/shared": true
112 },
113 "chat.agentSkillsLocations": {
114 "../hve-core/.github/skills": true,
115 "../hve-core/.github/skills/shared": true
116 }
117}
118```
119
120### Step 3: Validate Installation
121
122Verify HVE-Core directories are accessible:
123
124```bash
125ls ../hve-core/.github/agents
126```
127
128You should see `.agent.md` files. Then validate in VS Code:
129
1301. Reload VS Code window (`Ctrl+Shift+P` → "Developer: Reload Window")
1312. Open GitHub Copilot Chat (`Ctrl+Alt+I`)
1323. Click the agent picker dropdown
1334. Verify HVE-Core agents appear (task-planner, task-researcher, prompt-builder)
134
135## Updating HVE-Core
136
137To get the latest version:
138
139```bash
140cd ../hve-core
141git pull
142```
143
144No VS Code restart required. Changes take effect immediately.
145
146## Troubleshooting
147
148### Agents Not Appearing
149
150**Check the relative path:**
151
152```bash
153# From your project directory
154ls ../hve-core/.github/agents
155```
156
157If the path doesn't resolve, verify:
158
1591. HVE-Core is cloned at the correct location
1602. Your terminal is in your project directory
1613. The relative path in settings.json is correct
162
163**Check VS Code settings:**
164
1651. Open Command Palette (`Ctrl+Shift+P`)
1662. Type "Preferences: Open User Settings (JSON)"
1673. Verify no conflicting settings override your workspace settings
168
169### Path Breaks After Moving Project
170
171Relative paths break if your project moves. Options:
172
1731. Re-clone HVE-Core next to the new location
1742. Update settings.json with the new relative path
1753. Switch to [Multi-Root Workspace](multi-root.md) for portable paths
176
177### Doesn't Work in Devcontainer
178
179Peer directory clone doesn't work in devcontainers because the container can't access files outside the mounted workspace.
180
181**Solutions:**
182
183* Use [Git-Ignored Folder](git-ignored.md) for self-contained installation
184* Use [Mounted Directory](mounted.md) to share HVE-Core across projects
185* Use [Multi-Root Workspace](multi-root.md) for the most portable solution
186
187## Limitations
188
189| Aspect | Status |
190|------------------|--------------------------------------|
191| Devcontainers | ❌ Not supported |
192| Codespaces | ❌ Not supported |
193| Team sharing | ⚠️ Each developer clones separately |
194| Portable paths | ⚠️ Breaks if project moves |
195| Version pinning | ⚠️ Manual (use git checkout) |
196| Setup complexity | ✅ Very simple |
197| Update process | ✅ Just git pull |
198
199## Next Steps
200
201* [Your First Workflow](../first-workflow.md) - Try HVE-Core with a real task
202* [Multi-Root Workspace](multi-root.md) - Upgrade to portable paths
203* [Submodule](submodule.md) - Add version control for teams
204
205---
206
207<!-- markdownlint-disable MD036 -->
208*🤖 Crafted with precision by ✨Copilot following brilliant human instruction,
209then carefully refined by our team of discerning human reviewers.*
210<!-- markdownlint-enable MD036 -->
211