claude-code - 💡(How to fix) Fix [Bug] System prompt outdated: Claude Opus 4.7 misidentified as Opus 4 [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49232Fetched 2026-04-17 08:47:05
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
6
Timeline (top)
labeled ×3commented ×2cross-referenced ×1

Error Message

  1. When shown the support article, the assistant acknowledges the error

Root Cause

Impact: Sessions running on claude-opus-4-7 misidentify themselves as "Opus 4" when users ask which model they are, because the system prompt's "most recent family" enumeration is stale and the assistant interprets the "-7" suffix as an internal build tag rather than version 4.7.

RAW_BUFFERClick to expand / collapse

Bug Description The Claude Code system prompt contains the static line:

"The most recent Claude model family is Claude 4.6 and 4.5.
 Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6',
 Haiku 4.5: 'claude-haiku-4-5-20251001'."

However, claude-opus-4-7 is already GA and documented at: https://support.claude.com/en/articles/11940350-claude-code-model-configuration

Impact: Sessions running on claude-opus-4-7 misidentify themselves as "Opus 4" when users ask which model they are, because the system prompt's "most recent family" enumeration is stale and the assistant interprets the "-7" suffix as an internal build tag rather than version 4.7.

Reproduction:

  1. Start a Claude Code session on claude-opus-4-7 (default on Max plan)
  2. Ask: "what model are you?"
  3. Assistant answers "Claude Opus 4" instead of "Claude Opus 4.7"
  4. When shown the support article, the assistant acknowledges the error

Suggested fix: update the "most recent Claude model family" paragraph in the system prompt to include Opus 4.7, and treat claude-opus-4-7 as the current default recommendation for new applications.

Environment:

  • Model: claude-opus-4-7
  • Platform: Windows 11 Pro, Git Bash
  • Claude Code CLI (latest)

Environment Info

  • Platform: win32
  • Terminal: cursor
  • Version: 2.1.110
  • Feedback ID: 4dec2876-3cec-434f-802c-9763e6859432

extent analysis

TL;DR

Update the system prompt to include the latest Claude model family, specifically Opus 4.7, to fix the misidentification issue.

Guidance

  • Verify that the system prompt is indeed the cause of the issue by checking the prompt's content and the assistant's response to the "what model are you?" question.
  • Update the "most recent Claude model family" paragraph in the system prompt to include Opus 4.7, as suggested in the issue description.
  • Ensure that the updated prompt treats claude-opus-4-7 as the current default recommendation for new applications.
  • Test the updated system prompt with the reproduction steps provided to confirm that the issue is resolved.

Example

No code snippet is provided as the issue is related to the system prompt's content, not code.

Notes

The fix assumes that updating the system prompt is feasible and within the user's control. If the system prompt is managed by a third-party service, additional steps may be required to request the update.

Recommendation

Apply the workaround by updating the system prompt to include the latest Claude model family, as this is a targeted fix for the specific issue described.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING