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.
Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen)(深圳未来智能网络研究院(深圳FNii));Sun Yat-sen University(中山大学)
DIRO & Institut Courtois, Université de Montréal(DIRO与Courtois研究所,蒙特利尔大学);Mila – Québec AI Institute(魁北克人工智能研究所);Microsoft Research(微软研究院);Canada CIFAR AI Chair(加拿大CIFAR人工智能主席)
Lifting Traces to Logic: Programmatic Skill Induction with Neuro-Symbolic Learning for Long-Horizon Agentic Tasks
State Key Laboratory of Novel Software Technology, Nanjing University, China(新型软件技术国家重点实验室,南京大学);School of Artificial Intelligence, Nanjing University, China(人工智能学院,南京大学);School of Intelligence Science and Technology, Nanjing University, China(智能科学与技术学院,南京大学);Centre for Frontier AI Research(前沿人工智能研究中心);Institute of High Performance Computing, Agency for Science, Technology and Research, Singapore(高性能计算研究所,新加坡科技研究局);Department of Computer Science and Engineering, Hong Kong University of Science and Technology, China(香港科学与技术大学计算机科学与工程系)
Harnessing AtomisticSkills for Agentic Atomistic Research
Department of Materials Science;Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139, USA;Department of Chemical Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139, USA;Department of Chemistry, Kookmin University, Seoul 02707, Republic of Korea;Harvard University, Department of Chemistry;Department of Chemistry, Massachusetts Institute of Technology, Cambridge, MA 02139, USA;Department of Nuclear Science;Shell Information Technology International Inc., Texas 77082, United States;Shell International Exploration \& Production Inc., Texas 77079, United States
Harnessing agent memory to build lifelong AI partners for materials scientists
The University of Hong Kong(香港大学);Materials Innovation Institute for Life Sciences and Energy (MILES), HKU-SIRI(香港大学-深圳国际研究院生命科学与能源材料创新研究院);International Digital Economy Academy (IDEA)(国际数字经济学院)