Skip to content

Add experimental alt prompt for Claude Opus 4.7#313916

Merged
bhavyaus merged 2 commits intomainfrom
dev/bhavyau/opus47-prompt
May 4, 2026
Merged

Add experimental alt prompt for Claude Opus 4.7#313916
bhavyaus merged 2 commits intomainfrom
dev/bhavyau/opus47-prompt

Conversation

@bhavyaus
Copy link
Copy Markdown
Collaborator

@bhavyaus bhavyaus commented May 3, 2026

Summary

  • Adds a new Claude47OpusPrompt (standalone copy of Claude46OpusPrompt) gated behind the experiment-based setting github.copilot.chat.claude47OpusPrompt.enabled (default false). When the setting is on, claude-opus-4-7* / claude-opus-4.7* traffic routes to the new prompt; otherwise it falls back to Claude46OpusPrompt.
  • Behavioral additions vs Claude 4.6 Opus reflect the Opus 4.7 prompting guide (tool triggering, subagent fan-out, response shape, exact verbosity wording, full operationalSafety with three categories) plus targeted lessons - no internal narration between tool calls, end-of-turn summary cap, comment discipline, "don't duplicate in-flight subagent work", "verify subagent output before reporting done", <skillUsage> primer.

Copilot AI review requested due to automatic review settings May 3, 2026 02:06
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Base: a416899e Current: 89c70cbb

No screenshot changes.

Copy link
Copy Markdown
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

Adds an experiment-gated Claude Opus 4.7 agent prompt to the Copilot extension, so Anthropic Opus 4.7 traffic can use a separate system prompt without changing the existing Opus 4.6 path.

Changes:

  • Adds a new experiment-based config key for github.copilot.chat.claude47OpusPrompt.enabled, defaulting to false.
  • Introduces Claude47OpusPrompt as a standalone Anthropic agent prompt variant with updated instructions for Opus 4.7.
  • Updates the Anthropic prompt resolver to route claude-opus-4-7* / claude-opus-4.7* models to the new prompt when the experiment is enabled.
Show a summary per file
File Description
extensions/copilot/src/platform/configuration/common/configurationService.ts Adds the experiment-backed config key used to gate the new prompt.
extensions/copilot/src/extension/prompts/node/agent/anthropicPrompts.tsx Adds the new Opus 4.7 prompt class and resolver logic that switches prompt selection based on model + experiment flag.
extensions/copilot/package.nls.json Adds the localized description string for the new setting.
extensions/copilot/package.json Exposes the new experimental setting in the extension manifest.

Copilot's findings

Comments suppressed due to low confidence (1)

extensions/copilot/src/extension/prompts/node/agent/anthropicPrompts.tsx:651

  • This adds new model-selection logic for claude-opus-4-7* / claude-opus-4.7*, but there is no regression test covering the on/off behavior of github.copilot.chat.claude47OpusPrompt.enabled. The existing prompt snapshot suite already exercises multiple Anthropic families, so without a focused test here a typo in the model match or flag check would silently route 4.7 traffic to the wrong prompt.
		if (this.isOpus47(endpoint) && this.configurationService.getExperimentBasedConfig(ConfigKey.Claude47OpusPromptEnabled, this.experimentationService)) {
			return Claude47OpusPrompt;
  • Files reviewed: 4/4 changed files
  • Comments generated: 1

@bhavyaus bhavyaus force-pushed the dev/bhavyau/opus47-prompt branch from cbf0916 to 2d93004 Compare May 4, 2026 03:28
@bhavyaus bhavyaus enabled auto-merge (squash) May 4, 2026 03:28
@bhavyaus
Copy link
Copy Markdown
Collaborator Author

bhavyaus commented May 4, 2026

Tracking issue: microsoft/vscode-internalbacklog#7600

@bhavyaus bhavyaus merged commit 5c4d9a2 into main May 4, 2026
40 of 41 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/opus47-prompt branch May 4, 2026 18:33
@bhavyaus bhavyaus added this to the 1.119.0 milestone May 4, 2026
@bhavyaus bhavyaus added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label May 4, 2026
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants