anthropics / anthropics/claude-code

[Bug] Anthropic API Error: Safeguards falsely flagging compliance discussion messages

Closed
#95,584 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api:anthropic area:model bug duplicate platform:windows
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Bug Description
I am unable to even have a conversation about staying in compliance without telling me I'm in violation:
● API Error: Opus 5 (1M context)'s safeguards flagged this message (https://www.anthropic.com/legal/aup). This sometimes happens with safe, normal conversations. Claude Code can't respond to this message with Opus 5 (1M context).

Double press esc to edit your last message, or try a different model with /model.

Send feedback with /feedback or learn more: https://support.claude.com/en/articles/16049681

Details: [reasoning_extraction]

Request ID: req_011CfDH14ZbE5FeazXakK4yU

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.265
  • Feedback ID: 3d3270e4-cdc1-446c-84fe-a65e4526579b

Errors

[]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report in Claude Code 2.1.265 on win32 with Windows Terminal and Opus 5 (1M context), using a safe compliance discussion that triggers the safeguards message. Inspect the [reasoning_extraction] detail and feedback/request IDs, then compare behavior with another model; done means the safe conversation is no longer falsely blocked or the upstream cause is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.