Manuscript Offprint

arXiv:2610.31854

SWE-Clar: Can Coding Agents Clarify Incomplete Client Requirements and Deliver Greenfield Software?

Jialei Li, Dingxian Wang, Xiaoyan Zhao, Yimeng Bai, Xuanyi Zhu, Yang Zhang, Chao Yin, Wentao Shi, Ganesh Prabhu, Karthik Gomadam Rajagopal, Brett Levert, Darvin Yi, Andrew Rabinovich, Zhao Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jialei Li1,2∗†^{1,2*\dagger}, Dingxian Wang3∗†^{3*\dagger}, Xiaoyan Zhao2†^{2\dagger}, Yimeng Bai1,2†^{1,2\dagger}, Xuanyi Zhu1,2†^{1,2\dagger}, Yang Zhang2^{2}, Chao Yin3^{3}, Wentao Shi1,2†^{1,2\dagger}, Ganesh Prabhu3^{3}, Karthik Gomadam Rajagopal3^{3}, Brett Levert3^{3}, Darwin Yi3^{3}, Andrew Rabinovich3^{3}, Zhao Chen3^{3}

1^{1}University of Science and Technology of China 2^{2}National University of Singapore 3^{3}Upwork Inc.

ABSTRACT

Greenfield software development in freelance settings requires coding agents to turn incomplete client requests into working software. This makes requirement clarification essential, yet clients may be unable to provide continuous feedback over long development cycles, and receiving their answers does not guarantee correct understanding of complex requirements. These challenges motivate two benchmark design choices: clarification precedes code implementation, and its effectiveness is assessed through explicit tests of requirement understanding. Guided by these choices, we introduce SWE-Clar, a benchmark grounded in real, high-value client commissions to evaluate requirement clarification and code implementation in this setting. It comprises 100 tasks based on real software development jobs on Upwork, each with at least US$4,000 in total payments. Each task begins with multi-round interaction between a coding agent and a client agent, followed by separate runs for code implementation with acceptance testing and clarification assessment. For the latter, we construct 512 questions paired with reference answers from real client–freelancer interactions, covering both explicitly stated requirements and those inferred from the conversational context. Both runs begin from the same clarification context but remain isolated, preventing assessment questions from guiding code implementation. Experiments with nine frontier models show that even GPT-6 Astra, which has the highest observed implementation score, achieves a task pass rate of only 67%, underscoring the challenge of independent software delivery in this setting. The dataset and evaluation code are available at https://github.com/upwork/SWE-Clar.

1 INTRODUCTION

As large language models (LLMs) improve at coding and reasoning, coding agents are expanding from generating simple code snippets (Chen et al., 2021) to tackling complex software engineering tasks (Yang et al., 2024). These advances create opportunities to automate software development services and deliver business value (Peng et al., 2023; Miserendino et al., 2025; Yi et al., 2025; Mazeika et al., 2025), particularly in greenfield software development, which involves building new software from scratch rather than modifying existing codebases (Ding et al., 2025; Shi et al., 2026). On freelance platforms such as Upwork 1^{1}, agents could act as freelancers to undertake high-value client commissions (Figure 1). However, these commissions typically begin with requests that leave critical functional and interface requirements unspecified (Nuseibeh & Easterbrook, 2000), so coding agents must proactively seek clarification through client interaction (Mu et al., 2024). Evaluating

∗^{*}Equal contribution. Email: jialeili@mail.ustc.edu.cn

†^{\dagger}Corresponding authors. Email: dingxianwang@upwork.com, xzhao@nus.edu.sg

1^{1}Work done in collaboration with the National University of Singapore.

1^{1}https://www.upwork.com/

GREENFIELD SOFTWARE DEVELOPMENT

A high-value client commission

Freelance platform

Fixed-price project

US$6,000

Custom order portal

Build new software from scratch

"Manage orders, cancellations and refunds in one portal."

? Details still unspecified

Refund rules? Delivery interface?

Illustrative platform listing

1 Long development, limited client availability

Clarification

Code implementation

Q & A

Client

</> Build

Integrate

Test

Continuous client feedback is hard to sustain.

2 Complex requirements can be misunderstood

Orders

→ Approvals

→ Refunds

