Implement xtab275Aggressiveness prompt#3524
Merged
benibenj merged 2 commits intomicrosoft:mainfrom Feb 9, 2026
Merged
Conversation
Combines the Xtab275 postscript with the aggressiveness level tag.
…utility Extract repeated aggressiveness strategy checks into a shared utility function in xtabPromptOptions.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new prompting strategy variant Xtab275Aggressiveness that combines the xtab275 prompt instructions with an aggressiveness level tag. This is in contrast to XtabAggressiveness which only includes the aggressiveness tag without the xtab275 instructions in the postscript.
Changes:
- Added
Xtab275Aggressivenessenum value toPromptingStrategywith documentation - Created
isAggressivenessStrategy()helper function to centralize aggressiveness-based strategy detection - Updated all relevant switch statements to handle the new strategy
- Refactored existing code to use the new helper function for consistency
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts | Added new enum value, helper function isAggressivenessStrategy(), and updated ResponseFormat.fromPromptingStrategy() |
| src/extension/xtab/common/promptCrafting.ts | Added postscript case that combines xtab275 instructions with aggressiveness tag |
| src/extension/xtab/node/xtabProvider.ts | Updated system prompt selection and refactored aggressiveness telemetry to use helper function |
| src/platform/inlineEdits/common/statelessNextEditProvider.ts | Updated comment to be more general (from listing specific strategies to "aggressiveness-based") |
Member
Author
|
CC @benibenj for review 🙏 |
Collaborator
|
//cc @ulugbekna |
benibenj
approved these changes
Feb 9, 2026
alexr00
approved these changes
Feb 9, 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.
This PR introduces the xtab275Aggressiveness prompt, which is xtab275 +
\n+ aggressiveness tag. xtabAggressiveness does not include the xtab275 instructions in the postscript.