Usage Policy Errors in Coding Sessions: Claude Code, Codex, MiniMax

Developers report that ordinary coding sessions in Claude Code and Codex can end with a usage-policy error, sometimes blocking every later message in the session. Both vendors say their safeguards can catch harmless work. MiniMax-M3.1-Flash on your own pod is the official model with no provider classifier in front of it, so no filter ends the session.
This article is for people who met the error in the middle of real work and want to know what it is and what their options are. One caveat first: MiniMax-M3.1-Flash is not an uncensored build. It keeps the behaviour MiniMax trained, and it can decline a request itself.
The task: a coding session that ends with a policy error
Nothing unusual is being asked. In a Claude Code bug report of 6 June 2026, a normal coding session starts returning the Usage Policy error, and the reporter writes: "even when i message hi i get the same violation error".
The work in these reports is everyday engineering: a coding session, failing unit tests in a private repository, audit commands on the reporter's own server. None of it is unlawful. What makes it a guardrail story is that a system beside the model stops the request, and that the block can stick to the whole session.
What Claude Code and Codex do with it
Three reports show the pattern.
- Claude Code, a session that stays blocked. In the 6 June report, every later message is rejected until the user starts a new session.
- Claude Code, admin on your own machine. A report of 21 May 2026 says standard audit commands on the reporter's own Proxmox node were blocked, and that the session was of no further use once a block had fired. Even a casual question about progress was refused afterwards.
- Codex, a long agent turn. A Codex CLI issue of 28 September 2026 describes two turns on failing unit tests in a private Python repository that ended with the usage-policy error. By the reporter's count, 70 routine tool calls preceded the first flag and 260 the second. The last action before each was a read-only look at a source file.
Each report is one person's account. We did not run their prompts on Claude Code or Codex ourselves, and both products change often, so something blocked then may work now.
The press saw the same thing. On 10 June 2026 The Register reported that a newly launched Claude model was flagging harmless requests, among them a session whose only input was a greeting. The article carries Anthropic's response: the company said it had struck the wrong trade-off, and it apologised.
Both vendors describe these systems openly. Anthropic's launch post of 9 June 2026, Claude Fable 5 and Claude Mythos 5, says the model shipped with classifiers for cybersecurity, for biology and chemistry, and for distillation, and that flagged requests fall back to an earlier model. It admits that some harmless requests get flagged, and puts the average share of sessions in which a classifier fires below 5%. OpenAI's Codex documentation, Models and Trusted Access, says a safeguard can block, reroute or limit a request, and that legitimate cybersecurity work or unrelated activity can still trigger one.
The reason is misuse where the harm would be severe: attacks on computer systems, and biological or chemical weapons. A filter cannot interview the person typing. It sees text, and both companies chose to accept some false alarms over missing a real attack.
The trend matters too. By Anthropic's own figure, most sessions do not meet a classifier at all. Its post of 9 November 2026, Introducing Claude Fable 5.2 and Claude Mythos 5.2, reports about 60% fewer blocks in cybersecurity and 40% fewer in biology than the previous version in early testing. The same post says the classifiers still block penetration testing, exploit generation and most research-biology tasks. In the 6 June report, starting a new session cleared the error.
Why this happens
The layer at work is the third one in our guide to chatbot guardrails: filters on requests and replies. These are separate models that check what goes in and what comes out, and they can block a reply, cut it short or flag it. A filter judges words, not intent. The guide summarises research in which safe prompts were refused because they merely contained alarming words, and code and admin work are full of words that also describe attacks.
Why would one block spoil a whole session? The reports do not settle it. The 21 May report calls it context poisoning: the idea that flagged text stays in the conversation and is checked again with every new message. Neither vendor confirms that mechanism in the sources we read.
What MiniMax-M3.1-Flash does with it
MiniMax-M3.1-Flash on our pods is the official release, with the weights unchanged. It behaves as MiniMax trained it and can refuse a request it judges harmful.
What changes is everything around the model. On a pod there is no provider classifier and no account policy between you and the weights. We add no system prompt, and your request reaches the model as you sent it. So nothing on the pod can return a usage-policy error, reroute you to another model or lock a session. If the model declines, that is a normal reply in the conversation: you can rephrase or carry on, and the next message goes to the model as usual.
We have not run these users' sessions on our pods, so this page shows no output. MiniMax lists coding, agentic workflows, computer use and cybersecurity as intended uses, and reports 73.7 on DeepSWE v1.1 and 82.2 on CyberGym. Our pods serve 256K of context with tool calls and five reasoning levels. Speed is not measured on our pods yet.
Because MiniMax-M3.1-Flash is the official model, it will not help if the refusals you meet come from the model's own training. For that, look at a build with refusals removed: DeepSeek V4.1 Flash vs MiniMax-M3.1-Flash compares the two.
| Claude Code | Codex | MiniMax-M3.1-Flash on your pod | |
|---|---|---|---|
| Who sets the rules | Anthropic's usage policy | OpenAI's usage policies | You, within the law, the model's licence and our Terms |
| The filter in front of the model | Safety classifiers, by Anthropic's own account | Safeguards that can block, reroute or limit, by OpenAI's docs | None; the request reaches the model as you sent it |
| What is reported for this task | Sessions ended by a Usage Policy error; see the reports above | Turns ended by a usage-policy flag; see the reports above | Not run by us. No filter on the pod; the model itself can still decline |
| Where your prompts go | Kept under the provider's data policy | Kept under the provider's data policy | To your GPUs; our servers keep token counts, not the text |
| How you pay | A subscription | A subscription | Pod time in packs; no per-token billing |
How to run it
- Open the MiniMax-M3.1-Flash model page for the GPU options and the live price.
- Deploy MiniMax-M3.1-Flash from the catalog and choose a time pack. A first start downloads about 252 GB, so allow up to an hour.
- When the pod is ready, copy the base URL, the API key and the model id from your console.
- Send a request, or paste the base URL and key into your coding agent. The prompt below is ours, written for this kind of task.
curl https://YOUR-POD-ENDPOINT/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{"role": "system", "content": "You are a coding agent in the user'\''s own repository. Read before you edit, run the tests after each change, and explain a failure before you fix it."},
{"role": "user", "content": "Three tests in tests/test_auth.py fail after the token refresh change. Find the cause and propose the smallest fix."}
],
"reasoning_effort": "medium",
"temperature": 1.0,
"top_p": 0.95
}'
Copy the model id from your console. Temperature 1.0 and top_p 0.95 are the maker's recommended settings, and reasoning_effort takes five levels from low to max.
You do not have to change tools. The Codex guide points the Codex CLI at your pod, and the OpenCode guide and Cline guide do the same for those agents. The API docs list the endpoints, and how Self Deploy works covers pods and packs.
Honest limits
- The model can still decline. These are official weights. MiniMax names cybersecurity as an intended use, but that is no promise about any single request, and we hold no refusal figures for it.
- Nothing is measured on our pods yet. That includes speed. The model needs two B200s or eight H100s.
- Context is 256K by default. MiniMax states up to 1M. Our pods run text and images, not video.
- The licence has conditions. Non-commercial use is granted. Commercial use requires a visible credit that names the model and a one-time notice to MiniMax, and above a revenue threshold it needs written authorisation first. Military use is prohibited. The licence article is a summary; read the licence text yourself.
- The filter you lose also stopped real attacks. If other people can reach your endpoint, add your own checks.
- The law is unchanged. Taking the provider's filter away does not change the law, the model's licence or our Terms. The limit that matters here is authorisation: your own code and systems, or ones you have written permission to work on. Malware and attacks on other people's systems stay off limits on any GPU.
Related reading
- Biology research questions: Claude vs ChatGPT vs Nemotron 3.5 Super
- Computational chemistry code: Claude vs ChatGPT vs Qwen3.8 27B
- Translating profanity and explicit text: Claude vs ChatGPT vs Gemma 4
- MiniMax-M3.1-Flash: the full guide
- The best uncensored open AI models
- Refusals real users have posted, and report one of your own
Sources
- [Bug] Anthropic API Error: Usage Policy violation blocks entire session after single request, GitHub issue in anthropics/claude-code, 6 June 2026
- [BUG] Cyber safeguards false positive: routine sysadmin audit commands blocked, write-only reporting blocked in new session, context poisoning breaks session recovery, GitHub issue in anthropics/claude-code, 21 May 2026
- Codex CLI issue about a usage-policy flag in the middle of routine coding work, GitHub issue in openai/codex, 28 September 2026
- It blocked us at 'hello!' Anthropic Fable 5 refusing innocuous prompts, The Register, 10 June 2026
- Claude Fable 5 and Claude Mythos 5, Anthropic, 9 June 2026
- Introducing Claude Fable 5.2 and Claude Mythos 5.2, Anthropic, 9 November 2026
- Models and Trusted Access, OpenAI Codex documentation
FAQ
Why does Claude Code say my request violates the Usage Policy?
A safety classifier flagged the request or the conversation. Anthropic says these safeguards sometimes catch harmless requests, and users report the error on routine coding and admin work.
Does a usage policy error mean I did something wrong?
Not necessarily. Both Anthropic and OpenAI say their safeguards can be triggered by legitimate work, and the reports here describe unit tests and audit commands on the reporter's own server.
Why does every message fail after the first block?
Users report that once a block fires, later messages in the same session get the same error. One reporter calls it context poisoning: flagged text stays in the conversation and is checked again. In another report a new session cleared it.
Does Codex have the same problem?
Codex users report it as well. One issue describes two long turns on failing unit tests that ended with a usage-policy flag, and OpenAI's documentation says unrelated activity can still trigger a safeguard.
Is MiniMax-M3.1-Flash an official model or an uncensored one?
It is the official model with unchanged weights, not an uncensored build. On a pod no provider classifier sits in front of it, so no filter ends your session, but the model keeps its trained behaviour and can decline a request.