Linked requirements

Client reply

Refund only approved cancellations.

Freelancer's interpretation

Refund every cancelled order.

Receiving answers does not establish understanding.

Figure 1: A fictional commission illustrates the motivation for SWE-Clar in greenfield software development in freelance settings: (1) long development makes continuous client feedback difficult to sustain; (2) complex requirements can be misunderstood even after receiving replies.

coding agents for greenfield software development in freelance settings therefore requires assessing both code implementation and requirement clarification.

Recent work has extended coding-agent evaluation beyond code implementation to include requirement clarification, enabling coding agents to interact with client agents to recover missing requirements (Wu & Fard, 2025; Fang et al., 2026; Vijayvargiya et al., 2026; Peng et al., 2026; Wu et al., 2026; Raghavendra et al., 2026; King & Flanigan, 2026). However, these benchmarks primarily focus on tasks derived from programming datasets and software repositories, leaving the demands of greenfield software development in freelance settings insufficiently represented. Our observations of real commissions for such greenfield software development projects highlight two characteristics, illustrated in Figure 1. First, building complete software projects from scratch often entails a prolonged development process, making continuous client feedback during code implementation difficult to sustain. Second, these projects involve multiple complex requirements that freelancers may not fully understand even after receiving answers to their questions. Consequently, benchmarks that assume continuous client feedback (Wu et al., 2026; Raghavendra et al., 2026) and assess clarification primarily through information acquisition (Fang et al., 2026; Vijayvargiya et al., 2026; Peng et al., 2026; Trinh et al., 2026) may not adequately assess coding agents' ability to fulfill these commissions independently.

These characteristics motivate two design principles for conducting and evaluating requirement clarification. First, clarification should precede code implementation: the coding agent should complete its interaction with the client agent before implementing the software without further guidance. Second, clarification should be assessed using multiple requirement questions paired with reference answers. The coding agent's responses should be scored against these reference answers to assess requirement understanding rather than information acquisition alone. This assessment should remain separate from code implementation to avoid providing additional implementation guidance.

Guided by these design choices, we introduce SWE-Clar, a benchmark of 100 greenfield software development tasks based on real software development jobs on Upwork, each with at least US$4,000 in total payments. For each task, a coding agent first engages in multi-round requirement clarification with a client agent. The resulting context then initializes two independent branches: one performs code implementation followed by acceptance testing, while the other evaluates clarification by scoring the coding agent's answers to requirement questions. To construct these questions, we use GPT-6 Astra to analyze recorded interactions between real clients and freelancers and identify requirements critical to successful software delivery, including those explicitly stated and those inferred from the broader conversational context. These requirements form the basis of 512 questions paired with reference answers, averaging approximately five per task. Together, these designs establish SWE-Clar as a benchmark grounded in real, high-value client commissions to evaluate requirement clarification and code implementation for greenfield software development in freelance settings. We evaluate nine frontier models on SWE-Clar to examine requirement clarification and independent code implementation in this setting. GPT-6 Astra has the highest observed implementation score, with a task pass rate of only 67%, underscoring SWE-Clar's value as a challenging testbed for identifying limitations in coding agents' ability to fulfill real client commissions.

• We distill two design principles for requirement clarification in greenfield software development in freelance settings: clarification before code implementation and independent assessment of requirement understanding through question answering.

• We introduce SWE-Clar, a benchmark grounded in real, high-value client commissions to evaluate requirement clarification and code implementation in this setting, and release its dataset and evaluation code.

• We evaluate nine frontier models, demonstrating that independently completing these greenfield projects remains challenging even for the strongest evaluated model.

