Add semantic search to Copilot agent host sessions - #331836
Merged
Bhavya U (bhavyaus) merged 11 commits intoAug 21, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds setting-gated VS Code semantic workspace search to Copilot Agent Host sessions, replacing the SDK’s built-in search implementation.
Changes:
- Adds semantic-search configuration, naming, routing, and SDK override behavior.
- Adds focused prompting and fallback guidance.
- Adds unit coverage for gating, filtering, invocation, and SDK registration.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostClientTools.test.ts |
Tests gating and routing. |
src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts |
Registers the setting. |
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.ts |
Maps runtime tool names. |
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts |
Routes semantic-search calls. |
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.ts |
Publishes the gated override. |
src/vs/platform/agentHost/test/node/toolInstructions.test.ts |
Tests prompt guidance. |
src/vs/platform/agentHost/test/node/copilotSessionLauncher.test.ts |
Tests filters and built-in exclusion. |
src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts |
Tests SDK override registration. |
src/vs/platform/agentHost/node/copilot/toolSearchDeferral.ts |
Prevents semantic-search deferral. |
src/vs/platform/agentHost/node/copilot/prompts/toolInstructions.ts |
Adds usage and fallback guidance. |
src/vs/platform/agentHost/node/copilot/prompts/AGENTS.md |
Documents the override architecture. |
src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts |
Configures filtering and built-in suppression. |
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts |
Registers the SDK override. |
src/vs/platform/agentHost/common/semanticSearchConstants.ts |
Defines shared identifiers. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 14/14 changed files
- Comments generated: 2
- Review effort level: Balanced
Bhavya U (bhavyaus)
force-pushed
the
dev/bhavyau/agent-host-semantic-search
branch
from
August 20, 2026 20:28
aa3323d to
1624c8b
Compare
Bhavya U (bhavyaus)
force-pushed
the
dev/bhavyau/agent-host-semantic-search
branch
from
August 21, 2026 00:02
2631e43 to
886e657
Compare
Bhavya U (bhavyaus)
marked this pull request as ready for review
August 21, 2026 01:17
Bhavya U (bhavyaus)
enabled auto-merge (squash)
August 21, 2026 01:17
Anthony Kim (anthonykim1)
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds setting-gated semantic workspace search to Copilot agent host sessions using the VS Code implementation in place of the SDK built-in.