Pith. sign in

hub Canonical reference

AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation

Canonical reference. 70% of citing Pith papers cite this work as background.

57 Pith papers citing it
Background 70% of classified citations
abstract

The advancement of natural language processing (NLP) has been significantly boosted by the development of transformer-based large language models (LLMs). These models have revolutionized NLP tasks, particularly in code generation, aiding developers in creating software with enhanced efficiency. Despite their advancements, challenges in balancing code snippet generation with effective test case generation and execution persist. To address these issues, this paper introduces Multi-Agent Assistant Code Generation (AgentCoder), a novel solution comprising a multi-agent framework with specialized agents: the programmer agent, the test designer agent, and the test executor agent. During the coding procedure, the programmer agent will focus on the code generation and refinement based on the test executor agent's feedback. The test designer agent will generate test cases for the generated code, and the test executor agent will run the code with the test cases and write the feedback to the programmer. This collaborative system ensures robust code generation, surpassing the limitations of single-agent models and traditional methodologies. Our extensive experiments on 9 code generation models and 12 enhancement approaches showcase AgentCoder's superior performance over existing code generation models and prompt engineering techniques across various benchmarks. For example, AgentCoder (GPT-4) achieves 96.3\% and 91.8\% pass@1 in HumanEval and MBPP datasets with an overall token overhead of 56.9K and 66.3K, while state-of-the-art obtains only 90.2\% and 78.9\% pass@1 with an overall token overhead of 138.2K and 206.5K.

hub tools

citation-role summary

background 8 baseline 1 method 1

citation-polarity summary

representative citing papers

Evaluating LLM Agents on Automated Software Analysis Tasks

cs.SE · 2026-04-13 · conditional · novelty 7.0

A purpose-built, staged LLM agent correctly sets up and executes software analysis tools on 33 of 35 benchmark tasks, outperforming general-purpose agent baselines by at least 17 percentage points.

Bayesian control for coding agents

cs.AI · 2026-06-23 · unverdicted · novelty 6.0

Bayesian controller for coding agent tool orchestration outperforms fixed rules when verification is costly and yields better uncertainty scores than token probabilities or tool success.

citing papers explorer

Showing 50 of 57 citing papers.