SWE-WhatIf: Simulating Real Users of Coding Agents from Recorded Session

Tae Soo Kim, Tongshuang Wu, Juho Kim
11/16/2026
cs.CLcs.AIcs.HC

No confident code implementation found for this paper.

Abstract

Recorded sessions between users and coding agents offer a way to evaluate how agents complete real-world tasks and interact with users. However, these sessions cannot simply be replayed with new agents, because recorded user replies may no longer apply when an agent takes a different trajectory.

Show full abstract

We introduce SWE-WhatIf, which replays recorded sessions with new agents by modeling the user's intents, the criteria for satisfying them, and the conditions under which they arise. Using this model, a user simulator generates replies that adapt to unseen agent turns while remaining grounded in the recording. Across 89 real-world sessions, SWE-WhatIf generated the replies most similar to those of real users and matched the strongest baseline when sessions were rewritten. To test adaptation, we replay sessions with agents instructed to avoid or repeat actions that the recorded user pushed back on. SWE-WhatIf produced the highest win rate for avoiding these actions (66.3%), significantly above chance. We further demonstrate its utility by ranking five LLMs as coding agents, where the highest-ranked model depended on how users specified and developed their intents, and a study with 16 users, where replaying their own sessions changed 14 participants' rankings and informed their future agent use.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kim2026swewhatif,
  title  = {SWE-WhatIf: Simulating Real Users of Coding Agents from Recorded Session},
  author = {Tae Soo Kim and Tongshuang Wu and Juho Kim},
  year   = {2026},
  eprint = {2611.21095},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.21095v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.21095.svg)](https://codeofpaper.com/paper/2611.21095)

Discussion