mlsanityData to 14 Oct 2026

TOM-SWE: User Mental Modeling For Software Engineering Agents

arXiv 2510.21903 ↗First posted 24 Oct 2025cs.SE cs.AIcited by 13

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Recent advances in coding agents have made them capable of planning, editing, running, and testing complex code bases. Despite their growing ability in coding tasks, these systems still struggle to infer and track user intent, especially when instructions are underspecified or context-dependent. To bridge this gap, we introduce ToM-SWE, a dual-agent architecture that pairs a primary software-engineering (SWE) agent with a lightweight theory-of-mind (ToM) partner agent dedicated to modeling the user's mental state. The ToM agent infers user goals, constraints, and preferences from instructions and interaction history, maintains a persistent memory of the user, and provides user-related suggestions to the SWE agent. In two software engineering benchmarks (ambiguous SWE-bench and stateful SWE-bench), ToM-SWE improves task success rates and user satisfaction. Notably, on the stateful SWE benchmark, a newly introduced evaluation that provides agents with a user simulator along with previous interaction histories, ToM-SWE achieves a substantially higher task success rate of 59.7% compared to 18.1% for OpenHands, a state-of-the-art SWE agent. Furthermore, in a three-week study with professional developers using ToM-SWE in their daily work, participants found it useful 86% of the time, underscoring the value of stateful user modeling for practical coding agents.

Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 37 references that are in the map. First posted on arXiv 24 Oct 2025.

Builds on

19 of 37 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering18 Feb
  2. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  4. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 15

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  2. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
  3. 2024A Survey on Large Language Models for Code Generationcited by 658
  4. 2023SOTOPIA: Interactive Evaluation for Social Intelligence in Language Agentscited by 367
  5. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
  6. 2023Theory of Mind for Multi-Agent Collaboration via Large Language Modelscited by 135
  7. 2024Personalized Language Modeling from Personalized Human Feedbackcited by 132
  8. 2025CollabLLM: From Passive Responders to Active Collaboratorscited by 124
  9. 2024MemoRAG: Boosting Long Context Processing with Global Memory-Enhanced Retrieval Augmentationcited by 119
  10. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 76
  11. 2024User-LLM: Efficient LLM Contextualization with User Embeddingscited by 76
  12. 2025Measuring What Makes You Unique: Difference-Aware User Modeling for Enhancing LLM Personalizationcited by 45
3 more
  1. 2023ClarifyGPT: Empowering LLM-based Code Generation with Intention Clarificationcited by 38
  2. 2025NextQuill: Causal Preference Modeling for Enhancing LLM Personalizationcited by 30
  3. 2024On the Way to LLM Personalization: Learning to Remember User Conversationscited by 21

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 11.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026SWE-INTERACT: Reimagining SWE Benchmarks as User-Driven Long-Horizon Coding Sessions
  2. 2026SWE-Together: Evaluating Coding Agents in Interactive User Sessions
  3. 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training
  4. 2026SWE-Touch: Benchmarking Coding Agents When Users Touch the Code
  5. 2026SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering?
  6. 2025From Correctness to Collaboration: Toward a Human-Centered Framework for Evaluating AI Agent Behavior in Software Engineering
  7. 2026Dialogue SWE-Bench: A Benchmark for Dialogue-Driven Coding Agents
  8. 2026Humans are Missing from AI Coding Agent Research