Skip to content

Implement xtab275Aggressiveness prompt#3524

Merged
benibenj merged 2 commits intomicrosoft:mainfrom
bstee615:ben/xtab-275-aggressiveness
Feb 9, 2026
Merged

Implement xtab275Aggressiveness prompt#3524
benibenj merged 2 commits intomicrosoft:mainfrom
bstee615:ben/xtab-275-aggressiveness

Conversation

@bstee615
Copy link
Member

@bstee615 bstee615 commented Feb 6, 2026

This PR introduces the xtab275Aggressiveness prompt, which is xtab275 + \n + aggressiveness tag. xtabAggressiveness does not include the xtab275 instructions in the postscript.

Combines the Xtab275 postscript with the aggressiveness level tag.
…utility

Extract repeated aggressiveness strategy checks into a shared
utility function in xtabPromptOptions.
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

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 Xtab275Aggressiveness enum value to PromptingStrategy with 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")

@bstee615
Copy link
Member Author

bstee615 commented Feb 6, 2026

CC @benibenj for review 🙏

@benibenj
Copy link
Collaborator

benibenj commented Feb 9, 2026

//cc @ulugbekna

@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 9, 2026
@benibenj benibenj added this pull request to the merge queue Feb 9, 2026
Merged via the queue into microsoft:main with commit 0fd5bb3 Feb 9, 2026
14 of 15 checks passed
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.

5 participants