Back to blog
Engineering16 min read

Why "Don't Do X" Often Backfires in Prompts

Negative instructions in AI prompts fail for reasons vendors document: vagueness, conflict and precedence. What the folklore gets wrong, plus 30 rewrites that specify instead of forbid.

NH
Nafiul Hasan
Founder, Prompt Architects

TL;DR: Negative instructions in AI prompts usually fail because they under-specify, not because models are blind to the word "not". "Don't be verbose" leaves the target open. "Answer in under 80 words" closes it. Name what replaces the banned thing and most of the problem disappears.

Why does telling AI "don't do X" often backfire?

Because a prohibition narrows nothing unless the thing you wanted was already obvious.

"Don't be verbose" rules out one length and leaves every other length on the table. The model still has to pick, and it picks from its own priors rather than from your intent. "Answer in under 80 words" removes the choice. Same goal, different amount of information transferred.

That is the whole argument, and it does not require any claim about how the model reads the word "not". Which is useful, because the popular explanation for this behaviour is not something anyone can source.

Is it true that models "can't process negation"?

We could not verify that claim, so we are not going to repeat it.

The explanation you will meet everywhere is that a model cannot represent negation, or that "don't think of a pink elephant" makes it think of a pink elephant. It is a memorable story and it may even be pointing at something real. But it is asserted far more often than it is sourced, and no vendor documentation we read while writing this states it. It also sits awkwardly against the evidence: vendors put prohibitions in their own published reference prompts, and those prompts work.

The rest of this post therefore avoids psychology and sticks to two things you can check: what the vendors say, and whether your instruction is specific enough to be gradeable.

What is a negative instruction actually asking for?

Split any instruction into two parts: the set it removes, and the set it leaves behind.

"Don't use bullet points" removes one formatting choice from a space with dozens of members. Prose, numbered lists, tables, headings with one sentence each, a wall of text with no paragraph breaks: all still legal. You have not described your output. You have described one thing your output is not.

Now compare "Write in continuous paragraphs of three to five sentences." One instruction, one target, and a reader can grade the result without asking you what you meant.

The difference is information, not grammar. A prohibition transfers one bit; a specification transfers the answer.
FeatureProhibitionSpecification
Options removedOneAll but one
Target named
Gradeable by a third partyRarelyUsually
Behaves when repeatedAdds rules to reconcileAdds detail
Survives being moved in the promptDepends on what else is thereMostly

This is also the cleanest test for your own prompts. Read your instruction and ask whether two colleagues would agree on whether a given output passed. If they would not, you wrote a preference rather than a constraint, and the prohibition is a symptom of that rather than the cause.

What do the model vendors actually say about this?

More than most articles on this topic admit, and less than they claim. Here is what is on the record, with the dates we read it.

VendorWhat is documentedWhere
Anthropic"Tell Claude what to do instead of what not to do" is the first item in its list of ways to steer output formattingPrompting best practices, read 29 Aug 2026
Anthropic"Bloated CLAUDE.md files cause Claude to ignore your actual instructions!"Claude Code best practices, read 29 Aug 2026
OpenAIWhere instructions conflict, GPT-4.1 "tends to follow the one closer to the end of the prompt"GPT-4.1 prompting guide, read 29 Aug 2026
OpenAIConflicting rules "can create more instability than missing detail"; trim repeated statements of the same ruleGPT-5.6 prompting guidance, read 29 Aug 2026
GoogleFor Veo negative prompts, do not use words such as "no" or "don't"; name the unwanted things as nounsVertex AI video generation prompt guide, read 29 Aug 2026
Ideogram"Descriptions in the prompt take precedence to descriptions in the negative prompt"Ideogram 3.0 API reference, read 29 Aug 2026

Read together, none of these say negation is unreadable. They say something narrower and more useful: prohibitions compete badly, repeat badly, and lose to positives when the two disagree.

Anthropic's worked pair is the clearest single illustration. Its formatting guidance gives this pair verbatim:

Instead of: "Do not use markdown in your response"

Try: "Your response should be composed of smoothly flowing prose paragraphs."

Note what changed. The ban became a description of the thing you wanted.

OpenAI's GPT-5.6 guidance approaches it from the other end, describing what a good prompt contains rather than what it forbids: prompts that "define the outcome, important constraints, available evidence, and completion bar, then leave room for the model to choose an efficient path." A stack of prohibitions defines none of those four.

When does a negative instruction genuinely work?

Three cases, and they are worth knowing because the advice "never say don't" is as wrong as the folklore it replaces.

When the excluded set is short and enumerable. "Do not use the words synergy, leverage or ecosystem" is checkable. The model can compare its draft against a three-item list. Contrast that with "don't use jargon", where the list is unbounded and the model has to guess your threshold.

When there is a dedicated exclusion field. Several image models publish a real parameter for this. Stability AI's API spec documents negative_prompt as a string of up to 10,000 characters describing what you do not wish to see in the output image, labelled "This is an advanced feature." Ideogram 3.0 documents its own negative_prompt as a "Description of what to exclude from an image." These are not prompt tricks. They are inputs the pipeline handles separately.

