CODE-SHARP trains agents to discover their own skills from source code
The arXiv paper describes a reinforcement learning framework that grows an archive of Python skill programs autonomously, aiming to cut the human engineering behind open-ended agent training.
In plain words
The authors present CODE-SHARP, a training method in which a foundation model writes and refines Python programs that each define a small success condition. These programs chain together, so an agent learns long tasks by mastering only what each new program adds. The paper reports strong benchmark results, though these are the authors' own claims from an abstract.
What was announced
According to the paper's abstract, CODE-SHARP addresses a weakness in existing foundation-model approaches to open-ended skill learning: heavy human-in-the-loop engineering that limits transfer to new environments. The framework instead uses foundation models to grow an archive of Python programs, called SHARPs, each encoding a local success condition with prerequisites delegated to earlier programs. At runtime these programs route the agent through its prerequisite chain, rewarding each completion so the agent learns only the marginal behaviour each new program introduces, without pre-defined rewards.
The reported results come from the authors' own benchmarks. On Craftax-Classic and XLand-MiniGrid, agents trained by CODE-SHARP reportedly outperform previous work by 6x and 2.7x in median performance, and are described as the only agents able to craft iron tools and mine diamonds. On AI2-THOR, the paper claims 66.7% median success versus 0% for ELLM and OMNI, using only the initial environment state rather than full source code. Scaled to Craftax-Extended, the system trained on over 90 discovered SHARPs, which the authors say enabled zero-shot solving of long-horizon tasks matching agents trained on ground-truth rewards.
What it does not show
- Evidence is limited to the paper's abstract; the full methodology, experiments and peer review status are not covered here.
- Reported performance figures and comparisons with ELLM, OMNI and ground-truth-reward agents are the authors' own claims and have not been independently confirmed.
Sources
Source-support review completed 28 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 28 Nov 2026
New to the subject? AI from the Ground Up starts from the beginning.