System prompt updates to handle search subagent#4500
Merged
bhavyaus merged 25 commits intomicrosoft:mainfrom Mar 18, 2026
Merged
System prompt updates to handle search subagent#4500bhavyaus merged 25 commits intomicrosoft:mainfrom
bhavyaus merged 25 commits intomicrosoft:mainfrom
Conversation
…ng to openai models to encourage use
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @bryanchen-dMatched files:
|
bhavyaus
previously approved these changes
Mar 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates agent system prompts to steer codebase exploration toward the Search Subagent, and increases the agentic search proxy’s prompt token budget to support larger context when running the search subagent.
Changes:
- Increase
ProxyAgenticSearchEndpointmax_prompt_tokensfrom 128k to 260k. - Add guidance to multiple OpenAI agent prompts to prefer
SearchSubagentover direct file/text/codebase search tools (when available). - Update the Claude 4.6 default prompt to additionally discourage repeated/parallel
SearchSubagentusage.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/platform/endpoint/node/proxyAgenticSearchEndpoint.ts | Raises the prompt token limit for the agentic-search proxy endpoint used by the search subagent. |
| src/extension/tools/node/searchSubagentTool.ts | Removes an extra blank line (no functional change). |
| src/extension/prompts/node/agent/openai/gpt5CodexPrompt.tsx | Adds conditional instruction to prefer SearchSubagent for exploration. |
| src/extension/prompts/node/agent/openai/gpt54Prompt.tsx | Adds conditional instruction to prefer SearchSubagent for exploration. |
| src/extension/prompts/node/agent/openai/gpt53CodexPrompt.tsx | Adds SearchSubagent preference instruction (and fixes a missing <br /> for prompt formatting). |
| src/extension/prompts/node/agent/openai/gpt52Prompt.tsx | Adds conditional instruction to prefer SearchSubagent for exploration. |
| src/extension/prompts/node/agent/openai/gpt51CodexPrompt.tsx | Adds conditional instruction to prefer SearchSubagent for exploration. |
| src/extension/prompts/node/agent/defaultAgentInstructions.tsx | Adds conditional instruction to prefer SearchSubagent for exploration in default tool-use guidance. |
| src/extension/prompts/node/agent/anthropicPrompts.tsx | Strengthens Claude 4.6 guidance: prefer SearchSubagent but avoid repeated/parallel calls. |
bhavyaus
approved these changes
Mar 18, 2026
rzhao271
approved these changes
Mar 18, 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.
Prompt Updates
Search Subagent