mlsanityData to 7 Oct 2026

CodeMonkeys: Scaling Test-Time Compute for Software Engineering

arXiv 2501.14723 ↗First posted 24 Jan 2025cs.LGcited by 46

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

  1. 2024Qwen2.5-Coder Technical Report18 Sep

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 24; 2026: 22.

46 papers.

Sort:

By area:

  1. 2025S*: Test Time Scaling for Code Generationcited by 95
  2. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
  3. 2025RoboMonkey: Scaling Test-Time Sampling and Verification for Vision-Language-Action Modelscited by 56
  4. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
  5. 2025Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Usecited by 45
  6. 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
  7. 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Computecited by 25
  8. 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 24
  9. 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 22
  10. 2025Verifier-free Test-Time Sampling for Vision-Language-Action Modelscited by 21
  11. 2025Steering Vision-Language-Action Models as Anti-Exploration: A Test-Time Scaling Approachcited by 18
  12. 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineeringcited by 16
34 more
  1. 2025Guiding Reasoning in Small Language Models with LLM Assistancecited by 13
  2. 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agentscited by 13
  3. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agentscited by 11
  4. 2026Scaling Test-Time Compute for Agentic Codingcited by 11
  5. 2025Putting It All into Context: Simplifying Agents with LCLMscited by 9
  6. 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9
  7. 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflowcited by 7
  8. 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
  9. 2025J1: Exploring Simple Test-Time Scaling for LLM-as-a-Judgecited by 5
  10. 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesiscited by 4
  11. 2025Pretraining Scaling Laws for Generative Evaluations of Language Modelscited by 4
  12. 2025Investigating Test Overfitting on SWE-benchcited by 4
  13. 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
  14. 2025LiveOIBench: Can Large Language Models Outperform Human Contestants in Informatics Olympiads?cited by 3
  15. 2026Test-Time Scaling Makes Overtraining Compute-Optimalcited by 3
  16. 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generationcited by 2
  17. 2026SwarmResearch: Orchestrating Coding Agents for Open-Ended Discoverycited by 2
  18. 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
  19. 2026Prefix Sliding for efficient test-time scalingcited by 2
  20. 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfercited by 1
  21. 2025Vec-LUT: Vector Table Lookup for Parallel Ultra-Low-Bit LLM Inference on Edge Devicescited by 1
  22. 2026More Bang for the Buck: Improving the Inference of Large Language Models at a Fixed Budget using Reset and Discard (ReD)cited by 1
  23. 2026The Limits of Long-Context Reasoning in Automated Bug Fixingcited by 1
  24. 2026Resolving Java Code Repository Issues with iSWE Agentcited by 1
  25. 2026SciNav: A General Agent Framework for Scientific Coding Taskscited by 1
  26. 2026EvoOtter: Evolutionary Reproduction Test Generatorcited by 1
  27. 2025MutaGReP: Execution-Free Repository-Grounded Plan Search for Code-Usecited by 0
  28. 2026On the Feasibility and Opportunity of Autoregressive 3D Object Detectioncited by 0
  29. 2026AlgoEvolve: LLM-driven Meta-evolution of Algorithmic Trading Programscited by 0
  30. 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 0
  31. 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agentscited by 0
  32. 2026LatentSift: Policy-State Filtering for Token-Efficient Verification of Software Engineering Agentscited by 0
  33. 2026Learning from Research: Toward Lifelong Agent Harness Evolutioncited by 0
  34. 2026VeriHarness: Scaling Agentic Verification for Long-Horizon Taskscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Skywork-SWE: Unveiling Data Scaling Laws for Software Engineering in LLMs
  2. 2026Code Generation by Differential Test Time Scaling
  3. 2025Go-UT-Bench: A Fine-Tuning Dataset for LLM-Based Unit Test Generation in Go
  4. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
  5. 2025Dynamic Scaling of Unit Tests for Code Reward Modeling
  6. 2026SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?
  7. 2026DAJ: Data-Reweighted LLM Judge for Test-Time Scaling in Code Generation
  8. 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery