TL;DR
CodeAssistBench (CAB) is an automated benchmark designed to evaluate large language models (LLMs) on realistic, multi-turn, repository-grounded programming assistance. While state-of-the-art models achieve 70–83% accuracy on standard Stack Overflow–style coding benchmarks, CAB reveals that their success drops precipitously to just 7.22–16.49% on real-world, multi-turn GitHub issues from recent codebases.
What Problem Does This Paper Address?
Current coding benchmarks predominantly test LLMs in two narrow regimes: single-shot function generation from clean specifications (e.g., HumanEval, MBPP) or standalone Q&A snippets (e.g., InfiBench, StackEval). Even repository-level benchmarks like SWE-bench focus almost exclusively on autonomous patch generation rather than interactive developer support.
In practice, developers spend significant time debugging complex setups, clarifying ambiguities, and exploring unfamiliar codebases across iterative conversations. Existing evaluations miss these dynamics because they omit executable project contexts, ignore evolving conversational state, and rely on labor-intensive manual curation that cannot keep pace with software ecosystem updates.
Methods
CAB introduces an end-to-end automated pipeline to turn real GitHub issue threads into interactive, multi-agent evaluation scenarios:
- Automated Dataset Construction:
- Repository & Issue Filtering: Extracts permissively licensed GitHub repositories with high community activity ("question" and "help-wanted" tags). A two-tier filtering strategy (regex heuristics + Claude 3.7 Sonnet) filters out media-heavy, noisy, or uninformative comments (e.g., "+1", "bump") and verifies technical clarity, reproducibility, and absence of PII.
- Container Synthesis & Fault-Directed Repair: For issues requiring execution, an LLM generates candidate Dockerfiles from repository metadata. If builds fail, build logs are fed back into a repair prompt for up to three refinement attempts.
- Satisfaction Condition Extraction: The pipeline distills conversation goals into structured, verifiable, and solution-agnostic user satisfaction conditions (e.g., "Vectorized conditional selection" instead of hardcoded function calls).
- Multi-Agent Evaluation Framework:
- Simulated User Agent: Initiates dialogue using the GitHub issue description and generates context-aware follow-ups using BM25-retrieved historical user-maintainer response pairs.
- Maintainer Agent (Model Under Test): Reasons over the project codebase, executes terminal commands inside a Docker container when needed, and iteratively assists the user across up to 10 turns.
- Judge Agent: An LLM-as-a-judge scores the completed interaction on technical correctness, satisfaction condition fulfillment, verbosity, and execution outcome.
Datasets
- CodeAssistBench (CAB): 3,286 multi-turn issues across 214 repositories spanning seven languages (Python, Java, C++, C#, JavaScript, TypeScript, and C), featuring 238 fully validated, reproducible Docker build environments.
- Repository Cohorts:
- All-Time Cohort: Drawn from 700 top-starred repositories across all time.
- Recent Cohort: Drawn from 3,500 repositories created after November 2024 to evaluate models past their pre-training cutoff.
- Evaluation Benchmark: A balanced subset of 544 issues (350 All-Time, 194 Recent) stratified by language, turn length, and container requirements.
- Synthetic Ablation Set: 50 Claude 3.7 Sonnet-generated synthetic repositories recreating recent bugs within pre-cutoff library versions.
Key Insights and Ideas
- The Recency Gap Is Driven by Ecosystem Drift, Not Model Incompetence: Claude 3.7 Sonnet solved only 11.34% of recent real-world issues, but achieved 74.0% correctness on the synthetic ablation dataset replicating identical bugs using pre-cutoff dependencies. The primary failure mode is rapid library API evolution and framework drift beyond the training window.
- Statically Typed Languages Suffer Most: Models struggled heavily with strict type constraints in newer codebases. On recent C# and C++ issues, most models scored below 13–15% correctness.
- Incomplete Answers Lengthen Conversations: When maintainer agents produced correct responses, CAB conversations mirrored human threads (2–3 turns). When models gave vague or incorrect answers, the simulated user actively sought clarification, extending the interaction by 1–2 turns.
- Persistent Verbosity: Across all models, 40–60% of responses were classified as overly verbose, with verbosity increasing on recent repositories—suggesting models hedge with long explanations when uncertain.
- Dependency Issues Are the Toughest Category: Error categorization revealed that dependency conflicts (version mismatches, package imports) had the lowest judge-annotator agreement (55.56%), highlighting the difficulty of multi-package reasoning.
Key Results
Evaluating six state-of-the-art LLMs (ChatGPT 4.1 Mini, DeepSeek R1, Llama 3.3 70B, Haiku 3.5, Sonnet 3.7, and Sonnet 3.7 Think) revealed:
- Substantial Accuracy Drop: On recent repositories, correctness ranged from 7.22% (Haiku 3.5) to 16.49% (ChatGPT 4.1 Mini). On all-time repositories, performance improved to 13.58–29.14%.
- Model Standouts: ChatGPT 4.1 Mini achieved the highest overall correctness (16.49% recent, 29.14% all-time), closely followed by Sonnet 3.7 (Think) (13.40% recent, 27.43% all-time) and DeepSeek R1 (11.34% recent, 27.14% all-time).
- Automated Environment Success: The container pipeline achieved an 81% overall build success rate (97.6% on Recent repositories vs. 78.2% on All-Time).
- Human Study Validation: Two expert software engineers evaluated 310 model responses, establishing an inter-human agreement of 78.28% ($\kappa = 0.68$). The automated LLM judge achieved 65.92% agreement with humans (84.2% of the human baseline). Extracted satisfaction conditions were rated 86.3% accurate by 21 professional annotators.
Limitations and Future Work
- Conservative Condition Recall: While extracted satisfaction conditions achieved high precision (86.3%), human raters noted completeness was only 65.7%, meaning models might occasionally be penalized for requirements not captured by the pipeline.
- Multi-Turn Judge Variance: The 12.36 percentage point gap between LLM-judge agreement and human-human agreement highlights open challenges in conversational evaluation (e.g., credit attribution across turns, error propagation, trajectory variance).
- Simulated User Simplicity: Follow-up questions rely on BM25-retrieved human response styles rather than fully dynamic behavioral models.
- Future Directions: Incorporating per-turn and trajectory-based scoring metrics, multi-judge ensembles, extending language coverage beyond the current seven, and incorporating OpenAPI/REST web-service assistance scenarios.
Summary updated