COBRA-Skills: Contextual Bandits for Efficient Agent Skill Optimization (Open Source)

Reddit r/artificial Papers

Summary

The article presents COBRA-Skills, a method using contextual bandits to efficiently optimize agent skills, reducing costs by avoiding repeated LLM-based trajectory analysis and skill rewriting.

We’ve been exploring how to make Agent Skill optimization more efficient. A lot of existing methods follow a generate–execute–analyze–refine loop: candidate skills are executed on real tasks, failure traces are analyzed, and the skills are repeatedly rewritten. This can work well, but it also gets expensive quickly. COBRA-Skills treats this as a sequential budget-allocation problem: which skill is most worth evaluating next? Our loop is roughly: Maintain a population of candidate skills Use a neural predictor to estimate skill utility Use LinearUCB to balance exploitation and exploration Evaluate only the selected skill on the target agent Reuse execution feedback for scheduled regeneration, mutation, and crossover We tested it on 6 agent benchmarks spanning search QA, spreadsheets, document understanding, math reasoning, social reasoning, and embodied tasks, across 3 target models. Main results: Best average performance among the compared methods ~55–58% lower optimization cost than SkillOpt Only 50 optimization examples per benchmark Still works under Codex and Claude Code harnesses Also remains effective when the target model itself is used for skill generation and refinement One thing we found interesting is that the main gain is not simply from reducing target-agent executions. A large part of the cost reduction comes from avoiding repeated LLM-based trajectory analysis and skill rewriting. Paper: https://arxiv.org/abs/2609.11682 Code: https://github.com/Jerry-LuP/COBRA-Skills HF: https://huggingface.co/papers/2609.11682 Would be interested in feedback, especially from people working on Agent Skills, prompt optimization, or contextual bandits.
Original Article

Similar Articles

SkillOpt: Executive Strategy for Self-Evolving Agent Skills

Hugging Face Daily Papers

SkillOpt introduces a systematic text-space optimizer for agent skills that trains skills as external agent state with stable updates and zero deployment inference overhead, achieving superior performance across multiple benchmarks and execution environments.

Bayesian-Agent: Posterior-Guided Skill Evolution for LLM Agent Harnesses

Hugging Face Daily Papers

Bayesian-Agent presents a framework that treats reusable skills and SOPs as hypotheses, using Bayesian inference to guide agent behavior and improve task performance through posterior-guided harness optimization. It achieves significant improvements on multiple benchmarks with deepseek-v4-flash.