When the prohibition carries a named replacement. This is how the vendors write prohibitions in their own reference prompts. Anthropic's published sample prompt for reducing markdown reads:

DO NOT use ordered lists (1. ...) or unordered lists (*) unless: a) you're presenting truly discrete items where a list format is the best option, or b) the user explicitly requests a list or ranking

Instead of listing items with bullets or numbers, incorporate them naturally into sentences.

Every ban in that block is either bounded by a stated exception or followed by a target. OpenAI's GPT-4.1 guide makes the same move when it documents an absolute instruction backfiring: told "you must call a tool before responding to the user", models "may hallucinate tool inputs or call the tool with null values if they do not have enough information", and the documented mitigation is to add a positive escape route telling the model to ask the user for what it needs.

When does it fail?

Three failure modes, in the order they are worth checking.

It is vague. "Don't be too formal" and "don't make it boring" name a direction with no destination. This is the common case and the rewrites below are mostly cures for it.

It conflicts with something else in the prompt. You forbid bullet points in your instructions and then paste a worked example that uses them. OpenAI documents the resolution rule for GPT-4.1: the instruction closer to the end tends to win. Ideogram documents its own version for images, where the positive prompt takes precedence over the negative one. Nothing in the output will announce that a conflict was resolved against you.

It names something that was never going to happen. "Don't write the answer in Latin" costs tokens and buys nothing. Worse, a long list of defensive prohibitions is exactly what Anthropic's Claude Code documentation warns about when it says bloated instruction files cause the model to ignore your actual instructions. It offers a removal test for each line: "Would removing this cause Claude to make mistakes?" If not, cut it.

If you are chasing a format that keeps drifting rather than a tone that keeps missing, the enforcement question is a different one, and we cover it separately in why AI ignores your format instructions.

How do you rewrite one? The two-move method

Every rewrite below is the same two moves, in the same order.

  1. Name the banned thing precisely. "Too long" is not a thing. "More than 80 words" is.
  2. State what occupies the space instead. If you cannot, you have not decided what you want, and no amount of prompt craft will decide it for you.

Then delete the prohibition, unless keeping it makes the boundary clearer. Most of the time it does not.

30 "don't do X" prompts, rewritten

Copy the ✓ line. The ✗ line is there so you can find your own habit in the list.

LENGTH AND DENSITY
✗ Don't be verbose.
✓ Answer in under 80 words. No preamble, no closing summary.

✗ Don't write too much.
✓ Give me three sentences: the answer, the main caveat, the next action.

✗ Don't pad the answer.
✓ Put the conclusion in sentence one. Every sentence after it must add a new fact.

✗ Don't repeat yourself.
✓ State each point once. If two sections overlap, merge them and cut the shorter.

✗ Don't skip the details.
✓ For each recommendation, give the reason, the cost, and one way it fails.
TONE AND REGISTER
✗ Don't be too formal.
✓ Write as if explaining to a colleague. Contractions are fine. No "furthermore" or "moreover".

✗ Don't be salesy.
✓ Every claim must be a checkable statement of fact. No superlatives, no adjectives before a product name.

✗ Don't sound like AI.
✓ Vary sentence length between 5 and 30 words. Start at most one sentence with "This". No sentence begins "In conclusion".

✗ Don't be condescending.
✓ Assume a working engineer who has not used this library. Define each acronym once, then use it.

✗ Don't be so enthusiastic.
✓ Neutral register throughout. No exclamation marks. Do not praise the question.
SCOPE AND HONESTY
✗ Don't make things up.
✓ Answer only from the text inside the SOURCE block. If it is not there, reply exactly: NOT IN SOURCE.

✗ Don't add a disclaimer.
✓ End on the last substantive sentence. The final line must contain a fact or an instruction.

✗ Don't apologise.
✓ If you were wrong, state the correction in one sentence and continue. Do not comment on the error.

✗ Don't ask me a load of questions.
✓ Make one reasonable assumption for anything missing. List them under "Assumed:" and proceed.

✗ Don't be biased.
✓ Give the strongest version of both positions at equal length, then recommend one and say why.
CODE
✗ Don't change anything else.
✓ Edit only lines 40-58 of auth.ts. Return a unified diff. Any other file in the output is a failure.

✗ Don't use any libraries.
✓ Use the Node 22 standard library only. package.json must be unchanged.

✗ Don't over-engineer it.
✓ Solve the case in the ticket. No new abstractions, no config options, no handling for inputs the caller cannot produce.

✗ Don't write tests.
✓ Return implementation code only. I will write the tests.

✗ Don't explain the code.
✓ Return one fenced code block and nothing outside it.
OUTPUT SHAPE
✗ Don't include nulls.
✓ Omit any key whose value would be null. Include only keys with real values.

✗ Don't invent columns.
✓ Use exactly these columns, in this order: id, email, plan, created_at.