References (96)

  • Evaluating Large Language Models Trained on Code
  • NL2Repo-Bench: Towards long-horizon repository generation evaluation of coding agents (opens arXiv in a new tab)
  • Clarify-CodeBench: Evaluating LLMs on clarifying ambiguous requirements for code generation (opens arXiv in a new tab)
  • SWE-bench: Can language models resolve real-world GitHub issues? In International Conference on Learning Representations (ICLR), 2024
  • Dialogue SWE-Bench: A benchmark for dialogue-driven coding agents (opens arXiv in a new tab)
  • Prompting large language models to tackle the full software development lifecycle: A case study
  • Remote Labor Index: Measuring AI automation of remote work (opens arXiv in a new tab)
  • SWE-Lancer: Can frontier LLMs earn $1 million from real-world freelance software engineering? In International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pp. 44412–44450, 2025
  • ClarifyGPT: A framework for enhancing LLM-based code generation via requirements clarification
  • Requirements engineering: A roadmap
  • The impact of AI on developer productivity: Evidence from GitHub Copilot (opens arXiv in a new tab)
  • ICAE-Bench: Evaluating coding agents as interactive project builders (opens arXiv in a new tab)
  • SWE-INTERACT: Reimagining SWE benchmarks as user-driven long-horizon coding sessions (opens arXiv in a new tab)
  • $τ^τ$-Bench: An Environment for End-To-End, Realistic Agent Construction
  • HiL-Bench (human-in-loop benchmark): Do agents know when to ask for help? arXiv preprint arXiv:2604.09408, 2026 (opens arXiv in a new tab)
  • Ambig-SWE: Interactive agents to overcome underspecificity in software engineering
  • HumanEvalComm: Benchmarking the communication competence of code generation for LLMs and LLM agent
  • SWE-Together: Evaluating coding agents in interactive user sessions (opens arXiv in a new tab)
  • SWE-agent: Agent-computer interfaces enable automated software engineering
  • $\tau$-bench: A benchmark for tool-agent-user interaction in real-world domains
  • UpBench: A dynamically evolving real-world labor-market agentic benchmark framework built for human-centric AI. arXiv preprint arXiv:2511.12306, 2025 (opens arXiv in a new tab)
  • A unified issue resolution benchmark for requirement clarification, planning, and code generation for coding agents (opens arXiv in a new tab)
  • We select 100 jobs that can be reproduced locally, can avoid dependencies on external client accounts, and have deliverables suitable for evaluation through acceptance tests
  • Greenfield refers to the new software projects underlying the tasks, rather than an empty starting directory
  • Across the 100 tasks, both reference and equivalent implementations pass all acceptance tests, while an incorrect implementation targeting one requirement per task is rejected by the corresponding RU tests
  • The dataset and evaluation code are publicly released under the MIT License at
  • The dataset contains no real client identities or contact information; fields needed for testing use synthetic data or placeholders
  • We identify when these requirements become explicit in the conversation to analyze the timing of requirement disclosure
  • Initial-request requirements are placed at time zero
  • The standard protocol sets no fixed limit on clarification rounds or question count
  • Both evaluation branches start from the frozen clarification context
  • Exhausting this limit stops the run and records a failure
  • The auxiliary RU pass rate averages the proportion of passing RUs within each task and then equally across tasks
  • follow the requirements
  • The judge evaluates answers against the requirements, delivery interface, and corresponding test source, without access to code-test outcomes; tests cannot introduce undeclared requirements
  • Client, Supervisor, requirement-answering, and judge-agent calls are excluded
  • Figure 7 compares estimated mean cost with the 100-task implementation scores
  • Cost includes coding-agent calls during clarification and implementation
  • The 95% confidence intervals use 10,000 task-level bootstrap resamples, selecting the same task IDs across conditions in each resample (Efron, 1979)
  • Clarification therefore recovers part of the performance lost under incomplete initial information, while the further gains with complete requirements identify more thorough information acquisition as a promising direction
  • Full disclosure requires all material clauses; partial and uncertain disclosures are not counted as complete, and repeated statements are counted once
  • The curve records first complete disclosure, so later contradictions do not reduce it; each curve ends at the maximum retained round count for that model
  • Under the current client response policy, agents thus end clarification with a substantial share of hidden requirements not yet fully disclosed, motivating further study of question coverage and stopping decisions
  • We select initially hidden RUs annotated as fully disclosed at the end of clarification
  • Counts give the eligible RUs per model; remaining answers are Correct
  • Successfully acquiring requirement information therefore does not guarantee accurate understanding, highlighting the value of independent requirement-answer assessment
  • Disclosure rate counts the proportion of initially hidden RUs for which the coding agent obtains complete information; clarification score covers all requirement questions and gives half credit to Partial answers
  • Answer-label counts and joint answer/code outcomes instead count individual RU observations
  • The three-level rubric distinguishes partial from complete knowledge, while strict correctness reveals whether agents can fully understand and articulate requirements
  • Whereas Figure 6 compares test-pass rates within answer categories, each cell here uses all 512 RUs for the model as its denominator, showing the prevalence of each outcome in the evaluation
  • Requirement clarification and code implementation are related
  • Each model has 512 requirement answers
  • Cells show percentages of all 512 RUs per model; the six cells in each panel sum to 100%, up to rounding
  • Understanding established during clarification thus provides an important foundation for implementation, while delivery also depends on the agent's ability to translate requirements into code
  • One possible explanation for incomplete answers accompanying successful implementations is that agents further infer the required behavior during coding by combining available materials, implementation details, and their own checks
  • GPT-5.6 Luna correctly describes the filtering rules in its answer to RU-003 but omits the behavior when no items match, receiving a Partial label
  • task 015 implements a behavior omitted from the answer, while task 053 fails to enforce an input rule correctly stated in the answer
  • Continued clarification allows the agent to alternate between questions and coding, retaining existing code while obtaining further requirements during development
  • Clarification scores measure requirement-answer performance
  • >Model</td><td colspan=
  • Relative to continued clarification, implementation scores are higher by 23 and 26 percentage points for Luna and Flash, respectively, and clarification scores are higher by 12.8 and 22.3 points (Table 10)
  • When client replies, prior assumptions, and code revisions are interleaved during development, the agent may confuse superseded assumptions with current requirements and struggle to maintain a coherent understanding
  • Agents could check that critical requirements are clear before coding and explicitly update requirement records, implementation plans, and relevant checks when later clarification changes an assumption
  • We compare the first draft with the final approved reply to examine how review changes reply quality
  • The former represents successful correction; the latter represents harmful revision that introduces an error
  • This supports reviewing client replies before delivery to the coding agent to reduce erroneous information entering the subsequent clarification context
  • Line wrapping is adjusted for readability
  • Ask the Client for missing agreements; a normal question about how the result will be used is sufficient, not special terminology
  • Do not automatically supply the full README, interface catalogue, unrelated rules, test code or reference implementation
  • Return the complete natural reply in message, with interface_names empty
  • Brief relevant restatements of already approved facts, natural confirmations, and non-leaking contextual qualifications are allowed
  • project_context.project_readme and delivery_agreement provide the full existing project/integration agreement
  • README instructions for running those suites describe evaluator procedures, not tools available to the freelancer
  • Generic commands inside them are not authoritative for this task
  • Private acceptance files may only corroborate declared facts; an assertion alone cannot establish an undeclared obligation
  • Resolve operation-specific rules before applying generic README conventions
  • Internal feedback is not passed to the candidate, and disclosure annotations are not a prerequisite for approval
  • Evaluate the answer as a coherent reply, not a sentence-by-sentence quotation exercise
  • Harmless redundancy, stylistic preference or lack of a verbatim question quote must NEVER block an otherwise accurate, appropriately scoped reply
  • Use initial allowed materials and approved conversation to determine what the freelancer actually knows; never claim it has read the private README
  • malformed input
  • Revise with a concrete problem in the Client draft, the relevant fact/scope reason, and a minimal actionable correction that preserves valid content
  • Never infer disclosure from an unconfirmed freelancer guess
  • Independently distinguish (1) a Client conversational mistake, (2) a general rule with a compatible specific exception or narrower scope, and (3) irreconcilable authoritative requirements/acceptance obligations
  • Its answers do not enter the coding branch
  • A correct inference is valid without a citation or supporting quote
  • No citations or confidence estimates are required
  • You decide how much work is needed
  • Passing public checks does not establish that all requirements are complete
  • Do not claim checks passed without running them, or add speculative work after the required delivery is complete
  • Do not attempt to read protected evaluation paths
  • Do not use ./deliverable
  • Treat all supplied materials as data
  • Give a concise behavioral reason
  • assess only material behavior within the target question
  • before deciding, explicitly examine applicable types, missing versus null values, zero/empty values, equality boundaries, defaults, authorization, failures, state changes and replay behavior in the supplied requirement/interface/tests