PatchHolmes: Agentic Patch Retrieval via Listwise Selection
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Patch retrieval, the task of finding the commit that fixes a known vulnerability, is the foundation of vulnerability management workflows, yet 60% to 63% of CVEs in the major advisory databases lack a patch link. We present PatchHolmes, a two-phase patch retrieval system that pairs a hybrid first-stage retriever with an agentic second-stage inspection loop. Unlike pointwise prior work that scores each candidate independently, the Phase 2 agent reads the top-100 listwise: it sees the full candidate list at once and selectively reads 3 to 10 commits through four budgeted tools before submitting a single best commit. On GitHubAD, PatchHolmes beats the pointwise binary classifier Favia by 25.34% Recall@1 and the retrieve-and-CoT baseline IRCoT by 31.40%, at one agent conversation per CVE versus Favia's ten; with the candidate set held identical, the agent adds 27.32% Recall@1 over taking the retriever's top candidate, and the same agent, transferred unchanged to PatchFinder_top10, lifts Recall@1 from PatchFinder's own top-1 pick (24.28%) to 39.86%. Swapping the LLM backbone within the Qwen family changes Recall@1 by under 1%, and a second model family (gpt-oss) stays far above the no-agent floor, so the gain comes from the listwise agent loop; the entire system runs on a frozen open-weight model over a local Git repository, without fine-tuning or external search APIs.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 27 references that are in the map. First posted on arXiv 30 Sep 2026.
Builds on
17 of 27 references.
Closest ancestors · 1
Same direction, newest first
Other references · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 183
- 2024FlashRAG: A Modular Toolkit for Efficient Retrieval-Augmented Generation Researchcited by 165
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrievalcited by 153
- 2025Tool-integrated Reinforcement Learning for Repo Deep Searchcited by 14
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
- 2025The Landscape of Toxicity: An Empirical Investigation of Toxicity on GitHubcited by 2
4 more
- 2024Incivility in Open Source Projects: A Comprehensive Annotated Dataset of Locked GitHub Issue Threadscited by 1
- 2024Can Highlighting Help GitHub Maintainers Track Security Fixes?cited by 1
- 2025SPFinder: Improving the Context Length and Scalability for Tracing Known Vulnerability Patchescited by 1
- 2026Favia: Forensic Agent for Vulnerability-fix Identification and Analysiscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026AgentSZZ: Teaching the LLM Agent to Play Detective with Bug-Inducing Commits
- 2026MAS-SZZ: Multi-Agentic SZZ Algorithm for Vulnerability-Inducing Commit Identification ↗
- 2026RAVEN: Agentic RAG for Automated Vulnerability Repair
- 2026The History Is the Detector: Executing CVE Patch History, End-to-End
- 2026BLAgent: Agentic RAG for File-Level Bug Localization
- 2026AgenticRepair: Multi-Faceted Program Context Engineering for Agentic Vulnerability Repair
- 2026AgenticSZZ: Temporal Knowledge Graph-Guided Agentic Bug-Inducing Commit Identification
- 2026Patch2Vuln: Agentic Reconstruction of Vulnerabilities from Linux Distribution Binary Patches