Haystack is a powerful search tool that indexes your open VS Code project in the background, enabling fast and efficient code search — ideal for large codebases like Chromium.
- You must have a VSCode workspace opened to the
src\folder of the Chromium repository.
-
Install the Haystack Search Extension
- In VS Code, click this link and install Haystack Search from the Marketplace.
- Continue with other steps while waiting for the indexing process to complete (approximately 15 minutes for the Chromium codebase).
-
Add MCP Server
- Run the
MCP: Add Server…command in VS Code. - Select "HTTP (server-sent events)".
- Enter
http://localhost:13135/mcp/sseas the server URL. - Provide a name (ex: "haystack-search").
- Choose "Workspace Settings" as the scope.
- Run the
-
Enable Agent Mode
- Switch GitHub Copilot to
Agentmode using the UX dropdown to benefit from Haystack.
- Switch GitHub Copilot to
-
Activate Haystack Agent Mode Prompt in various ways
- Use the paperclip icon to
Add Context...-> Instructions ->chromium_haystack - Configure for automatic inclusion using create user instructions
- Use the keyboard shortcut
option+command+/on MacOS orctrl+alt+/on Windows -> Haystack. - Use the instruction shortcut with
#->#haystack.instructions.md
- Use the paperclip icon to
-
Start Coding
- Enjoy an enhanced GitHub Copilot experience in the Chromium repository.