Contents6 of 15
Download the PDF (892 KB)Before You Blame the ModelPart II · The Voice: how you talk to it
Chapter 05Instructions
Same sentence, different speaker
I had a rule my small model kept breaking. I didn't reword it. I moved it.
The rule lived in the assistant's own voice, the way a lot of agents inject guidance mid-run: written as if the model had already decided to follow it, in the "I will..." style. It held 13 times out of 38.
Then I put the same directive in the user's voice. Same intent, same task. It held 38 times out of 38.
Before you go move every instruction you own: I didn't fully isolate the effect. The move changed the role, but it may have changed position and framing too. And 38 out of 38 isn't "always." With 38 trials, a miss rate as high as about 1 in 13 is still consistent with what I saw. What I'm confident about is this: where an instruction sits, and who seems to be saying it, can matter more than how well it's written. It fits what we know about position, too. Models use the start and end of a long input better than the middle (Liu et al., 2023). This was one small model, so test it on yours. And if you inject instructions as user messages, keep them clearly labelled as coming from your harness, so they can't be confused with, or forged by, text a real user or a web page supplied.
#What didn't move the needle
- Personas. Persona wording alone ("you are a meticulous senior engineer") against none, on the same tasks: the same score both ways, 172 against 172.
- Long checklists. "Before answering, check X, Y and Z" got ignored or followed mechanically. What showed promise in small lab tests were short habits tied to a moment ("when a test fails, read the assertion before editing"). Treat that as a lead, not a law.
- Raw error messages. I tried a new output format that, on a mistake, fed the parser's raw error back to the model. It scored 0 out of 10 against 5 out of 10 for the plain format. The model repeated the same omission, over and over. In that test, an error message written for a programmer didn't work as an instruction for the model. Translate errors into "here's what to do next."
#Pointing isn't the same as composing
On multi-file tasks my model kept stopping after the first file. So I told it exactly where the next edit belonged. Edit attempts jumped from 1 out of 8 to 6 out of 8. The edits landed on the file it had already changed. When I asked it to list every remaining change, it named a correct second change in only 2 out of 16 answers. Telling a model where doesn't give it the picture of why, and on multi-file work the why is the whole job.
#Your prompt can contradict your code
My favorite find in this chapter was an accident. My prompt told the model that each tool call costs one decision from its budget. My code charged the budget per response, and a response can hold several tool calls at once. In 13 of 16 saved requests, the model was being told one price and charged another. No amount of prompt polish fixes a prompt that lies about the rules.
# instead of planting the rule in the model's own mouth:
# {"role": "assistant", "content": "I will run the tests first."}
messages.append({"role": "user",
"content": f"[harness] Before your next edit: {rule}. "
f"Reason: {why_now}"})