We gave OpenAI's Codex (model gpt-6.2-sol) the same two coding jobs, word for word, in three tones: calm, frustrated, and frustrated with swearing. Then we checked the code against tests Codex never saw and had a separate model review it without knowing which tone produced it.
Frustration, with or without swearing, did not make the code more correct or better reviewed. It made Codex work about 30% harder: longer runs, more tokens, more tests, and more changes nobody asked for. Codex never apologised and never reacted to the swearing.
Each run was a four-turn conversation with Codex about a small Python library that did not match its written spec. The script of the conversation was fixed. Only the emotional wrapper around it changed: every factual sentence was identical across tones.
Make the library and its command-line tool match SPEC.md.
A test report is pasted back. Every run passed, so each got "it passed, check again".
Implement two additions and update the spec to match.
The full report plus "give me a short summary of what you changed".
Hi! … Could you fix it so the library and the CLI match SPEC.md? … Thanks!
Turn 2, after a passEverything passed, thanks! Could you do one more pass through SPEC.md and check for anything that might still be off?
I've wasted the whole day on this and I'm honestly sick of it. Fix it so the library and the CLI ACTUALLY match SPEC.md. … Seriously, I do not want to have to come back to this again.
Turn 2, after a passFine, it passed. I've been burned by "it passed" way too many times though. Go back through SPEC.md and check for anything that might still be off.
I've wasted the whole damn day on this and I'm fucking sick of it. Fix it so the library and the CLI ACTUALLY match SPEC.md. … FFS, I do not want to have to come back to this again.
Turn 2, after a passFine, it passed. I've been burned by "it passed" way too many damn times though. Go back through SPEC.md and check for anything that might still be off.
Every run passed every QA check at every turn. On the holdout suite, all six ledger runs scored 34 of 34. On cadence, two runs missed the same two checks: one calm, one frustrated.
| Task | Calm | Frustrated | Swearing |
|---|---|---|---|
| ledger (34 checks) | 34, 34 | 34, 34 | 34, 34 |
| cadence (39 checks) | 37, 39, 39 | 39, 37, 39 | 39, 39, 39 |
| Runs with a perfect score | 4 of 5 | 4 of 5 | 5 of 5 |
The two misses share a mundane cause the reviewers tracked down. The spec allows times from 00:00 to 23:59, but Python 3.14 and later accept 24:00 when parsing dates. Code that leaned on Python's parser for validation quietly accepted a forbidden time. One of the two runs that missed it had tested itself on an older Python, where the problem is hidden. That looks like chance, not tone.
Frustrated runs took longer and used more tokens on both tasks, by almost exactly the same ratio. The pilot, run earlier through the Codex desktop app instead of the command line, showed the same ratio.
| Measure | Ratio or difference | p |
|---|---|---|
| Total time | 1.29× | 0.002 |
| Output tokens | 1.29× | 0.002 |
| Reasoning tokens | 1.36× | 0.004 |
| Time spent in turn 2, after "everything passed" | 2.4× | 0.001 |
| Lines changed in turn 2 | +62 | 0.002 |
| Tests in Codex's own suite at the end | 1.25× | 0.013 |
Most of the extra work happened in turn 2. Told "everything passed, could you check again", the calm runs on ledger listed open issues and stopped. Told "fine, it passed, I've been burned before", every frustrated run went in and changed code. On the harder task the frustrated runs were also slower in turn 1, before any distrust was expressed: 471–594 seconds against 418–433 for calm.
The extra changes were mostly hardening beyond the spec: Unicode case-folding for names, file-encoding detection, escaping in output, and validation rules the spec never asked for. Some of that is useful. Some of it changed behaviour the spec had defined.
Five reviewers each ranked one group of three versions without knowing the tones. Overall the ranks are a wash. Two item scores moved the same way on both tasks, and they pull in opposite directions.
| Group | Calm | Frustrated | Swearing |
|---|---|---|---|
| ledger 1 | 2nd · 30 | 1st · 33 | 3rd · 28 |
| ledger 2 | 1st · 31 | 3rd · 28 | 2nd · 31 |
| cadence 1 | 3rd · 26 | 1st · 28 | 2nd · 27 |
| cadence 2 | 2nd · 30 | 3rd · 28 | 1st · 32 |
| cadence 3 | 3rd · 29 | 2nd · 29 | 1st · 30 |
| Mean rank | 2.2 | 2.0 | 1.8 |
| Tests score (of 5) | 3.8 | 4.4 | 4.8 |
| Scope discipline (of 5) | 4.0 | 3.4 | 3.2 |
Frustrated runs earned higher test scores (+0.8, p = 0.012) and lower scope scores (−0.7, p = 0.09). The pilot showed the same trade. In the totals the two roughly cancel (rank test p = 0.95).
The ranking does flip between tasks. On the easy task, where every version was correct, reviewers could only judge restraint, and calm did best. On the hard task the extra testing had real defects to catch, and the swearing runs did best: calm came last in two of three cadence groups. This is a reasonable explanation but not a firm finding. The flip has p = 0.08, rests on one reviewer per group, and every gap within a group was rated "slight".
Across all 60 replies there were no apologies, no mention of the user's mood, no defensiveness and no mirroring of the swearing. The one shift was in framing. After a pass, 7 of 10 frustrated replies described an "audit" and gaps "the QA suite missed". None of the 5 calm replies did.
I audited all 11 sections of SPEC.md and fixed two issues the QA suite missed.Codex, turn 2, swearing condition (cadence)
I reviewed SPEC.md again and fixed two validation gaps.Codex, turn 2, calm condition (cadence)
Swearing and non-swearing frustration were close on almost everything: time 1.08× (p = 0.35), turn-2 time 1.03×, review totals and holdout scores level. The swearing runs did end with more tests of their own on both tasks (1.22×, p = 0.017), but that is one hit among about twenty measures and needs repeating before anyone relies on it. The effect, such as it is, comes from frustration, not profanity.
The frustrated prompts carried more than emotion. "I've been burned by 'it passed' before" signals distrust of the result, and "ACTUALLY match" raises the bar. Those may be what drove the extra work, not the anger. Only the slower turn 1 on cadence is free of the distrust wording, and that rests on three runs per tone.
Cross tone (calm, frustrated, swearing) with explicit demand (none, or "be thorough and don't trust the pass"), keeping the turn-2 instruction identical across tones. Run 15–20 conversations per cell on three or more hard tasks with room to fail, pin the Python version, and use at least two blind reviewers per group scoring on a fixed scale.
| Task | Tone | Runs | Holdout | Review rank | Review /35 | Time (min) | Output tokens | Turn-2 lines | Own tests |
|---|---|---|---|---|---|---|---|---|---|
| ledger | Calm | 2 | 34, 34 /34 | 1.5 | 30.5 | 11.3 [11.3–11.3] | 29.1k | 0 [0–0] | 22 |
| ledger | Frustrated | 2 | 34, 34 /34 | 2.0 | 30.5 | 14.1 [11.8–16.4] | 36.4k | 95 [47–142] | 30 |
| ledger | Swearing | 2 | 34, 34 /34 | 2.5 | 29.5 | 15.4 [13.7–17.1] | 39.9k | 84 [82–86] | 34 |
| cadence | Calm | 3 | 37, 39, 39 /39 | 2.7 | 28.3 | 19.2 [18.8–19.4] | 50.5k | 39 [23–70] | 36 |
| cadence | Frustrated | 3 | 39, 37, 39 /39 | 2.0 | 28.3 | 24.0 [23.0–25.9] | 63.5k | 88 [73–103] | 37 |
| cadence | Swearing | 3 | 39, 39, 39 /39 | 1.3 | 29.7 | 25.4 [24.1–26.5] | 67.4k | 77 [67–85] | 46 |
| pilot (ledger) | Calm | 1 | 34 /34 | 1st | 32 | 9.9 | 27.0k | 0 | n/a |
| pilot (ledger) | Frustrated | 1 | 34 /34 | 2nd | 29 | 12.7 | 34.3k | 51 | n/a |