TL;DR
This paper introduces SpecBench, a new benchmark designed to evaluate how effectively AI agents can translate vague user requests into structured, accurate software specifications. To overcome the limitations of current agents—which either rush into coding with overconfident assumptions or annoy users with endless questions—the authors develop Buddy, an interactive assistant that leverages past conversation history and simulated user ensembles to minimize human effort while maximizing specification quality.
What Problem Does This Paper Address?
While modern AI coding agents excel at implementing well-defined programming tasks, they struggle with the messy, ambiguous nature of initial human intent. A request like "build a data storage platform" could mean a local encrypted database for a privacy-focused user, or a cloud-synchronized service for someone prioritizing convenience.
In traditional software development, a product manager bridges this gap by interviewing the client to create a comprehensive specification sheet before any code is written. Current AI agents lack this collaborative capability; they tend to exhibit two extreme behaviors:
- Overconfident Solo Workers: They enter implementation mode too quickly, misinterpreting user preferences based on unverified assumptions.
- Exhaustive Interrogators: They consume their entire interaction budget by asking about every single ambiguous design choice, leading to user fatigue and diminishing returns.
Methods
To address these shortcomings, the authors propose Buddy, an interactive user-assistant agent whose workflow is inspired by classical morphological analysis.
Buddy operates through a multi-step pipeline:
- Morphological Decomposition: It breaks down the vague user intent into a structured space of independent design dimensions (e.g., privacy level, notification preferences), providing exactly four distinct, non-technical alternatives for each.
- Memory Extraction: It analyzes the user's past conversation history to build a structured user profile (capturing facts, soft preferences, and hard constraints) and a behavioral summary (capturing interaction styles).
- Simulated User Ensembles: To minimize human disruption, Buddy instantiates three simulated user sub-agents with varying levels of profile access (inspired by Monte Carlo dropout techniques). If all three simulators confidently agree on a design choice based on the user's past behavior, Buddy finalizes that choice automatically.
- Strategic Querying: For dimensions where the simulators disagree or lack confidence, Buddy generates targeted multiple-choice questions, selecting the ones expected to reduce uncertainty the most, and poses them to the real user.
- Post-Synthesis Review: Finally, Buddy reviews the generated spec sheet against a strict checklist to eliminate scope creep and ensure internal consistency.
Datasets
The authors introduce SpecBench, a benchmark consisting of 50 software design projects spanning nine diverse domains (including Personal, Startup, Enterprise, Education, Research, ML/Technical, Agent, Entertainment, and Healthcare).
To evaluate agents, SpecBench incorporates 48 simulated user personas characterized by distinct traits (technical experience, priorities, engagement style, etc.) and multi-turn past conversation histories. The benchmark evaluates agents on two tasks:
- Preference Elicitation: Predicting the user's preferred choices across an 80-question design checklist.
- Collaborative Spec Sheet Drafting: Generating a complete, 9-section structured specification document, evaluated via an LLM-as-judge panel.
Key Insights and Ideas
- Coding Optimization Hinders Collaboration: Command-line (CLI) coding agents are heavily optimized to complete tasks quickly (e.g., writing code or searching repositories). This optimization makes them inherently biased against asking clarifying questions, leading to overconfidence and incorrect design assumptions.
- The Interaction Paradox: Simply allowing agents to ask more questions does not guarantee a better outcome. For baseline agents like Claude Code and Cursor CLI, maximizing the question budget yielded diminishing returns, and in some cases, actually degraded the final specification quality due to a lack of questioning strategy.
- Profile Dropout Filters Ambiguity: Using an ensemble of simulated users with varying degrees of profile information acts as an effective, conservative filter to distinguish between choices that can be safely inferred and those that genuinely require human clarification.
Key Results
Buddy consistently outperformed state-of-the-art baseline agents (Claude Code, Gemini CLI, and Cursor CLI) across both tasks:
- Task 1 (Preference Elicitation): Buddy achieved a 92% score improvement rate when the query budget was increased from 0 to 10 turns, significantly higher than Claude Code (80%), Cursor CLI (78%), and Gemini CLI (61%).
- Task 2 (Spec Sheet Drafting): Buddy achieved the highest overall LLM-as-judge score of 4.28/5 (compared to Claude Code's 4.24, Cursor's 4.19, and Gemini's 3.52). Crucially, Buddy achieved this top performance while requiring significantly fewer user queries than Claude Code and Cursor CLI, demonstrating superior query efficiency.
Limitations and Future Work
The authors note several limitations and avenues for future research:
- Static Workflows: The evaluation relies on a rigid two-stage protocol (planning then execution). Dynamically adjusting the workflow and optimizing prompts on-the-fly could improve performance.
- Basic Memory Management: Buddy compresses past conversation history into a static summary. Integrating more advanced, long-term evolving memory architectures could enhance personalization.
- Simulated vs. Real Users: The benchmark relies on LLM-simulated users to scale evaluations. While detailed backstories are provided, simulated users may still lack the unpredictable nuances, noise, and behavioral quirks of real human stakeholders.
Summary updated