Manuscript Offprint

arXiv:2611.05739

PersonaCodeBench: Evaluating Coding Agents in Persona-driven Human-Interactive Sessions

Haixin Wang, Jianheng Hou, Hongyu Shen, Wenzhe Fan, Wei-Chieh Huang, Qianyu Zhu, Weichen Li, Taoran Li, Yuhang Yao, Ruohan Wang, Zhejian Peng, Wanting Jiang, Yifan Chen, Shushu Liang, Haoming Li, Defu Cao, Xu Hu, Siyang Wu, Chen Yang, Haodi Hu, Haichao Zhang, Cong Wang, Zhiyuan Yu, Weizhi Zhang, Yifan Wang, Jintao Huang, Yizhou Sun, Yijun Wang, Yuexing Hao, Xiaomin Li

Haixin Wang¹ Jianheng Hou² Hongyu Shen³ Wenzhe Fan⁴ Wei-Chieh Huang⁴ Qianyu Zhu⁵ Weichen Li⁶ Taoran Li⁷ Yuhang Yao⁸ Ruohan Wang⁹ Zhejian Peng³ Wanting Jiang¹⁰ Yifan Chen¹¹ Shushu Liang¹² Haoming Li¹³ Defu Cao² Xu Hu¹³ Siyang Wu⁶ Chen Yang¹² Haodi Hu² Haichao Zhang¹⁶ Cong Wang¹² Zhiyuan Yu⁷ Weizhi Zhang⁴ Yifan Wang¹⁴ Jintao Huang¹⁵ Yizhou Sun¹ Yijun Wang¹² Yuexing Hao⁵,⁷ Xiaomin Li¹²,⁷

¹University of California, Los Angeles ²University of Southern California ³University of Illinois at Urbana-Champaign ⁴University of Illinois Chicago ⁵Massachusetts Institute of Technology ⁶University of Chicago ⁷Texas A&M University ⁸Carnegie Mellon University ⁹University of the Arts London ¹⁰Amherst College ¹¹Northwestern University ¹²Harvard University ¹³The University of Texas at Dallas ¹⁴Purdue University ¹⁵The Ohio State University ¹⁶Northeastern University

Bold: Core Contributor Contact: whx@ucla.edu, xiaominli@g.harvard.edu

Abstract

Coding agents must deliver correct software while respecting users' expertise, preferences, and working conditions. Existing benchmarks increasingly incorporate interaction, yet personalized requirement fulfillment remains underexplored. We introduce PersonaCodeBench, which turns user characteristics into verifiable obligations in persona-driven multi-turn coding sessions. Our persona pool spans roles, technical abilities, interaction preferences, and practical constraints, yielding task-grounded evolved requirements for implementation, permissions, testing, explanation, and delivery. At runtime, a controller governs user simulator responses and requirement disclosure, using online requirement evaluation to provide feedback and advance the interaction. Requirements emerge progressively, with their content, disclosure conditions, and acceptance criteria fixed before evaluation. A completion verifier and a personalization verifier separately assess native correctness and persona fulfillment. Joint pass requires both adherence to the declared budget and compliance with validity conditions. We evaluate all major frontier agents, establish a comprehensive leaderboard, and conduct detailed experimental analyses to validate effectiveness. PersonaCodeBench supports reproducible evaluation of coding agents' ability to meet explicit, personalized user expectations alongside coding objectives.

GitHub https://github.com/MatrAIx-ai/PersonaCodeBench

Figure

(a) Cost and performance

Figure

(b) Best-performing effort per model

Figure 1: PersonaCodeBench results overview. (a) Agent cost versus Joint pass rate, with reasoning effort and time-budget multipliers annotated. (b) Joint pass rates at the best-performing effort shown for each model.

1 Introduction

Real coding sessions involve users clarifying goals, inspecting changes, and requesting revisions (Baumann et al., 2026). A correct patch can remain unsuitable for its user: an analyst may lack permission to change a schema, a student may need an explanation, and a shop owner may be unable to install software. Success therefore depends on completing the task in a way that respects the user's expertise, preferences, and working conditions.

SWE-bench and its successors measure executable task completion (Jimenez et al., 2024; Deng et al., 2025; Zhang et al., 2025). SWE-Together and SWE-Interact introduce reactive feedback and progressive disclosure, with SWE-Interact also modeling a user persona (Wu et al., 2026; Raghavendra et al., 2026). Copilot Arena collects developer preferences in actual workflows (Chi et al., 2025). Building on these advances, we ask: can a coding agent complete the software task while satisfying the particular user's requirements? Controlled evaluation must connect user characteristics to observable obligations and distinguish functional correctness from personalized acceptance.

We introduce PersonaCodeBench, which turns user characteristics into verifiable coding constraints. Our self-constructed persona pool combines ten shared coding scenarios with structured user profiles. Profiles capture roles, expertise, and working constraints, together with recorded interaction, trust, explanation, and testing preferences. Stable attributes guide communication, while compatible preferences generate task-specific evolved requirements. For a first-time contributor, these can require isolating the patch from existing changes, explaining the repair, and accurately reporting validation. Each obligation fixes its task bindings, disclosure trigger, dependencies, and acceptance evidence before evaluation.

Our construction pipeline pairs source tasks and personas, grounds added requirements in the task's environment, and simplifies the opening where appropriate while retaining the native specification for disclosure. Review checks compatibility, feasibility, and agreement between disclosed obligations and their checkers, repairing or rejecting unsuitable bindings. Contrastive screening targets tasks that a reference agent solves natively but fails under persona adaptation. We retain one binding per original task, yielding 231 pairs from five benchmarks, and select a source-proportional Lite release of 100 pairs with 186 added requirements.

During evaluation, the controller governs disclosure and authorization and validates proposed user messages. The user simulator expresses permitted requests, and the online requirement evaluator assesses the agent's response. Unmet obligations elicit feedback. Satisfied progression conditions permit the next eligible requirement. The final completion verifier measures native correctness, while the personalization verifier measures persona fulfillment. Joint pass requires both task completion and acceptance of all mandatory evolved requirements within the declared budget and validity conditions. Personalization is an operational proxy for explicit user expectations, and human satisfaction requires separate validation.

We evaluate mainstream proprietary and open-weight models, reporting a leaderboard and cost-performance comparisons. The highest reported Joint pass rate is 48% on Lite. Composition analyses, disclosure ablations, and trajectory and reliability audits examine the agent behavior and evaluation process behind these scores.

Our contributions are fourfold:

  • A coding benchmark centered on user experience. We introduce PersonaCodeBench and a reproducible construction process turning persona characteristics into verifiable constraints in multi-turn coding sessions.

  • Separate measures of completion and personalization. We independently measure native correctness and persona fulfillment, requiring both for Joint pass under explicit evidence and budget policies.

  • Comprehensive model evaluation and a leaderboard. We benchmark mainstream models across source subsets and reasoning settings, reporting rankings and cost-performance tradeoffs.

  • Analysis of construction and evaluation reliability. We analyze task, persona, and requirement coverage, compare disclosure designs, and audit simulator delivery, checkers, and judge consistency through trajectory analyses and blinded AI-assisted review.

Figure

Figure 2: Overview of the persona-driven multi-turn coding sessions. The controller governs the disclosure of evolved requirements and uses the online requirement evaluator to validate responses. Satisfied requirements permit advancement and Unmet requirements return feedback to the coding agent for revision.

References (25)