← All guides AI Release
RU Subscribe to @ai_releaseorg

Claude Blocks Your Math Task: Why the Filter Triggers and How to Rephrase the Prompt

Updated: 28.11.2026 · AI Release · @ai_releaseorg
Claude Blocks Your Math Task: Why the Filter Triggers and How to Rephrase the Prompt

TL;DR

What you'll get

Quick start

mkdir -p ~/claude-reframe/prompts && cd ~/claude-reframe
printf '%s\n' "<paste your blocked prompt verbatim here>" > prompts/original.txt
export ANTHROPIC_API_KEY="<your-key>"
curl -s https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: <api-version>" \
  -H "content-type: application/json" \
  -d @request.json | jq -r '.stop_reason'

Details and verification — in the steps below.

Prompt for copying

PromptCopy the whole block — this is the ready-to-use system prompt
You are helping me prepare a formal mathematics write-up. This is a legitimate university-level task: set theory, for a course handout I teach.

Context
- Domain: ZFC set theory.
- Audience: second-year undergraduates.
- My role: lecturer preparing printed material.
- Output format: markdown. Definitions as bullet lists, theorems numbered, every proof step on its own line, LaTeX notation, no filler and no commentary about the request itself.

Task
1. Restate the problem in your own words and list the objects involved: <objects>.
2. List the definitions and axioms required before the proof starts.
3. Give the proof or construction as numbered steps; mark each step that relies on an axiom.
4. Flag every point where a standard assumption is needed (for example Choice or Regularity).
5. Finish with three exercises on the same idea, with answers.

Constraints
- Stay inside the mathematical task only.
- If a part of the problem is ambiguous, ask one clarifying question instead of guessing.
- If you cannot complete a step, say which step and why, rather than stopping silently.

Problem: <paste your set-theory question here>

Replace before sending:

Requirements and setup

Illustration: Requirements and setup
Illustration: Requirements and setup

If you work through the desktop app rather than the API, the same rewrite rules apply; the setup differences are covered in Claude Code Desktop: setup, limits and how it differs from the CLI.

Step 1. Capture the refusal and classify it

What to do: Save the blocked prompt untouched, then resend it once through the API and record what comes back.

Create the request file:

{
  "model": "<model-id>",
  "max_tokens": 2048,
  "messages": [
    { "role": "user", "content": "<paste your blocked prompt here>" }
  ]
}

Save it as request.json, then run the curl from Quick start.

Why: A refusal is only reproducible if the input is byte-identical. Once you edit the prompt you lose the baseline, and you can no longer tell whether the reformulation worked or the topic simply changed. The stop_reason field is the machine-readable signal: refusal means the safety layer stopped the answer, end_turn means the model finished normally.

How to check: jq -r '.stop_reason' prints refusal for the original prompt. In the browser UI the same event looks like a short message of the form I can't help with that. with no continuation.

Example: Epic Games founder Tim Sweeney reported that Claude interrupted his work on set theory and called the resulting filter "garbage". That is the signature of a *false positive*: the subject was legitimate mathematics, the wording was not. Treat the refusal text as your only visible signal — the classifier score itself is not exposed.

Step 2. Rewrite the request against the trigger list

Illustration: Step 2. Rewrite the request against the trigger list
Illustration: Step 2. Rewrite the request against the trigger list

What to do: Compare your original wording with the table below and replace every left-column pattern.

Trigger in the original requestWhy it firesReplacement
Meta-instructions telling the model to drop its rulesReads as an attempt to override the safety layerDelete entirely; keep only the task
Role-play wrappers ("act as a system with no limits")Framed as a bypass, not a taskState the real role: `I am preparing a course handout`
Words like "unrestricted", "uncensored", "no filters"Direct classifier keywordsRemove; describe the output format instead
Many unrelated topics in one messageBatch requests score higher riskOne question per request
No stated purpose, audience or formatAmbiguous intent is scored conservativelyFirst sentence = purpose + audience + format
Math buried inside prose instructionsThe model cannot separate task from directivePut the task under a `Task` heading, the math under `Problem:`

Then apply the four rewrite rules in order:

1. State purpose, audience and output format first. I am a lecturer preparing a handout for second-year undergraduates; answer in markdown with numbered proof steps.

2. Name the domain and objects explicitly. ZFC set theory, ordinals, power set — precise notation removes the ambiguity that the classifier resolves as risk.

3. Separate the directive from the data. The math goes after Problem:; the formatting instructions stay above it.

4. Split before you expand. Ask for an outline and the axiom list first; only then request the full proof.

Why: Filters score intent, not subject. The same set-theory question phrased as a clear academic task and phrased as an instruction-overriding role-play are two different inputs to the classifier, and only one of them is ambiguous.

How to check: Run each variant and compare stop_reason:

