“Safeguards flagged this message” in Claude Code: what to do
Claude Code shows “safeguards flagged this message” when a safety classifier refuses one request. Rewind past it, reword it, or start a new session.
"Safeguards flagged this message" means a safety classifier on Anthropic's side refused one request in your Claude Code session, so Claude stopped instead of answering. It is not an outage, and nothing Anthropic publishes ties a single flag to your account: the message itself says it "sometimes happens with safe, normal conversations". The fix is to rewind past the flagged turn and reword it, or to start a new session.
claude-for is an independent guide, not affiliated with Anthropic. Everything below was checked on December 5, 2026 against Anthropic's Claude Code error reference, its refusals documentation, the Claude Code CHANGELOG and public GitHub reports.
The exact wording, and its variants
The full error, as quoted in GitHub issue #106699 on Claude Code 2.1.316, reads:
"API Error: Opus 5.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.5."
Under it come "Double press esc to edit your last message, or try a different model with /model.", a help link, then a Details line naming the category, a Request ID and a Message ID. The model name changes: reports quote Sonnet 5.5, Fable 5.2 and Opus 5 in the same slot (#111336).
The error reference documents these relatives:
- Cybersecurity flag: "Opus 4.8's safeguards flagged this message. Our intentionally broad safeguards allow us to deliver more capabilities faster, but can sometimes flag legitimate cybersecurity work." On Opus 5.5 and Sonnet 5.5 it can open with "safeguards flagged this session" instead.
- Usage Policy refusal: "Opus 4.6 can't help with this. Start a new session to continue."
- Before version 2.1.219: "Claude Code is unable to respond to this request, which appears to violate our Usage Policy".
Version 2.1.337, published December 4, 2026, swaps the "safe, normal conversations" sentence for one aimed at the reasoning category: "It looked like a request for Claude's internal reasoning. Asking for its thinking, a context dump or a session transcript can trigger this." That string is in the 2.1.337 binary, checked December 5, 2026, and absent from 2.1.334. The CHANGELOG does not mention it.
What the Details tag tells you
The bracketed word is the API's refusal category. Anthropic lists five:
cyber: could enable cyber harm. Benign security work trips it too.bio: could enable biological harm.frontier_llm: could help build a competing AI model.reasoning_extraction: asks the model to reproduce its internal reasoning in the reply.general_harms: any other usage-policy area.
The category decides what happens next. On Opus 5.5, Sonnet 5.5, Opus 5 and Fable models, Claude Code can re-run cyber and bio flags on an older model, such as Opus 4.8, and shows a notice rather than this error. reasoning_extraction has no fallback model, Anthropic says, so that request just stops.
Why it happens
The check reads the whole conversation, not only your last prompt. Anthropic's error reference says a new message in the same session "usually re-triggers the same refusal", and so does --resume, because the transcript still holds the triggering content.
For reasoning_extraction, the documented trigger is an instruction to write out thinking verbatim or in a fixed format: a <thinking> or scratchpad section, or a reasoning field in JSON output. That instruction can hide in CLAUDE.md, a skill, a subagent prompt, an output style or an MCP tool description, all of which Claude Code loads along with your prompt.
The reports add patterns the docs only hint at. Users were flagged while Claude read its own session transcripts (#109724), while a planning skill called the sequential-thinking MCP server (#110424), and on a plain "hola" after a model switch (#110766). One user bisected a refusal to 30 lines of a notes file, and it only fired with their user-level rules files loaded (#108048).
The Claude moves worth stealing, by email
Workflows tested on real jobs, sent only when they are worth it. Free.
How to fix it
Rewind and reword
Press Esc twice or run /rewind, go back to just before the flagged turn, and rephrase. Copy anything you need first.
Drop reasoning requests
For reasoning_extraction, remove instructions that ask Claude to write its reasoning into a thinking tag, a scratchpad or a JSON field. Ask for a short explanation or a summary of actions instead.
Start clean
Run /clear for a fresh conversation in the same project. The old one stays available in /resume.
Test your customizations
Run claude --safe-mode and send the same prompt. If it passes, the trigger is in CLAUDE.md, a skill, a hook or an MCP server.
Try another model
Run /model. Checks vary by model, so this can clear a cyber or bio flag. For reasoning_extraction, Anthropic says to change the prompt instead.
Update Claude Code
Version 2.1.337 fixed many cases of later messages being blocked because an earlier one was flagged.
Report the false positive
Run /feedback, or contact support with the Request ID printed under the error.
If Claude Code switches models on its own after a flag and you would rather choose, set Switch models when a message is flagged to Ask each time in /config. The setting is switchModelsOnFlag. With Ask each time, a flagged subagent fails instead of switching, something to plan for if you use subagents.
If an instruction file turns out to be the trigger, our Claude Code memory guide shows where each CLAUDE.md and rules file lives, so you can find the line.
What 1,600 GitHub reports have in common
As of December 5, 2026, 1,619 issues on anthropics/claude-code mention "safeguards flagged", the first on May 29, 2026. The flow is slowing: 258 new ones from September 5 to October 4, 157 the next month, 90 from November 5 to December 5.
Reports quoting the [reasoning_extraction] tag start on August 18, 2026 (#87640), the day after version 2.1.234 began printing the Details line. 260 issues mention reasoning_extraction now. Opus 5.5 is the model in the quoted error in 33 of the latest 100, ahead of Sonnet 5.5 and the Fable models.
The same settings keep coming back: long sessions, subagents doing read-only review (#113746), headless claude -p jobs (#108720), and heavy CLAUDE.md or skill setups. One user logged 78 blocks in a week across two Max accounts (#111336). Older threads are mostly closed by a bot for being "inactive for too long", not by a fix, as with #90210.
When to stop and wait
status.claude.com does not track this. None of the 50 incidents in its feed from August 31 to December 2, 2026 concerns safeguard flags.
So the signal is breadth. If every prompt is flagged, in a new session, under --safe-mode, on two models, the cause is not your wording. Report it with Request IDs and pause the work. In #110424, refusals started around November 14 on a workflow that had run clean for weeks. Our inference: something changed on Anthropic's side. For errors that are real outages, our Claude not working guide matches each message to its fix.
The honest limits
Anthropic publishes the categories but not the criteria, and no false-positive rate for Claude Code. Its refusals page says reasoning_extraction is billed because it is a category "where Anthropic measures low volumes of false positives, as of September 2026". The 260 public reports don't measure a rate either way.
We found no Anthropic explanation of the classifier in the threads we read. We have not reproduced the flag ourselves. We checked the Claude Code binaries from 2.1.328 to 2.1.337 on macOS, minus 2.1.335 and 2.1.336, so the new reasoning line may date from either of those.
Questions people ask
Is "safeguards flagged this message" a false positive?
Often, yes, by Anthropic's own wording: the error says this "sometimes happens with safe, normal conversations". If you never asked for Claude's reasoning, malware or lab methods, treat it as a misfire. Reword, start fresh, and report the Request ID with /feedback.
Will a flagged message get my Claude account banned?
Nothing Anthropic publishes says one flag does. Its docs call frequent fallback in security and biology work "expected routing for these domains, not an account flag". Its warnings and appeals article lists repeated Usage Policy violations as a ban reason, and offers an appeal form.
What does reasoning_extraction mean?
The classifier read your request as asking Claude to reproduce its internal reasoning in the reply. Typical triggers are <thinking> sections, scratchpads or reasoning fields in output. You can still ask for a short explanation, the evidence behind a result, or a summary of what Claude did.
Does a flagged message use up my limits?
On the API, a reasoning_extraction refusal that arrives before any output is billed and counts against rate limits. Anthropic does not say how refusals count on Pro or Max plans. Our usage limits guide explains the 5-hour window.
If Anthropic documents its classifier criteria or changes this message again, the newsletter will say so in one line.
