mlsanityData to 7 Oct 2026

CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents

arXiv 2609.33243 ↗First posted 27 Sep 2026cs.AIcited by 0

On the map: LLM agents and tool use → Reinforcement learning for LLM agents also fits: Agent skill learning and evolution

Abstract (arXiv)

Code agents require long-horizon decision-making over complex interaction trajectories. However, existing reinforcement learning (RL) approaches typically optimize behavior at the token level, creating a mismatch between low-level generation and high-level behavioral reasoning. This limitation leads to inefficient exploration and weak credit assignment under sparse rewards. Moreover, while large-scale agent trajectories often contain recurring multi-step behavioral patterns, their noisy token-level representations hinder effective experience reuse. To address these challenges, we propose CodeSkill, a framework that adapts hierarchical latent skill modeling to the code agent domain. CodeSkill first leverages a teacher model to distill both successful and failed trajectories into multi-level textual abstractions. It then integrates temporal variational inference with reinforcement learning to map these discrete semantics into continuous latent variables, while an adaptive boundary mechanism dynamically gates skill transitions based on execution feedback. The learned skills are injected into a frozen LLM policy as latent semantic prefixes, enabling optimization in a compact semantic space rather than over raw token sequences. By shifting RL from token-level exploration to experience-level reasoning, CodeSkill improves optimization efficiency and long-horizon behavioral coherence. Extensive experiments demonstrate that CodeSkill achieves highly competitive performance against strong open-weight baselines across diverse general and industrial coding benchmarks. Furthermore, the learned skills exhibit strong transferability and robust cross-domain generalization, highlighting the effectiveness of explicit behavioral abstraction for scalable agentic code generation.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 35 of its 47 references that are in the map. First posted on arXiv 27 Sep 2026.

Builds on

35 of 47 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Framework5 Oct
  2. 2025Group-in-Group Policy Optimization for LLM Agent Training16 May

Other references · 33

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  4. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  6. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  7. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  8. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  9. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  10. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  11. 2024A Survey on Large Language Models for Code Generationcited by 646
  12. 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 558
21 more
  1. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
  2. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
  3. 2025Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMscited by 276
  4. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  5. 2026SkillRL: Evolving Agents via Recursive Skill-Augmented Reinforcement Learningcited by 252
  6. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  7. 2026MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agentscited by 129
  8. 2024AgentTrek: Agent Trajectory Synthesis via Guiding Replay with Web Tutorialscited by 123
  9. 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
  10. 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 65
  11. 2026Qwen3-Coder-Next Technical Reportcited by 60
  12. 2024FullStack Bench: Evaluating LLMs as Full Stack Coderscited by 56
  13. 2025CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Rewardcited by 53
  14. 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 46
  15. 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agentscited by 35
  16. 2026daVinci-Dev: Agent-native Mid-training for Software Engineeringcited by 15
  17. 2025RealBench: Benchmarking Verilog Generation Models with Real-World IP Designscited by 14
  18. 2025KAT-Coder Technical Reportcited by 7
  19. 2025ArchXBench: A Complex Digital Systems Benchmark Suite for LLM Driven RTL Synthesiscited by 6
  20. 2024Explainable Behavior Cloning: Teaching Large Language Model Agents through Learning by Demonstrationcited by 4
  21. 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026CODESKILL: Learning Self-Evolving Skills for Coding Agents
  2. 2026Up and Down the Abstraction Ladder: Code-Based Skills for Language Agents
  3. 2025Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
  4. 2026MASkills: Continual Skills Optimization for Multi-Agent LLM Systems
  5. 2026Agent Skills for Large Language Models: Architecture, Acquisition, Security, and the Path Forward
  6. 2026OPID: On-Policy Skill Distillation for Agentic Reinforcement Learning
  7. 2026Grounded Skill Synthesis from Code at Scale for Agentic Intelligence
  8. 2026LatentSkill: From In-Context Textual Skills to In-Weight Latent Skills for LLM Agents