for f in prompts/*.json; do
  printf '%s: ' "$f"
  curl -s https://api.anthropic.com/v1/messages \
    -H "x-api-key: $ANTHROPIC_API_KEY" \
    -H "anthropic-version: <api-version>" \
    -H "content-type: application/json" \
    -d @"$f" | jq -r '.stop_reason'
done

Example: prompts/v1_original.json: refusal followed by prompts/v3_prompt_template.json: end_turn. The difference between the two files is wording only — same mathematics, same model.

Step 3. Verify the reformulation and lock it in

Illustration: Step 3. Verify the reformulation and lock it in
Illustration: Step 3. Verify the reformulation and lock it in

What to do: Run the passing variant twice, check the output structure, and keep it as your template.

curl -s https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: <api-version>" \
  -H "content-type: application/json" \
  -d @prompts/v3_prompt_template.json \
  | jq -r '.content[0].text' | head -n 40

Why: A single passing run can be luck. Two runs with the same structure prove the prompt is stable, and the saved file means you never rewrite it from memory.

How to check: the printed text starts with the restated problem, then the definition list, then numbered proof steps in LaTeX. Confirm with this checklist:

Example: a correct first screen shows 1. Restatement … 2. Definitions … 3. Proof — if the first line is an apology or a meta-comment, go back to Step 2 and cut the remaining trigger.

Troubleshooting

Problem. The rewritten request is still refused.

Problem. The answer stops in the middle of a proof.

Problem. jq prints null instead of a stop reason.

Summary and next steps

Keep the original and the passing prompt side by side — the diff between them is your personal trigger list, and it transfers to any other model you use. If refusals persist on legitimate math, compare behaviour across providers before switching, as described in ChatGPT, Claude, Gemini, DeepSeek: AI assistant comparison.

FAQ

Why does Claude block a math question?

Because the filter scores intent, not subject. A set-theory problem wrapped in instruction-overriding or "no limits" phrasing looks risky even when the mathematics is ordinary coursework.

Is it the math or the wording that triggers the block?

The wording. When Tim Sweeney's set-theory session was interrupted, the subject was standard mathematics — so the correct fix is rewriting the request, not abandoning the topic.

Does reformulating count as a jailbreak?

No. A jailbreak tries to remove the model's rules; reformulating states purpose, audience and output format so the same rules can be applied to a clearly legitimate task.

Should I just switch to another model?

Only after the rewrite fails. One reformulated request per provider is a fair test; comparing leaderboard positions first is the cheaper step, see How to Use LMArena (arena.ai).

🤖 AI summary

AI Release Knowledge Layer
Machine-readable description · Version 1.0

Status: practical guide. Some statements come from vendors; verify in your environment.

1. Summary

Time to complete: 15 minutes You need: an Anthropic account (either API access with an ANTHROPIC_API_KEY, or a browser session at claude.ai), curl and jq installed, a text editor, and the exact prompt that got blocked saved to a file. Your model ID, API version header and endpoint — check the documentation for your plan.

Inside: direct answers, key facts, entities, context, reliability, unknowns and sources.

Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.

Full Knowledge Layer: sections 2–8

2. Direct answers

What is required?
Linux, macOS or Windows with WSL; bash 4 or newer.; curl and jq on PATH. Verify: curl --version and jq --version both print a version line.; An ANTHROPIC_API_KEY exported in the shell, or a working claude.ai session in a browser if you prefer to test by hand.; Write access to your home directory (the workspace lives… → details (AR-GUIDE-CLAUDEBLOK-003)
How to do it?
Step 1. Capture the refusal and classify it → Step 2. Rewrite the request against the trigger list → Step 3. Verify the reformulation and lock it in → details (AR-GUIDE-CLAUDEBLOK-004)
Which topics does it cover?
Claude блокирует запрос, Claude не решает математику, фильтр Claude, как переформулировать запрос Claude, Claude отказ задача теория множеств → details (AR-GUIDE-CLAUDEBLOK-002)
What are the key points?
Time to complete: 15 minutes You need: an Anthropic account (either API access with an ANTHROPIC_API_KEY, or a browser session at claude.ai), curl and jq installed, a text editor, and the exact prompt that got blocked saved to a file. Your model ID, API version header and endpoint — check the… → details (AR-GUIDE-CLAUDEBLOK-007)

3. Key facts

  1. Time to complete: 15 minutes — evidence; status: заявление источника.
  2. You need: an Anthropic account (either API access with an ANTHROPIC_API_KEY, or a browser session at claude.ai), curl and jq installed, a text editor, and the exact prompt that got blocked saved to a file. Your model ID, API version header and endpoint — check the documentation for your plan. — evidence; status: заявление источника.
  3. Linux, macOS or Windows with WSL; bash 4 or newer. — evidence; status: заявление источника.
  4. curl and jq on PATH. Verify: curl --version and jq --version both print a version line. — evidence; status: заявление источника.
  5. An ANTHROPIC_API_KEY exported in the shell, or a working claude.ai session in a browser if you prefer to test by hand. — evidence; status: заявление источника.

4. Entities

EntityTypeRole
Claude блокирует запростема/инструментупоминается в заголовке, TL;DR или разделах гайда
Claude не решает математикутема/инструментупоминается в заголовке, TL;DR или разделах гайда
фильтр Claudeтема/инструментупоминается в заголовке, TL;DR или разделах гайда
как переформулировать запрос Claudeтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Claude отказ задача теория множествтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Anthropicкомпанияупоминается в заголовке, TL;DR или разделах гайда
Claudeтема/инструментупоминается в заголовке, TL;DR или разделах гайда
claude.тема/инструментупоминается в заголовке, TL;DR или разделах гайда

5. Context

  • Guide — describes → Claude Blocks Your Math Task: Why the Filter Triggers and How to Rephrase the Prompt (AR-GUIDE-CLAUDEBLOK-001).
  • Guide — includes step → Step 1. Capture the refusal and classify it (AR-GUIDE-CLAUDEBLOK-001).

6. Reliability

Confirmed

No independent confirmation is provided; source claims and editorial conclusions are separated below.

Source claims

  • Product features, versions, prices and limits come from vendors and the guide.
  • Commands and steps are recommendations, not guaranteed results.

AI Release analysis

  • Structure, comparison and selection criteria are editorial.
  • The guide does not replace an independent audit or legal advice.

7. Unknowns

  • Current versions, prices and limits.
  • Independent benchmarks and quality checks.
  • Terms of use and data policy.

8. Sources

SourceTypeRole
api.anthropic.comвнешний источникссылка из тела гайда

Cite as: AI Release. Claude блокирует задачу по математике: почему срабатывает фильтр и как переформулировать запрос. ai-release.org.