CodeMonkeys: Scaling Test-Time Compute for Software Engineering
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Scaling test-time compute is a promising axis for improving LLM capabilities. However, test-time compute can be scaled in a variety of ways, and effectively combining different approaches remains an active area of research. Here, we explore this problem in the context of solving real-world GitHub issues from the SWE-bench dataset. Our system, named CodeMonkeys, allows models to iteratively edit a codebase by jointly generating and running a testing script alongside their draft edit. We sample many of these multi-turn trajectories for every issue to generate a collection of candidate edits. This approach lets us scale "serial" test-time compute by increasing the number of iterations per trajectory and "parallel" test-time compute by increasing the number of trajectories per problem. With parallel scaling, we can amortize up-front costs across multiple downstream samples, allowing us to identify relevant codebase context using the simple method of letting an LLM read every file. In order to select between candidate edits, we combine voting using model-generated tests with a final multi-turn trajectory dedicated to selection. Overall, CodeMonkeys resolves 57.4% of issues from SWE-bench Verified using a budget of approximately 2300 USD. Our selection method can also be used to combine candidates from different sources. Selecting over an ensemble of edits from existing top SWE-bench Verified submissions obtains a score of 66.2% and outperforms the best member of the ensemble on its own. We fully release our code and data at https://scalingintelligence.stanford.edu/pubs/codemonkeys.
Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 1 of its 64 references that are in the map. First posted on arXiv 24 Jan 2025.
Builds on
1 of 64 references.
Closest ancestors · 1
Same direction, newest first
- 2024Qwen2.5-Coder Technical Report18 Sep
Built on by
Citing papers per year: 2025: 24; 2026: 22.
46 papers.
Sort:
By area:
- 2025S*: Test Time Scaling for Code Generationcited by 95
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
- 2025RoboMonkey: Scaling Test-Time Sampling and Verification for Vision-Language-Action Modelscited by 56
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2025Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Usecited by 45
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Computecited by 25
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 24
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 22
- 2025Verifier-free Test-Time Sampling for Vision-Language-Action Modelscited by 21
- 2025Steering Vision-Language-Action Models as Anti-Exploration: A Test-Time Scaling Approachcited by 18
- 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineeringcited by 16
34 more
- 2025Guiding Reasoning in Small Language Models with LLM Assistancecited by 13
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agentscited by 13
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agentscited by 11
- 2026Scaling Test-Time Compute for Agentic Codingcited by 11
- 2025Putting It All into Context: Simplifying Agents with LCLMscited by 9
- 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9
- 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflowcited by 7
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2025J1: Exploring Simple Test-Time Scaling for LLM-as-a-Judgecited by 5
- 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesiscited by 4
- 2025Pretraining Scaling Laws for Generative Evaluations of Language Modelscited by 4
- 2025Investigating Test Overfitting on SWE-benchcited by 4
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
- 2025LiveOIBench: Can Large Language Models Outperform Human Contestants in Informatics Olympiads?cited by 3
- 2026Test-Time Scaling Makes Overtraining Compute-Optimalcited by 3
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generationcited by 2
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discoverycited by 2
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfercited by 1
- 2025Vec-LUT: Vector Table Lookup for Parallel Ultra-Low-Bit LLM Inference on Edge Devicescited by 1
- 2026More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)cited by 1
- 2026The Limits of Long-Context Reasoning in Automated Bug Fixingcited by 1
- 2026Resolving Java Code Repository Issues with iSWE Agentcited by 1
- 2026SciNav: A General Agent Framework for Scientific Coding Taskscited by 1
- 2026EvoOtter: Evolutionary Reproduction Test Generatorcited by 1
- 2025MutaGReP: Execution-Free Repository-Grounded Plan Search for Code-Usecited by 0
- 2026On the Feasibility and Opportunity of Autoregressive 3D Object Detectioncited by 0
- 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programscited by 0
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agentscited by 0
- 2026LatentSift: Policy-State Filtering for Token-Efficient Verification of Software Engineering Agentscited by 0
- 2026Learning from Research: Toward Lifelong Agent Harness Evolutioncited by 0
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Taskscited by 0
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks1 Oct 2026
- 2026Learning from Research: Toward Lifelong Agent Harness Evolution30 Sep 2026
- 2026LatentSift: Policy-State Filtering for Token-Efficient Verification of Software Engineering Agents28 Sep 2026
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discovery2 Jul 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programs24 Jun 2026
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generation15 May 2026
34 more
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
- 2026Test-Time Scaling Makes Overtraining Compute-Optimal1 Apr 2026
- 2026SciNav: A General Agent Framework for Scientific Coding Tasks11 Mar 2026
- 2026Resolving Java Code Repository Issues with iSWE Agent11 Mar 2026
- 2026On the Feasibility and Opportunity of Autoregressive 3D Object Detection9 Mar 2026
- 2026The Limits of Long-Context Reasoning in Automated Bug Fixing17 Feb 2026
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents8 Feb 2026
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan 2026
- 2026More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)29 Jan 2026
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan 2026
- 2025Vec-LUT: Vector Table Lookup for Parallel Ultra-Low-Bit LLM Inference on Edge Devices6 Dec 2025
- 2025Steering Vision-Language-Action Models as Anti-Exploration: A Test-Time Scaling Approach2 Dec 2025
- 2025Investigating Test Overfitting on SWE-bench20 Nov 2025
- 2025LiveOIBench: Can Large Language Models Outperform Human Contestants in Informatics Olympiads?10 Oct 2025
- 2025Verifier-free Test-Time Sampling for Vision-Language-Action Models7 Oct 2025
- 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer1 Oct 2025
- 2025Pretraining Scaling Laws for Generative Evaluations of Language Models28 Sep 2025
- 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis25 Sep 2025
- 2025SWE-Exp: Experience-Driven Software Issue Resolution31 Jul 2025
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul 2025
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Tasks14 Jul 2025
- 2025RoboMonkey: Scaling Test-Time Sampling and Verification for Vision-Language-Action Models21 Jun 2025
- 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering29 May 2025
- 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agents19 May 2025
- 2025J1: Exploring Simple Test-Time Scaling for LLM-as-a-Judge17 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2025Putting It All into Context: Simplifying Agents with LCLMs12 May 2025
- 2025Guiding Reasoning in Small Language Models with LLM Assistance14 Apr 2025
- 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflow11 Apr 2025
- 2025Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Use7 Apr 2025
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar 2025
- 2025MutaGReP: Execution-Free Repository-Grounded Plan Search for Code-Use21 Feb 2025
- 2025S*: Test Time Scaling for Code Generation20 Feb 2025
- 2025Otter: Generating Tests from Issues to Validate SWE Patches7 Feb 2025
- 2025S*: Test Time Scaling for Code Generationcited by 95
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2025Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Usecited by 45
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Computecited by 25
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 22
- 2025Steering Vision-Language-Action Models as Anti-Exploration: A Test-Time Scaling Approachcited by 18
- 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineeringcited by 16
- 2025Guiding Reasoning in Small Language Models with LLM Assistancecited by 13
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agentscited by 13
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agentscited by 11
- 2026Scaling Test-Time Compute for Agentic Codingcited by 11
- 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9
12 most cited of 19 All 19 (JSON)
- 2026LatentSift: Policy-State Filtering for Token-Efficient Verification of Software Engineering Agents28 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
- 2026Test-Time Scaling Makes Overtraining Compute-Optimal1 Apr 2026
- 2026The Limits of Long-Context Reasoning in Automated Bug Fixing17 Feb 2026
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents8 Feb 2026
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan 2026
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan 2026
- 2025Steering Vision-Language-Action Models as Anti-Exploration: A Test-Time Scaling Approach2 Dec 2025
- 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer1 Oct 2025
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul 2025
12 newest of 19 All 19 (JSON)
- 2025Putting It All into Context: Simplifying Agents with LCLMscited by 9
- 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflowcited by 7
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generationcited by 2
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discoverycited by 2
- 2026SciNav: A General Agent Framework for Scientific Coding Taskscited by 1
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agentscited by 0
- 2026Learning from Research: Toward Lifelong Agent Harness Evolutioncited by 0
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Taskscited by 0
- 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks1 Oct 2026
- 2026Learning from Research: Toward Lifelong Agent Harness Evolution30 Sep 2026
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discovery2 Jul 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generation15 May 2026
- 2026SciNav: A General Agent Framework for Scientific Coding Tasks11 Mar 2026
- 2025Putting It All into Context: Simplifying Agents with LCLMs12 May 2025
- 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflow11 Apr 2025
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 24
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesiscited by 4
- 2025Pretraining Scaling Laws for Generative Evaluations of Language Modelscited by 4
- 2025Investigating Test Overfitting on SWE-benchcited by 4
- 2025LiveOIBench: Can Large Language Models Outperform Human Contestants in Informatics Olympiads?cited by 3
- 2025Vec-LUT: Vector Table Lookup for Parallel Ultra-Low-Bit LLM Inference on Edge Devicescited by 1
- 2026More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)cited by 1
- 2026Resolving Java Code Repository Issues with iSWE Agentcited by 1
- 2026EvoOtter: Evolutionary Reproduction Test Generatorcited by 1
12 most cited of 15 All 15 (JSON)
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programs24 Jun 2026
- 2026Resolving Java Code Repository Issues with iSWE Agent11 Mar 2026
- 2026On the Feasibility and Opportunity of Autoregressive 3D Object Detection9 Mar 2026
- 2026More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)29 Jan 2026
- 2025Vec-LUT: Vector Table Lookup for Parallel Ultra-Low-Bit LLM Inference on Edge Devices6 Dec 2025
- 2025Investigating Test Overfitting on SWE-bench20 Nov 2025
- 2025LiveOIBench: Can Large Language Models Outperform Human Contestants in Informatics Olympiads?10 Oct 2025
- 2025Pretraining Scaling Laws for Generative Evaluations of Language Models28 Sep 2025
- 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesis25 Sep 2025
- 2025SWE-Exp: Experience-Driven Software Issue Resolution31 Jul 2025
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Tasks14 Jul 2025
12 newest of 15 All 15 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Skywork-SWE: Unveiling Data Scaling Laws for Software Engineering in LLMs
- 2026Code Generation by Differential Test Time Scaling
- 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Go
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
- 2025Dynamic Scaling of Unit Tests for Code Reward Modeling
- 2026SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?
- 2026DAJ: Data-Reweighted LLM Judge for Test-Time Scaling in Code Generation
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery