Metraipolis › archive › dc_0c8e99fd94c4
CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents — arXiv:2609.33243
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.33243
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T20:56:32.338Z
- SHA-256 of the archived text
343e722fb61b838f2b4ac686ea8fa66419f79426ca17009e37cf12527d36ddd4- Stable URL of this page
https://metraipolis.com/documento/dc_0c8e99fd94c4
How to cite
CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents — arXiv:2609.33243 — arXiv (en), https://arxiv.org/abs/2609.33243 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0c8e99fd94c4 (Metraipolis archive dc_0c8e99fd94c4, sha256 343e722fb61b838f2b4ac686ea8fa66419f79426ca17009e37cf12527d36ddd4)
BibTeX
@misc{dc0c8e99fd94c4,
title = {CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents — arXiv:2609.33243},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.33243},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0c8e99fd94c4; sha256 343e722fb61b838f2b4ac686ea8fa66419f79426ca17009e37cf12527d36ddd4},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.33243. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.AI). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.33243 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T20:29:01.177Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).