Harnessing LLM Agents with Skill Programs
cs.AI
Submitted: 2026-05-18
Updated: 2026-09-28
Comments: 40 pages, 7 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: Equipping LLM agents with reusable skills derived from past experience has become a popular and successful approach for tackling complex and long-horizon tasks.
Terminology
Abstract
Equipping LLM agents with reusable skills derived from past experience has become a popular and successful approach for tackling complex and long-horizon tasks. However, such lessons are often encoded as textual guidance that remains largely advisory, lacking explicit mechanisms for when and how to intervene in the agent loop. To bridge the gap, we introduce HASP(Harnessing LLM Agents with Skill Programs), a new framework that upgrades skills into executable Program Functions (PFs). Rather than offering passive advice, PFs act as executable guardrails that activate on failure-prone states and modify the next action or inject corrective context. HASP is highly modular: it can be applied at inference time for direct agent-loop intervention, during post-training to provide structured supervision, or for self-improvement by evolving validated, teacher-reviewed PFs. Empirically, HASP drives substantial gains compared to both training-free and training-based methods on web-search, math reasoning, and coding tasks. For example, on web-search reasoning, inference-time PFs alone improve the average performance by 25% compared to (multi-loop) ReAct Agent, while post-training and controlled evolution achieve a 30.4% gain over Search-R1. To provide deeper insights into HASP, our mechanism analysis reveals how PFs trigger and intervene, how skills are internalized, and the requirement for stable skill library evolution.
Sources
- Program Synthesis with Large Language Models
- Evaluating Large Language Models Trained on Code
- ReSearch: Learning to Reason with Search for LLMs via Reinforcement Learning
- ReCode: Reinforcing Code Generation with Reasoning-Process Rewards
- BioKD: Selective Physiology-to-Video Knowledge Distillation via Reliability Gate for Emotion Recognition
- Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Model
- GPT-4o System Card
- VerlTool: Towards Holistic Agentic Reinforcement Learning with Tool Use
- Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning
- SwarmSys: Decentralized Swarm-Inspired Agents for Scalable and Adaptive Reasoning
- ToRL: Scaling Tool-Integrated RL
- In-the-Flow Agentic System Optimization for Effective Planning and Tool Use
- SUCEA: Reasoning-Intensive Retrieval for Adversarial Fact-checking through Claim Decomposition and Editing
- MedMMV: A Controllable Multimodal Multi-Agent Framework for Reliable and Verifiable Clinical Reasoning
- SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization
- General-Reasoner: Advancing LLM Reasoning Across All Domains
- Qwen2.5 Technical Report
- Toolformer: Language Models Can Teach Themselves to Use Tools
- Reflexion: Language Agents with Verbal Reinforcement Learning
- ZeroSearch: Incentivize the Search Capability of LLMs without Searching
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems