Skip to content

search subagent -> fine-tuned model flighting#3864

Merged
bhavyaus merged 12 commits intomicrosoft:mainfrom
24anisha:anisha/dogfood_debug
Feb 20, 2026
Merged

search subagent -> fine-tuned model flighting#3864
bhavyaus merged 12 commits intomicrosoft:mainfrom
24anisha:anisha/dogfood_debug

Conversation

@24anisha
Copy link
Contributor

Improves the search subagent configuration by consolidating model settings, fixing experiment-based config usage, and enhancing the search subagent prompt with current working directory.

Changes

Consolidated Search Subagent Model Configuration:

Removed the separate AgenticProxySearchModelName config in favor of using SearchSubagentModel for both proxy and non-proxy modes. Also updated ProxyAgenticSearchEndpoint to accept model name as a constructor parameter.

When useAgenticProxy is enabled:
uses SearchSubagentModel if specified
Defaults to 'agentic-search-v3' if not specified

When useAgenticProxy is disabled:
Uses SearchSubagentModel if specified
Falls back to the main agent model if not specified

Fixed Experiment-Based Config Usage

Changed SearchSubagentUseAgenticProxy to use getExperimentBasedConfig instead of getConfig to prepare for upcoming custom model flight

Enhanced Search Subagent Context

Added current working directory to the search subagent's first user prompt, since the search subagent needs to provide absolute paths for tool calls & its final answer

Disabled ReadFile V2 by Default

Changed EnableReadFileV2 default from isPreRelease to false
This means the readFile tool uses startLine/endLine parameters instead of offset/limit by default
Note: this change was okayed by @connor4312. We needed to change it so that our experiment uses a consistent read file tool between insiders and public

Copilot AI review requested due to automatic review settings February 19, 2026 20:33
@24anisha
Copy link
Contributor Author

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the search subagent’s model selection/flighting so proxy and non-proxy paths use a single model setting, and improves the subagent’s initial prompt context to help it generate correct absolute paths.

Changes:

  • Consolidates search subagent model configuration into SearchSubagentModel, and passes the chosen model into ProxyAgenticSearchEndpoint.
  • Switches SearchSubagentUseAgenticProxy to experiment-based config access and adds a default proxy model (agentic-search-v3).
  • Adds workspace “current working directory” context to the search subagent prompt and changes EnableReadFileV2 default to false.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/platform/endpoint/node/proxyAgenticSearchEndpoint.ts Accepts model name via constructor parameter instead of reading a separate config key.
src/platform/configuration/common/configurationService.ts Removes the old proxy-model config key, updates search subagent configs, and changes EnableReadFileV2 default to false.
src/extension/tools/node/searchSubagentTool.ts Adds workspace-root “cwd” context into the first user prompt for the subagent.
src/extension/prompt/node/searchSubagentToolCallingLoop.ts Uses experiment-based config for proxy enablement and selects the proxy model from SearchSubagentModel with a default.
package.nls.json Removes deprecated setting description and updates SearchSubagentModel description to reflect new defaulting behavior.
package.json Removes the deprecated agenticProxySearchModelName contributed setting.

@bhavyaus bhavyaus enabled auto-merge February 20, 2026 18:09
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 20, 2026
@bhavyaus bhavyaus added this pull request to the merge queue Feb 20, 2026
Merged via the queue into microsoft:main with commit ef55e10 Feb 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants