Skip to content

Add semantic search to Copilot agent host sessions - #331836

Merged
Bhavya U (bhavyaus) merged 11 commits into
microsoft:mainfrom
bhavyaus:dev/bhavyau/agent-host-semantic-search
Aug 21, 2026
Merged

Add semantic search to Copilot agent host sessions#331836
Bhavya U (bhavyaus) merged 11 commits into
microsoft:mainfrom
bhavyaus:dev/bhavyau/agent-host-semantic-search

Conversation

@bhavyaus

@bhavyaus Bhavya U (bhavyaus) commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Adds setting-gated semantic workspace search to Copilot agent host sessions using the VS Code implementation in place of the SDK built-in.

Copilot AI balanced review requested due to automatic review settings August 20, 2026 16:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/vs/platform/agentHost/node/copilot/prompts/AGENTS.md Outdated
@bhavyaus
Bhavya U (bhavyaus) force-pushed the dev/bhavyau/agent-host-semantic-search branch from 2631e43 to 886e657 Compare August 21, 2026 00:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 20/20 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@bhavyaus
Bhavya U (bhavyaus) marked this pull request as ready for review August 21, 2026 01:17
@bhavyaus
Bhavya U (bhavyaus) enabled auto-merge (squash) August 21, 2026 01:17
@bhavyaus
Bhavya U (bhavyaus) merged commit dc7e355 into microsoft:main Aug 21, 2026
28 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants