How agent prompts differ from chat prompts
What it is
A chat prompt gets one good answer. An agent prompt is read again on every turn of a loop and must govern behaviour across many steps. So it has to say:
- the goal and what counts as done;
- how to work: when to look things up, in what order;
- what to do when unsure, blocked or refused;
- how to stop, and what the final message must contain;
- the reason behind each rule, so the model can apply it to cases you did not foresee.
Why it matters
The agent will meet situations the prompt did not list.
- A rule with a reason generalises: 'look up the order first, because customers often misremember dates' also covers misremembered amounts.
- A bare command does not: 'ALWAYS call get_order' gets called even when no order is involved.
- Current models follow instructions closely, so shouting in capitals is unnecessary and tends to make them over-apply the rule.
In the real world: A team deletes every capitalised 'CRITICAL' from its prompt, rewrites the rules as plain sentences with reasons, and the agent stops over-escalating routine requests.
Visual example
PrinciplesThe right-hand column is what to write instead.
Fixing each failure by adding another 'NEVER' line. Six months later the prompt is three pages of contradictory emergencies. Each line should be tied to a test case, and removed if the test passes without it.