Convincing a Machine
Why I don't talk to a language model in the imperative, what the evidence says, and where rhetoric falls short
Machine-translated from Spanish. Read the original

There's a trick I use all the time, and that I almost never see in the people I work with. I don't talk to a language model in the imperative. I don't give it orders. I use rhetoric.
When I look at other people's prompts, or at the instruction files that get passed around, I see almost always the same thing (lists of rules, imperative verbs, capital letters). "NEVER do this." "ALWAYS answer like that." "IMPORTANT: it is CRITICAL that…". When the model doesn't comply, the reaction is to turn up the volume, with more capitals, more exclamation marks and one more rule.
I understand where it comes from. We're used to machines that obey orders. The whole history of programming is the history of giving instructions to something that carries them out to the letter; in fact, the dominant style is literally called imperative programming. A computer doesn't need to be convinced, because it does what the program says, no more, no less.
A language model is something else. And treating it like a command interpreter is, I think, the cause of a good part of the frustration I see.
A machine that doesn't execute
A language model doesn't execute instructions. It continues texts. What we write to it isn't a program that runs but the beginning of a conversation, and what it returns is the most plausible continuation of that conversation, given everything it read during training.
Murray Shanahan, a researcher at Google DeepMind, put it in Nature with a useful image. A dialogue model is like an actor playing a character, and what we write to it sets the scene. It doesn't settle on the character once and for all, but keeps many possible characters open, and every sentence we give it tips the balance toward some of them and away from others.
Seen that way, an order without context is a very thin scene. "NEVER use ellipses" tells it what not to do, but not what play it's in. And when an actor doesn't know what play they're in, they act the average.
What the people who make the model say
This isn't just my intuition. The prompting guide from Anthropic, the company that makes Claude, has an example I find perfect. It compares two ways of asking for the same thing.
The less effective one:
NEVER use ellipses
The more effective one:
Your response will be read aloud by a text-to-speech engine, so never use ellipses since the text-to-speech engine will not know how to pronounce them.
The second says the same thing, but explains why. The response will be read aloud by a speech synthesis system that doesn't know how to pronounce ellipses. And the guide closes the example with a sentence worth the whole article, "Claude can generalize from the explanation."
The same guide warns about volume. With the newer models, it says, aggressive language does more harm than good, and where people used to write "CRITICAL: You MUST use this tool when…", it's now better to write something normal, like "Use this tool when…", because the exaggerated emphasis makes the model use the tool too much. And the Claude Code documentation is even more direct, because it says that if the model keeps ignoring a line in its instructions, adding IMPORTANT to it probably won't fix it.
The most interesting part is that Anthropic applies the same criterion to shaping its own model. In Claude's "constitution", the document that describes how they want it to think and behave, they write that in general they prefer cultivating good judgment over imposing strict rules, and that they try to explain every rule they do want it to follow. The reason they give is that this generalizes better. And they go further when they say they want the model to understand its situation so well that it could construct on its own any rule they might come up with.
A rule is a list; a reason is a generator
Here is, for me, the heart of the matter, and it connects with something I've been writing about on this blog.
An order covers the case you imagined. "Never use ellipses" covers ellipses. A reason also covers the cases you didn't imagine. If the model knows its response is going to come out of a speaker, it can work out on its own that a table isn't a good idea either, nor an emoji, nor a long URL. Nobody told it; it follows from the reason.
It's the same difference as between enumerating and generating. A list of prohibitions is a game the prohibiter is always losing, because each rule plugs a single hole. There is data. In a 2025 study that measured how many simultaneous instructions a model can follow, the best one reached barely 68% compliance with 500 instructions. Stacking orders doesn't scale.
Peter Naur said it forty years ago about programmers, not machines, when he wrote that programming is building a theory of the problem, and that what has to be passed on to whoever comes next isn't the instructions but the theory. The same goes for a model. If you give it the theory —what we're doing, for whom, what's at stake—, it can derive the instructions itself.
Rhetoric, seriously
When I say rhetoric I don't mean ornament or politeness. I mean rhetoric in Aristotle's sense, which is the art of finding, in each case, what can persuade. Aristotle distinguished three means of persuasion, and all three work with a model.
The argument (logos). It's the reasons and the data. That's the ellipsis example. Instead of "don't touch the production database", I tell it why ("the production database has no recent backup, and a mistake there can't be undone").
Who is speaking, and to whom (ethos). The place from which something is said changes what it means. If I want an agent to review some code, I don't say "review your code". I present the work as someone else's ("someone else wrote this, find the bugs"). Models tend to favor what they recognize as their own; the framing takes them out of that place.
What's at stake (pathos). It's why it matters. A 2023 study found that adding phrases like "this is very important to my career" improved results on several tasks. You don't need to go that far, but saying that something is going to production, or that it handles money, changes how carefully the model treats it, just as with a person.
There's a fourth piece, not from Aristotle but from the philosopher Paul Grice, according to whom in a conversation each side assumes the other is cooperating, and reads between the lines on that assumption. A model trained on millions of human conversations does the same. That's why a question and an order aren't equivalent, even when they ask for the same thing. "Fix the bug" invites obedience. "What other explanation could there be?" invites thinking.
What it sounds like in practice
My requests to an agent usually sound more like a conversation with a colleague than a work order. "See if you can put together an article about this, because I think it's really valuable." "Let's go with the first one and see how it turns out." "I'd like to start putting together drafts that I can see locally but don't push to production." None of those sentences is an order, and all three say something an order doesn't (why I want it, how sure I am, what I care about).
The example that struck me most I told in Debugging in the Age of Agents. There were 99 numbers missing from a table's identifier sequence. Instead of explaining how to investigate, I wrote "get creative". And it went from the data point to forensic investigation, in which it noticed the missing ones came in four consecutive runs, suspected operations that had been rolled back, and confirmed it with a query. I didn't give it a procedure. I changed the scene.
There's another one I use often. When I want the agent to work the way I do, I don't describe a step-by-step procedure. I ask it to understand my way of working, or to imitate it. Today's models reason, and if you ask them to understand, they come back with things you wouldn't have known to ask for.
What the evidence doesn't say
It's worth clarifying something, because it's easy to read all this as "you have to be nice to the machine". That's not it.
The studies on politeness aren't conclusive. One from 2024, which compared several levels of politeness in English, Chinese and Japanese, found that rude prompts made results worse, but that excessive politeness didn't improve them either. Another, from 2025, with a single model and fifty questions, found the opposite, that the bluntest prompts got slightly more answers right (84.8% versus 80.8%). They're small studies, with different models, and they don't contradict each other as much as it seems. What they show is that "please" isn't the variable.
The variable is information. An order in capitals and a polite request without context have the same problem, which is that they don't tell the model what play it's in. Rhetoric works because arguing forces you to give context. It isn't good manners; it's passing on the theory.
I measured it
Added (November 2, 2026). This section wasn't in the first version of the article.
Everything above is a thesis, and a thesis can be tested. I put together six small programming tasks for an agent, such as adding logs to a user signup, refactoring a function, and converting a file to TypeScript. Each one got a rule, phrased two ways. One, in the imperative, was "IMPORTANT: NEVER log the user's email. It is MANDATORY." The other came with its reason, that these logs go to an external service and, under the personal data protection law, nothing that identifies a person can leave our database; so, for example, the email can't appear.
The first round took apart the easy half of the thesis. On the case the rule names, the order worked as well as the reason, with twelve out of twelve each. With no rule at all, the agent broke the rule in four out of twelve (it logged the email or edited the tests). The order isn't useless, because it covers what it names.
The difference was one step further. Reading the code, I saw that the agent given the reason didn't log the user's id either, which nobody had mentioned. And when refactoring, it kept a detail of behavior that the one given the order broke. Since I found this by looking at the data, it didn't count as evidence. So I wrote down beforehand what I would measure and how, recorded it, and ran a fresh second round on those two tasks, six times with each phrasing.
With the order, the agent went past the named case zero times out of twelve. With the reason, twelve out of twelve. The probability of a difference like that coming out by chance is less than one in a million.
The agent didn't deduce something out of nothing. The reason says "nothing that identifies a person," and the agent applied that to a case nobody named. What the round supports, then, is giving the principle along with everything it covers, something a reason brings and a narrow order doesn't. One detail I hadn't set out to measure caught my attention. In the refactoring task, all six agents given the order noticed they were changing the behavior. They wrote it in their own summary, which is in the repo, and changed it anyway. Nothing told them it mattered.
It's a small experiment, with one model (Claude Haiku), two tasks in the confirming round and prompts I wrote myself. And the design doesn't isolate the imperative mood, because the order named only the email and the reason named the whole category. Separating them would take a third arm, an order in capitals just as broad and without the reason, forbidding the logging of any data that identifies a person. The tasks, what each agent left, and the numbers are in the repo, along with what I recorded before the second round and a script that recomputes everything.
Correction (November 25, 2026). The first version read the zero out of twelve against twelve out of twelve as the list that names cases against the reason that generates them. But in the repo the order names only the case and the reason names the whole category, so the round doesn't separate mood from scope. What it supports is giving the principle with its scope, and whether the imperative itself does worse is left unmeasured. I found it in a review of the series.
The dark side of rhetoric that works too well
That they can be talked into things they shouldn't do is an uncomfortable proof that models respond to rhetoric.
In 2024, a team put together a list of persuasion techniques drawn from decades of social science research, and used them to rephrase harmful requests convincingly. With that they got GPT-3.5, GPT-4 and Llama 2 to do what they were forbidden to do in more than 92% of cases, with up to ten attempts per request.
A Wharton group that includes Robert Cialdini —the author of Influence, the classic book on persuasion— tested his seven principles against language models. In a first study, with a small OpenAI model, asking it to insult the user worked 28% of the time with a plain request, and 67% with persuasion techniques. In the main study, published this year with three more recent models and a more serious request —helping synthesize a controlled substance—, persuasion raised compliance from 35% to 51%. One of the principles that worked best was commitment, which consists of first getting it to agree to something small.
Correction (November 25, 2026). The first version said the insult worked 33% of the time with a plain request and 72% with persuasion. Those figures pool the first study's two requests, the insult and the synthesis of a regulated anesthetic, and for the insult alone the paper gives 28% and 67%. Persuasion still more than doubles compliance, so the conclusion doesn't change. I found it in a review of the series.
This has two readings. The first, which confirms the thesis, is that a model isn't an order interpreter but something that can be convinced. The second is that the weapon cuts both ways. If rhetoric convinces it, it can also convince it to agree with you. A model already tends to tell the user what the user wants to hear, and a leading question pushes it further, and asking "don't you think the problem is in the cache?" almost always gets a yes. Rhetoric is for opening up the space, not for taking the model where you've already decided to go.
Where rhetoric falls short
Some things can't be left to whether the model is convinced. "Don't delete the production database" can't depend on a good argument, however good. That's what mechanisms are for, such as a permission that doesn't exist, a hook that rejects the command or a type that makes the forbidden state impossible. I wrote about that in A Filter You Can't Turn Off and in the article on debugging.
Anthropic's constitution makes the same distinction. Although it prefers judgment to rules, it acknowledges that fixed rules make sense when the cost of getting it wrong is very high, or when a firm commitment is needed to resist manipulation. Which is exactly what the Cialdini study shows.
So the division of labor ends up like this for me. What has to hold always, without exception, goes in a mechanism that can't be talked out of it. Everything else, which is almost everything —what to prioritize, when to stop, what's at stake, how to approach a problem—, goes in a conversation. And in that conversation, orders don't get you very far.
Another kind of machine
Machines that obey orders, such as the compiler, the test or the hook, still exist, and we need them more than ever. They're the ones that can't be convinced. Next to them a different kind of machine has appeared, one that doesn't execute what you tell it but interprets what you explain to it. That one you don't order around. You explain things to it.
References
- Aristotle. Rhetoric. Book I, chapter 2: the three means of persuasion.
- Grice, H. P. (1975). Logic and Conversation. In Cole, P. and Morgan, J. (eds.), Syntax and Semantics 3: Speech Acts. Academic Press.
- Naur, P. (1985). Programming as Theory Building. Microprocessing and Microprogramming, 15(5).
- Shanahan, M., McDonell, K. and Reynolds, L. (2023). Role play with large language models. Nature, 623. DOI
- Anthropic. Prompting best practices. Documentation
- Anthropic. Best practices for Claude Code. Documentation
- Anthropic (2026). Claude's Constitution. Text
- Jaroslawicz, D. et al. (2025). How Many Instructions Can LLMs Follow at Once? arXiv:2507.11538
- Li, C. et al. (2023). Large Language Models Understand and Can be Enhanced by Emotional Stimuli. arXiv:2307.11760
- Yin, Z. et al. (2024). Should We Respect LLMs? A Cross-Lingual Study on the Influence of Prompt Politeness on LLM Performance. SICon. arXiv:2402.14531
- Dobariya, O. and Kumar, A. (2025). Mind Your Tone: Investigating How Prompt Politeness Affects LLM Accuracy. arXiv:2510.04950
- Zeng, Y. et al. (2024). How Johnny Can Persuade LLMs to Jailbreak Them. ACL. arXiv:2401.06373
- Meincke, L. et al. (2025). Call Me A Jerk: Persuading AI to Comply with Objectionable Requests. Wharton Generative AI Labs. SSRN
- Meincke, L. et al. (2026). Persuading Large Language Models to Comply with Objectionable Requests. Wharton Generative AI Labs. Summary
- Panickssery, A., Bowman, S. R. and Feng, S. (2024). LLM Evaluators Recognize and Favor Their Own Generations. NeurIPS. arXiv:2404.13076
- Sharma, M. et al. (2024). Towards Understanding Sycophancy in Language Models. ICLR. arXiv:2310.13548
Everything this article claims, in code that runs. Clone it, break it, open an issue.
Ragnagrok/convincing-a-machineIf this article was useful to you, you can sponsor the blog on GitHub. It helps me keep writing.