anthropics / anthropics/claude-code

[Bug] Anthropic API Error: Opus 5 safeguards flagging all messages with reasoning_extraction error

Open
#95,275 0 comments 0 reactions 0 assignees View on GitHub
area:model bug duplicate platform:linux
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
No matter what I do or say, everything I try to do with Opus (Claude Code cli on Ubuntu Linux), I get the following error message.

API Error: Opus 5'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.

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_011CfAAM3s9t5Djx1PmMdzbE

I have tried compacting. It just started happening today, and happens across every session I have open. It can't be because of one particular session.

**Environment Info**
- Platform: linux
- Terminal: vte-based
- Version: 2.1.275
- Feedback ID: 5e4dc5aa-e90d-4d8c-9017-7726fa9c19ae

**Errors**
```json
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the reasoning_extraction error on Ubuntu Linux with Claude Code 2.1.275 and Opus 5, then trace how the CLI handles the API response; done means identifying whether the failure is in Claude Code or the upstream API and verifying the resulting fix or dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, ubuntu
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.