✗ Don't return markdown.
✓ Return one JSON object. First character {, last character }.

✗ Don't use bold or emoji.
✓ Plain ASCII text. Emphasis carried by word choice and sentence order.

✗ Don't use bullet points.
✓ Write in continuous paragraphs of three to five sentences each.
RESEARCH AND BUSINESS WRITING
✗ Don't cite blogs.
✓ Cite the vendor's own documentation or a peer-reviewed paper. Give the URL and the date read. If you have neither, write "unsourced".

✗ Don't use jargon.
✓ Any term a first-year analyst would not know gets a five-word gloss in brackets on first use.

✗ Don't miss anything important.
✓ List every decision made, every owner named, every date committed to. Mark anything discussed but not decided as OPEN.

✗ Don't be generic.
✓ Every sentence must contain a number, a name, or a date drawn from the transcript.

✗ Don't summarise the whole document.
✓ Extract only passages that change a decision. Quote each one and give its page number.

Two patterns run through all thirty. The rewrite is longer, and the rewrite is gradeable. Those are the same property: you added information, and information is what makes an output checkable.

What about image and video models?

Different surface, different rules, and it is worth being precise about the split.

In text prompting there is no negative field. Everything you write lands in the same instruction stream and competes with everything else in it. In image and video generation, some models expose a dedicated parameter and some do not. Where the field exists it takes a list of nouns rather than an instruction, which is why Google's Vertex AI video prompt guide is worth quoting in full on this:

Not recommended: using instructive language or words such as "no" or "don't". For example, avoid prompts such as "no walls" or "don't show walls".

Recommended: Describe what you don't want to see. For example, "wall, frame", which means that you don't want a wall or a frame in the video.

And where the field does not exist, writing one has no effect at all. xAI's full documentation corpus at docs.x.ai/llms.txt contains zero occurrences of negative_prompt, while documenting grok-imagine-image-2.0 and aspect_ratio (fetched 29 Aug 2026). A negative prompt sent to Grok Imagine is text you paid for and nothing read.

We keep that whole surface in two dedicated posts rather than duplicating it here: why your negative prompt is being ignored for the six documented causes, and the negative prompt support matrix for which models publish the field at all.

How do you audit a prompt you already have?

Five passes, in this order. It takes about ten minutes on a prompt you have been reusing for months.

  1. Find every prohibition. Search for "don't", "do not", "never", "avoid", "no " and "without".
  2. For each one, ask what fills the gap. If the next clause does not say, either write it or delete the rule.
  3. Look for pairs that disagree. A prohibition high in the prompt and an example low in it that violates it is the single most common conflict, and per OpenAI's GPT-4.1 guidance the later one tends to win.
  4. Delete the defensive ones. Anything forbidding behaviour the model has never actually produced is cost with no benefit. Apply Anthropic's removal test.
  5. Re-run your worst three cases. Not your best three. A prompt that only works on easy inputs was never doing the work you thought.

The same discipline shows up in our pre-send hygiene checklist and in the broader question of making a model follow your instructions. This post is the narrow version: one habit, one fix.

The one-line version

Stop describing the room you do not want to be in. Give an address.

That is the direction our own enhancer pushes a prompt in, and it is worth being exact about the limit. Our FAQ says it analyses your intent, detects the task type, and restructures your prompt with "clear role assignment, step-by-step instructions, constraints and rules, output format definition, and edge case handling", and describes a prompt built that way as one that "reduces vagueness and produces more accurate, consistent results". That is step one of the method above, applied mechanically.

What no tool can do is decide for you what belongs in the space where the banned thing used to be. That call is yours, and it is most of the work. The Free plan includes 5 prompt enhancements per day, forever, per the same FAQ page, which is enough to run the audit above across your three worst prompts.

Free Chrome Extension

Stop rewriting prompts. Start shipping.

Works with ChatGPT, Claude, Gemini, Grok, Midjourney, Ideogram, Veo3 & Kling. 5.0★ on the Chrome Web Store.

Create An Account

Sources

All fetched 29 August 2026.

  • OpenAI, GPT-4.1 Prompting Guide: cookbook.openai.com. Read from the notebook source in OpenAI's own openai/openai-cookbook repository, because the published page is rendered client-side.
  • OpenAI, Prompting guidance for GPT-5.6 Sol: developers.openai.com.
  • Anthropic, Prompting best practices: platform.claude.com.
  • Anthropic, Best practices for Claude Code: code.claude.com.
  • Google Cloud, Video generation prompt guide: cloud.google.com.
  • Ideogram, Generate with Ideogram 3.0: developer.ideogram.ai.
  • Stability AI, API specification at api.stability.ai/v2alpha/openapi.
  • xAI, documentation corpus at docs.x.ai/llms.txt.

Frequently asked questions

Free Chrome Extension

Stop rewriting prompts. Start shipping.

Works with ChatGPT, Claude, Gemini, Grok, Midjourney, Ideogram, Veo3 & Kling. 5.0★ on the Chrome Web Store.

Create An Account