Towards Agentic Runtime Healing
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Self-healing systems have long been a focus of research, aiming to enable software to recover from unexpected runtime errors without human intervention. Traditional approaches rely on predefined heuristic rules, such as reusing error handlers or rolling back to checkpoints, but these methods struggle to adapt to the diverse range of runtime errors. The emergence of Large Language Models offers a new opportunity to address this challenge. Leveraging their ability to understand and generate code and natural language, we propose using LLMs to dynamically generate error-handling strategies in real time, tailored to specific runtime contexts such as error messages and program states. We demonstrate the feasibility of this approach by designing such a framework, Healer, and empirically showing that it can handle runtime errors with a high success rate. When an unanticipated runtime error occurs, Healer leverages its internal LLM to generate bespoke error-handling code. The generated healing code is then executed to produce a corrected program state, allowing the program to continue execution with minimal disruption. We evaluate Healer across four code datasets and three state-of-the-art LLMs (GPT-3.5, GPT-4, and CodeQwen-7B), where GPT-4 can successfully recover from 72.8% of runtime errors, underscoring the promise of LLMs in this domain. Despite these promising results, challenges remain, particularly regarding the trustworthiness of LLM-generated code and its integration into existing systems. We mention potential solutions, such as safety checks and Healer-aware programming, to mitigate risks and ensure reliable operation. This work represents the first step toward agentic runtime healing, paving the way for more adaptive, resilient, and self-healing software systems.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 40 references that are in the map. First posted on arXiv 2 Aug 2024.
Builds on
13 of 40 references.
Closest ancestors · 1
Same direction, newest first
Other references · 12
- 2023GPT-4 Technical Reportcited by 18,132
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Mistral 7Bcited by 3,065
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2021Pruning and Quantization for Deep Neural Network Acceleration: A Surveycited by 259
- 2024Robustness, Security, Privacy, Explainability, Efficiency, and Usability of Large Language Models for Codecited by 26
- 2022Compressing Pre-trained Models of Code into 3 MBcited by 21
- 2023LExecutor: Learning-Guided Executioncited by 7
- 2022Preliminary Results of a Survey on the Use of Self-Adaptation in Industrycited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 2.
7 papers.
- 2026Code as Agent Harnesscited by 40
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
- 2025PALADIN: Self-Correcting Language Model Agents to Cure Tool-Failure Casescited by 21
- 2025SHIELDA: Structured Handling of Exceptions in LLM-Driven Agentic Workflowscited by 12
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Codecited by 10
- 2024Creating and Repairing Robot Programs in Open-World Domainscited by 0
- 2026Retrofitting Code Using LLMs to Support Exceptional Behaviorcited by 0
- 2026Retrofitting Code Using LLMs to Support Exceptional Behavior9 Sep 2026
- 2026Code as Agent Harness18 May 2026
- 2025PALADIN: Self-Correcting Language Model Agents to Cure Tool-Failure Cases25 Sep 2025
- 2025SHIELDA: Structured Handling of Exceptions in LLM-Driven Agentic Workflows11 Aug 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Code27 Mar 2025
- 2024Creating and Repairing Robot Programs in Open-World Domains24 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2026Trustworthy Runtime Error Healing in Real-World Repositories: A Benchmark and Guardrail
- 2026Self-Healing Agentic Orchestrators for Reliable Tool-Augmented Large Language Model Systems
- 2026A Self-Healing Framework for Reliable LLM-Based Autonomous Agents
- 2026AgentTether: Graph-Guided Diagnosis and Runtime Intervention for Reliable LLM Agent Operation
- 2026When Errors Become Narratives: A Longitudinal Taxonomy of Silent Failures in a Production LLM Agent Runtime
- 2025InspectCoder: Dynamic Analysis-Enabled Self Repair through interactive LLM-Debugger Collaboration
- 2025A Survey of LLM-based Automated Program Repair: Taxonomies, Design Paradigms, and Applications
- 2025VIGIL: A Reflective Runtime for Self-Healing Agents