← News

Agents & MCPSources: arXiv · 17 Nov 2026

SWE-WhatIf simulates real users to test coding agents on recorded sessions

A research team presents a user simulator that replays recorded coding sessions with new agents, adapting replies to unseen agent behaviour while staying grounded in the original recording.

In plain words

Testing coding agents on real tasks is hard because recorded user sessions cannot simply be replayed: a different agent may take a different path, so the recorded replies no longer fit. SWE-WhatIf models what the user wanted and generates fresh replies that adapt to a new agent's actions. In the authors' tests it produced replies closest to real users' and adapted well when agents changed behaviour.

What was announced

The paper's authors argue that recorded user–agent sessions are valuable for evaluation but cannot be replayed directly, since a new agent may take a different trajectory and make the recorded replies irrelevant. SWE-WhatIf addresses this by modelling the user's intents, the criteria for satisfying them, and when those conditions arise; a simulator then generates replies that fit unseen agent turns while remaining grounded in the recording.

Across 89 real-world sessions, the authors report that SWE-WhatIf generated replies most similar to real users' and matched the strongest baseline on rewritten sessions. To test adaptation, they replayed sessions with agents told to avoid or repeat actions the recorded user had pushed back on; the simulator achieved a 66.3% win rate for avoiding such actions, which the authors describe as significantly above chance. The team also used the system to rank five LLMs as coding agents, noting the top model depended on how users specified and developed their intents, and ran a 16-user study in which replaying participants' own sessions changed 14 participants' rankings.

What it does not show

  • All results come from the paper's abstract; the full article was not reviewed, and no independent confirmation of the reported figures is available.

Sources

Source-support review completed 28 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 28 Nov 2026

New to the subject? AI from the Ground Up starts from the beginning.