potentialpaper

CODE-SHARP: Continuous Open-ended Discovery and Evolution of Skills as Hierarchical Reward Programs

Richard Bornemann, Pierluigi Vito Amadori, Antoine Cully

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. CODE-SHARP uses FMs to autonomously discover and evolve a hierarchical skill archive, training a goal-conditioned agent from scratch to solve increasingly complex long-horizon tasks without any hand-crafted rewards, APIs, or pre-trained models.

Abstract. A core quality of general intelligence is the ability to open-endedly expand and evolve its set of mastered skills autonomously. While recent Foundation Model (FM) driven approaches have shown promising results towards this goal, they typically rely on significant human-in-the-loop engineering, limiting their transferability to novel environments. To address this, we introduce Continuous Open-ended Discovery and Evolution of Skills as Hierarchical Reward Programs (CODE-SHARP), a framework that leverages FMs to open-endedly grow and evolve an archive of Python programs encoding skills to train a generalist agent policy entirely from scratch via reinforcement learning, directly from source code. These programs, termed Skills as Hierarchical Reward Programs (SHARPs), each encode a local success condition and a set of prerequisites delegated to previously discovered SHARPs. At runtime, SHARPs dynamically route the agent through their prerequisite chain based on the current state, rewarding each completion along the way, requiring the agent to learn only the marginal behaviour each new SHARP introduces, enabling efficient learning of long-horizon skills without any pre-defined rewards. On Craftax-Classic and XLand-MiniGrid, agents trained fully autonomously by CODE-SHARP outperform previous works by 6x and 2.7x in median performance and are the only agents capable of crafting iron tools and mining diamonds. On AI2-THOR, CODE-SHARP achieves 66.7% median success versus 0% for ELLM and OMNI, using only the initial environment state instead of the full source code. Scaled to Craftax-Extended, CODE-SHARP trains a generalist agent on over 90 discovered SHARPs, enabling the agent to solve challenging long-horizon tasks zero-shot, matching agents trained on ground-truth rewards.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
2 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

There are both positive and negative scores. After reading the paper and the reviews, I feel the authors may need to address the following points in the rebuttal:

  1. Since the framework relies heavily on FMs to generate goal conditions and prerequisites, how often do wrong specifications occur in practice, and how are they detected and corrected? It would also be helpful to discuss the sensitivity to prompt design and FM choice.
  2. The requirement of access to environment source code seems to be a strong assumption. Can the method be extended to settings where only information available to a human player is provided?
  3. Several reviewers mentioned SCALAR (NeurIPS 2025 Workshop). The authors may need to better position their work relative to SCALAR and, if possible, provide a comparison or explain why such a comparison is not included.
  4. Some experimental details may also require clarification, such as the use of the minimum health threshold and the scalability of the overall framework.
Final justification

I think the rebuttal successfully addresses most of the concerns raised during the review process. In particular, the authors provide a detailed analysis of errors in FM-generated goal conditions and prerequisites, as well as new experiments examining the dependence of CODE-SHARP on source-code access. The authors also clarify why SCALAR was not included in the original set of comparisons. Overall, both the reviewers and I find the additional analysis and experiments convincing. As a result, I am inclined to support acceptance.

Area Chair cgXL · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

There are both positive and negative scores. After reading the paper and the reviews, I feel the authors may need to address the following points in the rebuttal:

  1. Since the framework relies heavily on FMs to generate goal conditions and prerequisites, how often do wrong specifications occur in practice, and how are they detected and corrected? It would also be helpful to discuss the sensitivity to prompt design and FM choice.
  2. The requirement of access to environment source code seems to be a strong assumption. Can the method be extended to settings where only information available to a human player is provided?
  3. Several reviewers mentioned SCALAR (NeurIPS 2025 Workshop). The authors may need to better position their work relative to SCALAR and, if possible, provide a comparison or explain why such a comparison is not included.
  4. Some experimental details may also require clarification, such as the use of the minimum health threshold and the scalability of the overall framework.
Final justification

I think the rebuttal successfully addresses most of the concerns raised during the review process. In particular, the authors provide a detailed analysis of errors in FM-generated goal conditions and prerequisites, as well as new experiments examining the dependence of CODE-SHARP on source-code access. The authors also clarify why SCALAR was not included in the original set of comparisons. Overall, both the reviewers and I find the additional analysis and experiments convincing. As a result, I am inclined to support acceptance.

2 comments
Authors · CommentOpenReview ↗

We thank the AC for the clear synthesis. We address each point below with results from new experiments, and point to the detailed responses in the reviewer threads.

1. Detection and correction of misspecifications, sensitivity to prompts and FM choice

The LLM judge evaluates each SHARP on three objectives: Novelty (no duplicates), Correctness (goal-state predicate matches intended skill), and Feasibility (preconditions present and reachable). We audited the judge across all environments, including AI2-THOR, a new 3D photorealistic robotics environment added during rebuttal.

Gate Craftax-Classic XLand AI2-THOR
Novelty 0.0% 0.0% 4.6%
Correctness 9.6% 0.0% 0.0%
Feasibility 7.1% 11.7% 18.9%

Judge errors are mitigated by three downstream mechanisms: the learnability gate, the skill sampling and the mutation loop. Feasibility misjudgments are caught by the learnability gate. Correctness errors are limited to Craftax mob eliminations and produce goal states satisfied in nearly every state, which our opportunistic sampling excludes from training. Suboptimal skills that pass all gates are refined by the mutation loop, which preferentially revisits low-success-rate SHARPs.

On FM sensitivity, Qwen3.5-27B with unchanged prompts matches Qwen3-235B (0.733 vs 0.672 mean), indicating prompts are not overly tuned to a specific model. The same prompts transfer successfully across Craftax, XLand, and AI2-THOR.

Judge analysis: KF5n (W1, Q2). Prompt and model ablations: qzvw (Q1, Q4).

2. Sensitivity to source-code access

We ran two new experiments. The first removes source-code access from CODE-SHARP, leaving only the environment state as context.

Method Mean Median
ELLM 0.389 0.065
OMNI 0.392 0.159
CODE-SHARP Qwen3.5 27b, NO source code 0.623 0.968
CODE-SHARP Qwen3.5 27b, FULL source code 0.733 0.963

CODE-SHARP still outperforms both baselines, which retail access. What degrades is coverage rather than competence. Median performance remains comparable, while the mean drops due to advanced skills like the crafting of iron tools never being successfully generated, as here the LLM falls back on Minecraft recipes Craftax does not share.

Second, we applied CODE-SHARP to AI2-THOR, where full source code access is infeasible in principle. We supply only the opening-frame state dictionary, so proposals rely entirely on FM priors about kitchen objects and how they might interact.

Method Mean Median
OMNI 0.200 0.000
CODE-SHARP 0.542 0.719
Method d1 d2 d3 d4+
OMNI 0.315 0.241 0.024 0.000
CODE-SHARP 0.887 0.472 0.303 0.049

The margin widens with the depth of prerequisites required for achievements, from 2.8x at depth 1 to 12.6x at depth 3, with no OMNI successes beyond. Together, these experiments show that source-code access improves performance when LLM priors do not perfectly align with environment dynamics but is not a prerequisite for CODE-SHARP.

Full experiments: qzvw (W1, Q6).

Authors · CommentOpenReview ↗

3. Positioning relative to SCALAR

SCALAR receives a human-defined target skill, from which it plans over the provided Craftax achievements to create a bounded set of candidate sub-skills. Skills unrelated to the target are never trained, as its authors note (App. B.4, Figs. 12-13). CODE-SHARP receives no target and no human-defined achievements, and curates an open-endedly growing set of diverse skills fully autonomously.

SCALAR CODE-SHARP
Human input Game manual, all 22 achievements, target skill, predicate schema Environment source code
Skills learned Only prerequisites of the hand-defined target Any discovered skills showing learning progress
Skill space Bounded, fixed before training Unbounded, grown continuously
Skill representation STRIPS operators, hand-specified predicates Python programs over raw environment state
Prerequisites Planned offline, order fixed Resolved recursively, every step
Environment access Restarts from saved checkpoints None assumed

Following Reviewer KF5n's request, we compared the two methods on diamond mining. Doing so requires transferring CODE-SHARP into SCALAR's goal-conditioned setting, which is neither the setting CODE-SHARP is designed for nor how our main results are obtained.For each of our five Craftax-Classic runs, we keep the discovered archive and continue training only on the discovered diamond-mining skills. The reward functions, prerequisite chains and skills remain entirely those produced during autonomous discovery; only the sampling distribution changes. No hand-defined reward function, goal state or task specification is supplied at any stage, and the goal enters only through which existing skills are sampled once discovery has concluded.

Method Discovery steps Task steps Total steps Diamond success rate
CODE-SHARP 1e8 2e8 3e8 63.2% ± 2.14%
SCALAR 0 1e9 1e9 45%*

* Transformer-XL, SCALAR Table 1. No standard deviations reported.

Agents fine-tuned on the diamond mining skills discovered by CODE-SHARP exceed SCALAR by 18.2 percentage points while using 30% of the total environment steps. These results highlight how CODE-SHARP's skill discovery phase can serve as an effective autonomous pre-training stage, in which diverse skills are discovered without external objectives and specialist agents can then be fine-tuned directly on any skill of interest.

However, despite these results, we argue that for CODE-SHARPs intended objective of open-ended autonomous skill discovery, ELLM and OMNI remain the most principled available baselines.

Full comparison and baseline justification: uWah (W2, W3, Q1, Q2). Diamond comparison: KF5n.

4. Experiment design and scalability

The health threshold applies only to Craftax-Extended. Our Craftax-Classic experiments, including the SCALAR comparison above, use standard rules with no modifications, requiring agents to manage health, hunger, thirst and fatigue while avoiding hostile mobs. XLand and AI2-THOR likewise use original dynamics. Experiments retaining full survival requirements are hence provided in our Craftax-Classic results.

Our Craftax-Extended experiment aims to address the question whether skill generation continues to produce increasingly complex skills over long horizons. Under frequent death, a stall in skill discovery is consistent both with an agent that has not learned to survive and with CODE-SHARP proposing misspecified skills, and the two cannot be disentangled. The threshold removes that confound, is applied identically to all baselines, and follows OMNI's protocol in Crafter (Zhang et al. 2023, Sec. 4.1).

Regarding scalability: Sec. 4 of our manuscript probes scalability over 100 iterations, with archive and agent performance still growing as CODE-SHARP discovers novel skills. LLM costs per 25-iteration run are 18.50 US dollars (Qwen3-235B) and 13.25 US dollars (Qwen3.5-27B).

Costs: uWah (W4). Threshold: KF5n (W4).

Reviewer Discussion

During the rebuttal, Reviewer qzvw indicated they are fully satisfied with our rebuttal response and and Reviewer KF5n raised their score based on our additional experiments. We have provided Reviewer uWah with detailed responses to each of their points, including the direct SCALAR comparison, and hope to hear from them before the discussion period closes.

Reviewer uWahOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This article proposes the CODE-SHARP framework, which utilizes large language models (FM) to automatically generate hierarchical Python reward programs (SHARPs) for continuous training of general reinforcement learning agents in an open-ended manner. CODE-SHARP has achieved significant performance improvements compared to ELLM and OMNI in multiple environments.

Strengths and weaknesses

S1: The long-term experimental scale of Craftax Extended is relatively large (90 SHARPs, 2 billion training steps), providing strong open-ended validation validation and convincing zero-shot results.

W1: The readability of the chart is poor, and the font size is too small.

W2: SCALAR (NeurIPS 2025 Workshop) also proposed an LLM driven hierarchical skill discovery framework with preconditions on Craftax, which highly overlaps with the core idea of this paper. This article does not mention the difference between Related Work and SCALAR, nor does it explain why a comparison was not made, which is a serious omission.

W3: The paper mainly compares ELLM (ICML 2023) and OMNI (2023), while several strongly related works in the same direction have been published between 2024 and 2026, including EUREKA (ICLR 2024), ARM-FM (ICLR 2026), and SCALAR (NeurIPS 2025 Workshop).

W4: The paper provides a detailed description of the computational complexity of RL training, but lacks a systematic analysis of the total number of FM inference calls, token consumption, and time cost, making it difficult to evaluate the actual scalability of the method.

Questions

Q1: There is a significant overlap between this article and SCALAR (NeurIPS 2025 Workshop) in terms of core framework, including key designs such as LLM generating skills with prerequisites and training RL agents on Craftax. Why did the author not mention SCALAR in both related work and experiments? What is the essential difference between the two?

Q2: The experimental comparison does not include SCALAR and ARM-FM, both of which are directly related to the core issue of FM automatic generation of structured reward codes in this paper. Does the author believe that the existing selection of comparison methods is sufficient? If convincing reasons can be given to explain why ELLM and OMNI are sufficient to represent the current strongest baseline, I will reassess my judgment on the experimental part.

Limitations

No

Final justification

While the authors provided substantial additional experiments during the rebuttal (judge audit, AI2-THOR transfer, no-source-code ablation, and a diamond-mining comparison against SCALAR), these experiments go beyond the scope of the original submission; I encourage the authors to formally incorporate them in a future version of the paper. The core concern regarding originality and positioning relative to SCALAR also remains unresolved: the diamond-mining comparison relies on restricting the sampling distribution to diamond-related SHARPs during fine-tuning, which constitutes implicit goal conditioning and is therefore not a fair like-for-like comparison against SCALAR's fully goal-directed setting. It shows only that CODE-SHARP's discovered archive is useful as pretraining for downstream goal-directed fine-tuning, not that CODE-SHARP outperforms SCALAR under equivalent open-ended constraints. Furthermore, no variance is reported for the SCALAR baseline, and whether it might converge earlier than its full step budget is not addressed, limiting the strength of the claimed 18.2pp gap. Based on these unresolved issues, I maintain my original score.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for engaging with our work. We appreciate the positive comments regarding our work, specifically pointing out our thorough evaluations "providing strong open-ended validation and convincing zero-shot results". Based on the reviewer's feedback, we believe we can significantly strengthen our manuscript, specifically regarding the related works mentioned. In the following, we will address each comment in detail.

W1: Chart readability

We agree with the reviewer that the charts in their current form are small and difficult to read. We will adjust their size as well as the text font size to increase readability.

W2 and Q1: Comparison to SCALAR

We thank the reviewer for bringing SCALAR to our attention. We were not aware of SCALAR at the time of writing our manuscript. We agree with the reviewer that it is indeed very relevant to our work, yet significantly different, and will add a detailed discussion of SCALAR to our related works. We believe, however, that the two works target fundamentally different problem settings, resulting in key differences that we will describe in detail below.

While the two methods operate in a similar context, they differ profoundly in their settings and objectives. SCALAR is given a specific goal state and learns only the skills required to achieve it. Given a target skill, gg, a STRIPS planner works backwards from it, and candidate skills are drawn from a human-authored taxonomy in the proposal prompt, which lists all 22 Craftax achievements by name (SCALAR, App. E.1). Skills off that path are never explicitly proposed or trained. In contrast, CODE-SHARP is precisely designed for a diversity focused open-ended objective, where no external human-defined goals are provided. It is designed to discover novel skills autonomously and open-endedly and use them to train a generalist agent in the absence of any human-defined objective. Every achievement or human-defined reward reference is removed from the environment context; skills enter the archive on a learning-progress criterion alone, and the archive grows open-endedly with no fixed goal skill as the target.

In the following table, we describe the key differences in algorithm design resulting from these opposed objectives.

SCALAR CODE-SHARP
Objective A specific goal state gg or target description Open-ended autonomous discovery of skills with no external goal
Skills learned Focused on skills which are direct prerequisites to gg Any skills deemed interesting and showing learning progress (τ=0.05\tau = 0.05)
Skill space Bounded set specified before training Unbounded and continuously grown
Skill representation STRIPS operators over a hand-specified predicate vocabulary (has, placed, near) Arbitrary Python programs over raw environment state, written from source code
Human input Game manual, achievements, target skill, predicate schema Environment source code (+ optional tutorial)
Prerequisite resolution Offline STRIPS plan before episode start; execution order fixed at training time Recursive transition operator T\mathcal{T}, re-evaluated every environment step
Policy Per-skill experts; curriculum trains one skill at a time Single goal-conditioned generalist policy trained on the whole archive
Refinement Trajectory analysis corrects quantitative errors within the fixed vocabulary FM mutation of program structure, evaluated zero-shot
Environment access assumption Assumes ability to restart episodes from checkpointed environment states No environment access assumed

The opposite objectives are equally visible in the reported evaluations. SCALAR's authors note explicitly that skills not relevant to the pre-specified goal are never acquired. Under the goal Collect Diamond, the agent reaches near-zero success on crafting swords (SCALAR, App. B.4, Fig. 12), and under Enter Gnomish Mines, it skips iron tool crafting entirely (SCALAR, App. B.4, Fig. 13). Section 5.2 gives the same account of the Enter Dungeon result, where overworld combat does not lie on the prerequisite chain and is therefore not learned. These outcomes are a direct expression of the method's goal-directed design. CODE-SHARP, by contrast, is designed to autonomously discover diverse skills in the absence of any pre-defined goals, which is reflected in our presented results. A single agent trained exclusively on skills discovered by CODE-SHARP without any pre-defined goals, reaches 94.8% median success across all 22 Craftax-Classic achievements (CODE-SHARP, Fig. 3a). We would like to stress that in contrast to SCALAR, none of those achievements is ever supplied to the system or used as a training signal, but instead serve only as a post-hoc performance proxy for whether the autonomously discovered skills align with behaviours humans independently regard as meaningful.

W3 and Q2: Choice of baselines

SCALAR, EUREKA and ARM-FM share the same problem setting in which a goal is provided externally, and the FM's role is to propose and optimise a set of skills or sub-objectives required to achieve it. EUREKA searches over reward code for a given task; ARM-FM constructs reward machines from given natural-language specifications; SCALAR plans backwards from a given goal state and trains only the skills on the path to it. All the above methods assume the goal or task as an input and their contributions lie in how effectively it is decomposed into hierarchical sub-objectives.

CODE-SHARP is designed for the setting in which exactly such pre-defined objectives do not exist a priori. No external task is provided at any point, and the framework exists to discover skills open-endedly and train a generalist agent precisely where no human-defined objective is available. There is therefore no fair basis for a direct comparison: running SCALAR, EUREKA or ARM-FM would require us to author the very objectives whose absence defines our setting, while supplying CODE-SHARP with a goal would remove the open-endedness under evaluation. Either way, the resulting numbers would not allow for a fair comparison between CODE-SHARP and the mentioned related works.

To our best knowledge, ELLM and OMNI are the only prior methods that generate their own objectives and train an agent from scratch on the resulting rewards, which is why we regard them as the strongest available baselines here. Both are also diversity-driven in the same sense as our evaluation is: ELLM rewards the agent for achieving diverse FM-suggested goals derived from the current state, and OMNI selects skills by FM-judged interestingness and learnability. We additionally report CODE-FRP, an internal ablation in which FM-generated skills are specified as flat, fully enumerated prerequisite chains rather than hierarchically. This isolates the structured-reward-code mechanism the reviewer raises under identical FM, environments, architecture and training budget.

We will revise our related works to highlight these fundamental differences in objectives more directly.

W4: Detailed breakdown of LLM costs

We agree with the reviewer that a discussion of the LLM resources required by CODE-SHARP is warranted and will add a detailed breakdown of the average token usage of Qwen3 235b-a22b-thinking-2507 per iteration for Craftax to our manuscript. We also provide a cost estimate for the smaller Qwen3.5-27b model which achieves similar performance on our evaluations in our response to reviewer qzvw. We computed the following average values, with the token cost taken from OpenRouter on the 25th of July 2026.

per iteration per 25-iter run
input tokens 0.73M 18.25M
output tokens 0.25M 6.25M
LLM calls 27.4 685
cost (Qwen3-235b) $0.74 $18.50
cost (Qwen3.5-27B) $0.53 $13.25

FM generation takes approximately 30 minutes per iteration with Qwen3-235b and approximately 5 minutes per iteration with Qwen3.5-27b, on four A6000 Blackwell GPUs.

Authors · CommentOpenReview ↗

Dear Reviewer uWah,

Thank you again for your review. Prompted by a related request from another reviewer, we conducted an additional experiment comparing CODE-SHARP to SCALAR on the diamond mining task, which bears directly on W3 and Q2.

As detailed in our rebuttal, a framework-level comparison remains unavailable. SCALAR cannot be run in our setting, which supplies no objective to plan backwards from, and CODE-SHARP's discovery phase cannot be run under an external goal without removing the open-endedness under evaluation. Neither change is made below. CODE-SHARP’s skill discovery phase is unmodified and goal-free. What we report is a comparison of what the two methods produce, not of how they operate. To this end, we evaluate agents fine-tuned on the diamond mining skills autonomously discovered by CODE-SHARP against the agents SCALAR trained specifically for diamond mining as the target skill.

We start from the agents trained during CODE-SHARP's autonomous skill discovery phase and fine tune them while sampling only the diamond mining skills and their prerequisite skills that CODE-SHARP itself discovered. At no point do we provide a manually designed reward function, goal specification, or task description. The skills, their reward programs, and their prerequisite chains are all products of the autonomous discovery phase. The only modification is restricting the sampling distribution over the existing skill archive to this subset of skills. This produces a downstream training protocol as close as possible to SCALAR's while preserving the fundamental distinction between the two approaches. We fine-tune for an additional 2e8 steps, bringing CODE-SHARP's total training budget to 3e8 against SCALAR's 1e9 environment steps.

We compare our results to those reported by SCALAR for the Transformer XL, as CODE-SHARP employs the same architecture. All results are obtained on Craftax-Classic without modifying the environment dynamics or survival constraints. Fine tuning results are reported over the original five CODE-SHARP runs.

Method Discovery steps Task steps Total steps Diamond success rate
CODE-SHARP 1e8 2e8 3e8 63.2% ± 2.14%
SCALAR 0 1e9 1e9 45%*
*Reported by SCALAR (Zabounidis et al., 2026, Table 1). No standard deviation is reported.

Agents fine-tuned on the diamond mining skills discovered autonomously by CODE-SHARP exceed SCALAR by 18.2 percentage points while using 30% of the total environment steps. The diverse skill repertoire discovered by CODE-SHARP without any external objective provides strong pre-training for downstream goal directed fine-tuning of specialised agents, outperforming the specialist agents trained by SCALAR, despite diamond mining never being specified as a goal during discovery.

We hope this additional evaluation, together with our earlier explanation of the different problem formulations, addresses the concerns raised in W3 and Q2. We would greatly appreciate your thoughts on whether it does.

Reviewer uWah · CommentOpenReview ↗

We thank the authors for the additional experiments completed under a tight rebuttal deadline. However, our central concern remains the positioning and originality overlap with SCALAR (W2, W3, Q1, Q2). We do not think this has been fully resolved. 

The diamond mining comparison is not a fair like-for-like test. The reported 63.2% result comes after the full discovery phase (1e8 steps) plus an additional 2e8 steps of fine-tuning where sampling is restricted specifically to diamond-related SHARPs. This restriction is itself a form of implicit goal conditioning, even though it is not written as an explicit reward function. This sits in tension with the paper's core claim that CODE-SHARP never receives any external objective during training. What this experiment actually shows is that CODE-SHARP's discovered skill archive can serve as useful pretraining for downstream goal-directed fine-tuning. It does not show that CODE-SHARP outperforms SCALAR under the same open-ended constraints. These are different claims and should not be equated. 

In addition, no variance is reported for SCALAR, some training details are not fully aligned between the two methods, and the comparison does not discuss whether SCALAR might converge earlier than its full 1e9 step budget. This limits how much weight the 18.2 percentage point gap can carry. 

We recommend the authors state clearly in the main text that this comparison reflects discovery as unsupervised pretraining followed by goal-directed fine-tuning, rather than a fair comparison between two methods under identical open-ended assumptions. Otherwise readers may misread it as a direct apples-to-apples result. 

Overall, the paper's writing and empirical contribution have clearly improved during discussion, but the originality boundary relative to SCALAR still needs more careful framing, and the fairness of this specific comparison remains questionable. We will maintain our original score.

Authors · CommentOpenReview ↗

We thank the reviewer for their engagement and for noting that our work's writing and empirical contribution have clearly improved during the discussion.

We are in agreement with the reviewer that the comparison is not like-for-like. As we stated when introducing the experiment, a like-for-like comparison is not possible in principle, as SCALAR does not perform open-ended skill discovery. SCALAR is supplied a target skill such as mining diamonds a priori and then trains the fixed set of prerequisite skills required to reach it, while CODE-SHARP performs open-ended skill discovery without any externally provided goal. The two methods can therefore only be compared on the skills their outputs have in common, not on open-ended discovery itself. This is also why SCALAR, EUREKA and ARM-FM cannot serve as meaningful baselines for our setting. Running them requires authoring the objective whose absence defines our problem, and supplying CODE-SHARP with an objective removes the open-endedness under evaluation, as the reviewer also notes.

The framing the reviewer recommends, that the result reflects discovery as unsupervised pretraining followed by goal-directed fine-tuning, closely aligns with the interpretation of the results given in our previous comment and our comment to Reviewer KF5n, where we state that the skill repertoire discovered by CODE-SHARP serves as a pre-training phase, from which specialised agents can be fine-tuned for specific discovered skills. We will carry this wording into the main text so no reader can misread the result, as requested by the reviewer.

Restricting the sampling distribution, which the reviewer identifies as implicit goal conditioning, is precisely the change required to transfer CODE-SHARP to SCALAR's goal-directed setting, in which only skills directly relevant to the provided target are trained. We do not claim this to be CODE-SHARP's original open-ended setting, and we point out specifically how it diverges from the goal-free open-ended skill discovery objective. This again highlights the fundamental differences in the two methods' objectives.

On compute budget fairness, SCALAR spends its full 1e9 steps on the diamond mining skill and its prerequisite chain. Our Craftax-Classic agent trains for 1e8 steps across more than 35 discovered skills, most unrelated to diamond mining, so a direct comparison on diamond mining of the agents trained by SCALAR and CODE-SHARP at that budget would be unfair to CODE-SHARP. We therefore fine-tune for a further 2e8 steps, reaching 3e8 in total, which remains 30% of SCALAR's budget. We compare against the Transformer XL configuration because CODE-SHARP uses that architecture, and we take the value as reported in SCALAR Table 1, which reports no variance. Similarly, while SCALAR might converge before 1e9 steps, we do not have specific results for this and must rely on the results reported by the SCALAR authors themselves, which are at 1e9 steps.

Our claim of originality with regard to SCALAR does not rest on the presented experiment, which compares the diamond mining skills the two methods recovered and was run at the request of Reviewer KF5n. Our claim lies instead in the fundamentally different objectives of the two methods and the resulting key differences in algorithm design. This is most visible in the skill archives generated by the two methods. For Collect Diamond, SCALAR, before agent training begins, proposes a fixed set of 12 skills based on the supplied environment achievements of which 8 are trained (SCALAR, Sec. 5.3), all on the critical path to the target. In contrast, CODE-SHARP curates a continuously growing skill archive, and a single agent trained only on those skills reaches 94.8% median success across all 22 Craftax-Classic achievements (Fig. 3a), none of which are ever supplied to the system. We will discuss these differences in detail in our related work. We are happy to discuss any remaining concerns before the discussion period closes.

Reviewer qzvwOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors propose a technique for teaching an agent an increasingly large set of skills. Their method relies on an FM (Foundational Model) that generates reward functions for goals of increasing complexity. These reward functions are structured hierarchically and build upon previously generated ones, allowing the method to effectively scaffold increasingly complex behaviors. The generation of new programs is based on several evolutionary methods, with the FM acting as the mutation agent. Experiments conducted in Craftax and XLand show that the method is able to discover a large set of skills of increasing complexity and achieves statistically better performance than previous methods.

Strengths and weaknesses

Strengths

The paper is overall well motivated and well written. The experiments support the authors’ claims and the reported results appear to be statistically significant.

Weaknesses

It is difficult to see how this work could be extended to environments where the FM does not have access to the source code (assuming one exists). Therefore, while the results are truly impressive, it is difficult to envision this method scaling to a large number of domains.

Minor details

  • In Figure 3c, the x-axis is missing labels
Questions

Questions

  • How would different models perform under the same prompts and method?

  • Did the authors encounter classical continual learning issues such as catastrophic forgetting or loss of plasticity?

  • How is the archive initialized? Does it start empty? If so, how does the model determine how to begin?

  • Ablation: While this is not a major issue overall, the method appears to rely heavily on prompting the model in the right direction, whether for proposing a new skill, implementing it, or generating mutations. I would like more details on which prompting components are actually crucial. For instance, what happens when one or more mutation heuristics are removed? How sensitive is the system to modifications of these components?

  • How is the goal condition provided to the policy π\pi? Is an embedding of the function name passed to the policy? What neural network architecture is used?

  • The requirement for access to the source code appears to be a strong limitation. I would be interested to know how the authors think their method could be adapted to less constrained environments.

Limitations

Yes

Final justification

I thank the authors for their detailed feed back, all my questions have been satisfyingly answered

Formatting concerns

No concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment, and in particular for noting that the paper is "overall well motivated and well written", that "the experiments support the authors' claims", and that the results are "truly impressive". We answer each question in detail below and list the resulting revisions at the end.

W1 and Q6: Requirement of source-code access

We agree with the reviewer that this is the core limitation of the method and that it warrants a more detailed analysis. We therefore ran two additional experiments, both using Qwen3.5-27B. The first is an ablation on Craftax in which source-code access is removed entirely. The second applies CODE-SHARP to an entirely new environment, the AI2-THOR kitchen, where full source access is infeasible in principle rather than merely withheld.

Removing source-code access in Craftax. We remove source-code access entirely, leaving only the environment state information and the entities present in the environment. This represents a human interacting with the environment without any prior knowledge of it.

Method and condition Mean success rate Median success rate
ELLM, full source code 0.389 ± 0.029 0.065
OMNI, full source code 0.392 ± 0.042 0.159
CODE-SHARP (Qwen3.5-27B), NO source code 0.623 ± 0.048 0.968
CODE-SHARP (Qwen3.5-27B), FULL source code 0.733 ± 0.021 0.963

OMNI retains full source-code access, and for both OMNI and ELLM we report results with Qwen3-235B-A22B, which we did not rerun with Qwen3.5-27B in the time available (though Q1 below finds the two models comparable within this pipeline). Even so, CODE-SHARP without any source code outperforms them by a wide margin, 0.623 against 0.389 and 0.392, and the difference in medians is larger still.

What degrades under reduced information is coverage rather than competence. The medians remain near the ceiling in both CODE-SHARP conditions, so the drop from 0.733 to 0.623 comes from achievements that are never solved at all rather than from degraded execution of those that are.

These failures are instructive, as they show what the method depends on once the source code is withheld. Without source code access, CODE-SHARP never defines working skills for crafting iron tools or mining diamonds. We observe that the LLM falls back on Minecraft crafting recipes, which differ from those in Craftax. Performance therefore rests on the accuracy of the FM's priors and on the capacity of RL training to absorb the errors those priors introduce. Where a prior is qualitatively wrong rather than merely imprecise, neither is sufficient.

Evaluating environments with no feasible source code access. Our second experiment applies CODE-SHARP to the AI2-THOR kitchen environment. AI2-THOR is a 3D photorealistic embodied robotics environment in which the agent observes the scene from a first-person view and moves around a kitchen containing 59 interactable objects governed by realistic physics. It differs from Craftax and XLand in every relevant respect. It is neither a grid world nor viewed top-down, the objects are everyday items, and the space of object-object interactions is combinatorially large rather than enumerable.

Providing full source code is infeasible in this setting, as AI2-THOR comprises hundreds of thousands of lines across several languages, from C# to machine-generated Unity files. We therefore supply only the automatically generated state dictionary for the opening frame of an episode, which lists the objects present and their properties but carries no information about how objects can interact. Skill proposals must consequently rely on the FM's prior knowledge of how everyday kitchen objects behave.

Following the training setup of OMNI, we define 98 diverse achievements ranging from single-step manipulation such as opening a cabinet to multi-stage skills such as cooking sliced potatoes in a pan or brewing coffee. We run three seeds per method at 100 iterations and 2.5×1062.5 \times 10^6 training steps. Both CODE-SHARP and OMNI use Qwen3.5-27B here.

Method Mean success rate Median success rate
OMNI 0.200 ± 0.042 0.000
CODE-SHARP 0.542 ± 0.042 0.719

CODE-SHARP reaches a mean success rate of 0.542 against OMNI's 0.200, a 2.7 times advantage. When looking specifically at achievements with different prerequisite depths, we find that CODE-SHARP outperforms OMNI consistently across depths, with the margins widening as depth grows, from 2.8 times at depth 1 to 12.6 times at depth 3, beyond which OMNI records no successes at all.

Method d1 (n=32) d2 (n=37) d3 (n=23) d4+ (n=6)
OMNI 0.315 0.241 0.024 0.000
CODE-SHARP 0.887 0.472 0.303 0.049

d = depth of prerequisite chain required for achievement success

Taken together, these results indicate that source-code access improves CODE-SHARP but is not a precondition for it. What changes without it is the mechanism the method leans on. It becomes more dependent on the FM's priors, and correspondingly more exposed where those priors are wrong. We will add both experiments to the revision. We will sharpen the limitations regarding source code access and highlight that full access is required exactly when the FM's prior knowledge and the true environment dynamics diverge.

Q1 and Q4: Model sensitivity to prompts

CODE-SHARP uses the same prompts and the same mutation heuristics across Craftax-Classic, Craftax-Extended, XLand and, for our rebuttal experiments, the AI2-THOR robotics environment, outperforming the baselines in each. For AI2-THOR, we adapt the provided SHARP skill template to include an additional focus_object variable, which is required by the OMNI evaluation protocol we are following. Our high-level prompts span grid worlds, stochastic environment dynamics and 3D first-person photorealistic robotics, which we take as evidence that the prompts are not overly tuned to a particular domain.

To quantify sensitivity to the underlying model, we additionally evaluate CODE-SHARP with Qwen3.5-27B, a considerably smaller model than the Qwen3-235B-A22B-2507 used in the paper, trained on a different data distribution and released more than six months later. The prompts are unchanged.

Model Mean success rate Median success rate
Qwen3-235B-A22B-2507 (used in the paper) 0.672 ± 0.045 0.948
Qwen3.5-27B 0.733 ± 0.021 0.963

With no changes to the prompts, Qwen3.5-27B matches and exceeds the performance of Qwen3-235B, indicating that the pipeline does not depend on prompts tuned to a specific model.

Q2: Continual learning issues

Due to the hierarchical structure of the archive, where newly discovered skills build directly on existing ones, catastrophic forgetting has not been a significant issue. T\mathcal{T} routes the agent through the full prerequisite chain of whatever target is sampled, so earlier skills continue to be executed and rewarded throughout training. We do observe small decreases in the performance of long-horizon skills as further long-horizon skills are added, but have at our scale of experiments not encountered issues with model plasticity.

The issue we do encounter is one of compute resources. As the archive grows, each individual skill occupies a progressively smaller share of every training batch, so newly proposed skills receive less training experience per iteration.

Q3: Archive initialisation

The archive is initialised empty. In the first iteration, CODE-SHARP must therefore reason over the provided source code to identify the environment dynamics and select skills the agent can complete without any prerequisite knowledge, such as finding trees in Craftax. These then become available as prerequisites, widening the set of proposals the judge can accept in subsequent iterations.

We also experimented with seeding the archive with a set of initial skills, and found no impact on final performance.

Q5: Agent architecture and goal conditioning

The agent is a small Transformer-XL (Dai et al., 2019) implemented in JAX and trained with PPO. The setup is given in Section 3 and the full hyperparameters in Appendix E.

The goal is provided by concatenating a 384-dimensional embedding of the active skill's name, obtained from sentence-transformers/all-MiniLM-L6-v2, to the state observation passed to the agent.

Reviewer qzvw · CommentOpenReview ↗

We are entirely satisfied with the responses provided by the authors. We encourage them to include the new results in the body of the article or in the appendices, in order to assist any interested reader.

Authors · CommentOpenReview ↗

We thank the reviewer for the positive feedback and are glad our responses resolved the outstanding concerns. The new results obtained during the discussion period will be added to the manuscript.

Reviewer KF5nOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this work, the authors introduce Continuous Open-ended Discovery and Evolution of Skills as Hierarchical Reward Programs (CODE-SHARP), a novel approach that leverages foundation models to build an ever-growing library of skill primitives, formulated in Python, that are then utilized as a reward model to train a generalist policy. At its core, CODE-SHARP uses two FM-driven loops, one for proposing, implementing, and judging of SHARPS, and another for mutating them. Together, they continuously expand the library of skills, which are subsequently trained with PPO and demonstrated on Craftax -Classic, -Extended, and XLand.

Strengths and weaknesses

Strengths

  • While not novel in itself, the idea of generating a set of reward functions (here called skills/SHARPs) is a great way for long-horizon reinforcement learning
  • The results shown by this method support the proposed method well, particularly on Craftax-Extended.
  • The paper is written clearly and is easy to follow. Given the appendix, it seems like the work is relatively easy to reproduce.
  • The ablations, particularly CODE-FRP, are well designed and executed to isolate the SHARPs as the source of the reported improvements.

Weaknesses

  • It is unclear what happens if the generated goal condition of a particular SHARP is wrong. Is there a way to recognize issues such as the SHARP being too broad, or for example, deciding that it requires diamonds to make a wooden pickaxe? Fundamentally, a thorough analysis of the failure cases of the FM-Judge is necessary.
  • The authors may want to take a look at "Zabounidis, Renos, et al. "SCALAR: Learning and Composing Skills through LLM Guided Symbolic Planning and Deep RL Grounding." A discussion would strengthen the related-work section, as it tackles a similar LLM-plus-RL skill-composition problem on Craftax.
  • Are the mutation heuristics specific to the environment the SHARPs are evaluated in? How well does the method translate to different long-horizon tasks?
  • In Craftax-Extended, why is "a minimum health threshold to prevent premature episode termination" needed? Survival is an integral part of Craftax and the agent needs to plan for it. This makes result comparisons to other methods not possible while inflating the reported results.
  • The method requires the source-code of the environment, which is a rather strong limitation as many real-world tasks are much less specified. This ties in to the weakness of how to mitigate incorrectly generated SHARPs effectively.
Questions
  • How do the authors justify the seemingly low performance on long-horizon tasks like collecting diamonds compared to other methods, such as SCALAR? Shouldn't this work perform particularly well, especially given that on Craftax-Extended, it seems to work well on many of the more long-horizon tasks?
  • What are the failure cases for the judge and how are they mitigated if the scope for each SHARP is too large or the agent doesn't stumble upon the solution?
  • While I do not expect a full experiment comparison to SCALAR (mostly since SCALAR seems goal directed vs CODE-SHARP seems open-ended), could you please position your work relative to SCALAR?
Limitations

Yes

Final justification

The rebuttal did initially not address my concerns; however, the additional response of the authors providing a direct comparison to SCALAR as well as providing clarifications on the health threshold has made the paper stronger and clarified my initial misunderstanding, so I updated my score accordingly.

Formatting concerns

N/A

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive assessment of our results, clarity and ablations, and for the constructive criticism, which prompted additional analyses that we believe strengthen the work. We address each point below.

W1 and Q2: Detecting misspecified SHARPs and analysis of judge failure cases

We agree that reliance on the LLM judge is a limitation and will highlight this more prominently, adding our audit of the judge and failure-case analysis to the appendix.

Misspecified prerequisite conditions are caught by learnability and repaired by evolution.

For cases where wrong or missing prerequisite conditions are present, the transition operator routes the agent into an unattainable prerequisite chain, no success is observed, and the learnability evaluation rejects the candidate because the success rate improvement falls below τ of 0.05. The candidate is logged as a failed proposal and fed back as context to the proposal LLM.

The reviewer's example of a SHARP requiring diamonds to craft a wooden pickaxe would be a case in which learnability is still satisfied, but the skill is implemented suboptimally. This would be caught and rectified by our mutation mechanism. SHARPs are sampled for mutation in inverse proportion to their success rate, so flawed specifications are preferentially revisited, and the mutation heuristics target this failure mode directly, inserting omitted condition and prerequisite pairs, substituting better fitting prerequisites, and reordering conditions so that later ones do not invalidate earlier ones. A mutated variant replaces its parent in place only when it achieves a higher success rate, so the flawed version is displaced by a corrected elite rather than accumulating in the archive.

Misspecified goal-states are filtered by the Judge and excluded from training.

Skills whose success condition is satisfied trivially, without deliberate action by the agent, provide no learnable signal and are by design excluded from sampling during training by our opportunistic sampling mechanism (Sec. 2.5).

The judge catches subtler goal state and skill misspecifications that learning progress or our opportunistic sampling filtering can not, with its Correctness objective as the primary safeguard (Appendix J). Additionally, as described in Sec 2.3, the judge is tasked with evaluating the candidates' Novelty and Feasibility. We report below how often the judge fails on each of its three objectives. The AI2THOR results reference our experiments introduced during discussion on a novel, 3D photorealistic robotics kitchen environment, which we describe in further detail below and in our response to reviewer qzvw.

Judge audit

Gate Craftax-Classic XLand AI2THOR
Novelty 0.0% 0.0% 4.6%
Correctness 9.6% 0.0% 0.0%
Feasibility 7.1% 11.7% 18.9%

Novelty. We hash the goal state together with the declared environment conditions and prerequisites, so only skills identical in both outcome and route count as duplicates, and report duplicates as a fraction of admitted skills. Duplicates arise only in AI2-THOR. Here the judge is likely misled by docstrings mentioning prerequisite chains not faithfully realised in implementation.

Correctness. We hand-match each skill to a verified ground truth goal state, then roll out the frozen checkpoint with that skill as target over at least 150 episodes, recording P, the fraction of episodes in which the skill's own LLM-written predicate fired, and GT, the fraction in which the ground truth goal state fired. A goal counts as misspecified when P and GT do not match. We report misspecified skills as a fraction of admitted skills. The only misspecified goal states arise in Craftax-Classic, all on mob eliminations. Here the LLM assumes mob disappearance indicates elimination, not accounting for mobs despawning out of sight of the agent. However, as these skill goal states are true at almost every environment step, they are rarely sampled during training, minimising the impact on agent training.

Feasibility. We report the skills that the judge accepted, but the learnability gate subsequently rejected. The judge's feasibility criterion is deliberately narrow and verifies only that every required precondition is present, that each is assigned a relevant prerequisite skill from the archive, and that the goal state is reachable within the environment. A skill can satisfy all three and still lie beyond what the agent is currently able to learn, with collecting several diamonds being a clear example. The judge estimates learnability correctly in over 80% to 92% of proposals, with the learnability evaluation capturing skills that the Judge evaluated incorrectly.

W2 and Q3: SCALAR related work

We thank the reviewer for pointing us to SCALAR. We share the reading that the two works differ primarily in problem setting, as SCALAR is goal directed while CODE-SHARP is open-ended and diversity focused, and we will add a discussion to the related work. A fuller comparison is in our response to Reviewer uWah.

W3: Mutation metric generality

The mutation metrics are not redefined per environment. They target failure points of the SHARP formulation itself, such as inefficient ordering, omitted conditions and redundant conditions, and are environment agnostic by construction.

To test this, we applied the identical heuristic set to an AI2-THOR kitchen, a 3D embodied setting with object manipulation rather than a 2D grid with crafting and resource gathering, which supplies only the initial environment state rather than source code. We detail it in our response to Reviewer qzvw.

Environment Median absolute improvement Median relative improvement
Craftax 16.7 pp 68.8%
AI2-THOR 25.0 pp 88.2%

Comparable gains from an unchanged heuristic set in two structurally dissimilar domains indicate that the mechanism attaches to the skill representation rather than to properties of a particular environment.

W4: Minimum health threshold for Craftax-Extended experiments

Our Craftax-Classic experiments run under standard environment rules, with no minimum health enforcement. Our Craftax-Extended experiment targets a different question, namely whether an LLM can continuously and open-endedly build on previously discovered skills. Agents across related works struggle to learn even basic survival in Craftax, so the minimum health threshold isolates that general limitation from the LLM's ability to propose novel skills. OMNI (Zhang et al. 2023) relaxes survival constraints for the same reason (Section 4.1). All Craftax-Extended baselines are evaluated under the same threshold for fair comparison.

W5: Requirement of source code access

This is a major limitation, and we highlight it as such in the manuscript. Our response to Reviewer qzvw includes an ablation without source code access, in which CODE-SHARP still outperforms baselines by wide margins despite lower absolute performance. We further provide results on AI2-THOR, a photorealistic 3D robotics environment where full source code access is infeasible. We find that in this setting, CODE-SHARP still performs well on long-horizon achievements and outperforms our OMNI baseline by a factor of 2.7 in mean success rate.

Method Mean success rate Median success rate
CODE-SHARP 0.542 ± 0.042 0.719
OMNI 0.200 ± 0.042 0.000
Method d1 (n=32) d2 (n=37) d3 (n=23) d4+ (n=6)
CODE-SHARP 0.887 0.472 0.303 0.049
OMNI 0.315 0.241 0.024 0.000

d = depth of achievement prerequisite chain

Q1: Performance on diamond mining task

Three factors account for the difference. First, SCALAR is strictly goal-directed. It receives "collect diamond" as an explicit human-defined target. It trains only the prerequisites on that critical path, leaving unrelated skills unlearned by design, as shown in Appendix B.4 and Figure 12. CODE-SHARP receives no goal at all, and diamond mining is just one skill learned among many.

Second, SCALAR trains for ten times as many environment steps. Our Craftax-Classic runs use 1e8 steps in total, covering the entire archive, while SCALAR trains for 1e9 steps focused only on skills relevant to the "collect diamond" task.

Third, SCALAR resumes training from optimal saved state checkpoints. CODE-SHARP does not assume any environment access or checkpointing mechanism and uses fresh episode restarts for training.

Novelty of the reward generation setting

The reviewer is right that generating reward functions for pre-existing, human-defined goals is well studied. EUREKA (Ma et al. 2023), Text2Reward (Xie et al. 2023) and ARM-FM (Castanyer et al. 2026) each take the objective as input and optimise or decompose it, and SCALAR (Zapounidis et al. 2026) plans backwards from a given goal state. Our claim sits in a different place, which we will make clearer in the revised introduction. CODE-SHARP is given no objective at any point. It decides for itself what is worth learning, writes the reward programs that define those goals, and trains a generalist agent on them from scratch. The same mechanism applies across structurally dissimilar environments without redesign.

This setting also carries an empirical claim. CODE-SHARP transfers from complex grid-worlds such as Craftax to photorealistic 3D robotics environments such as AI2-THOR with minimal changes and human engineering, and outperforms our baselines in all settings. In contrast, prominent works in open-ended skill discovery such as Voyager (Wang et al. 2023) and JARVIS-1 (Wang et al. 2023) require large amounts of domain-specific engineering and inference compute, which places transfer of this kind out of reach. We see CODE-SHARP as a step towards broadly applicable open-ended training of generalist agents without pre-specified human objectives.

Reviewer KF5n · CommentOpenReview ↗

Thank you for the detailed rebuttal. The judge audit and the AI2-THOR transfer results are valuable additions, strengthening the work overall.

My main concern remains the health threshold. Survival is integral to Craftax. While the authors evaluate all baselines in the same setting, it does fundamentally solve a different task. Experiments that retain the need to stay alive are necessary.

On W1, the provided audit does not address my concern. Novelty is measured only as exact goal-state duplication, which cannot capture near-duplicates, which seems to, in Appendix G, stall progress with a smaller FM without a clear approach to recovery.

A direct comparison to SCALAR on diamond mining would strengthen the work significantly, but I realize that this is difficult given the tight rebuttal timeline.

I maintain my score.

Authors · CommentOpenReview ↗

We thank the reviewer for the continued engagement and for noting that our additional judge audit and AI2-THOR experiments strengthen our work overall.

A direct comparison to SCALAR on diamond mining would strengthen the work significantly

We thank the reviewer for pointing out this opportunity to significantly strengthen our work.

To transfer CODE-SHARP to SCALAR's goal directed setting, we take the agents trained by CODE-SHARP during the initial skill discovery phase and continue training them while sampling only the diamond mining skills that CODE-SHARP discovered itself. We do not provide a reward function, a goal state, or a task specification at any point. The skills, their reward programs, and their prerequisite chains are all products of the discovery phase, and the only change is that the sampling distribution over the existing archive is restricted to this subset. This aligns CODE-SHARP as closely as possible with SCALAR's protocol, which trains only the diamond mining skill and the skills necessary to reach it.

We compare against the Transformer XL results reported by SCALAR, as we also use this architecture for CODE-SHARP. All results are obtained on Craftax without any modifications to the environment dynamics or survival constraints. Fine-tuning results are reported over the original 5 CODE-SHARP runs for Craftax-Classic.

Method Discovery steps Task steps Total steps Diamond success rate
CODE-SHARP 1e8 2e8 3e8 63.2% ± 2.14%
SCALAR 0 1e9 1e9 45%*

* From SCALAR, Zabounidis et al. 2026, Table 1, no standard deviation reported.

Agents fine-tuned on the diamond mining skills discovered by CODE-SHARP exceed SCALAR by 18.2 percentage points while using 30% of the total environment steps. These results highlight how CODE-SHARP's skill discovery phase can serve as an effective autonomous pre-training stage, in which diverse skills are discovered without external objectives and specialist agents can then be fine-tuned directly on any skill of interest.

Health threshold and survival experiments

While we agree that survival is integral to the full Craftax task, this capability is already evaluated in our unmodified Craftax-Classic experiments, including the new SCALAR comparison above. These experiments implement no health threshold or other modifications, requiring agents to manage health, hunger, thirst and fatigue while avoiding hostile mobs. Under these standard survival dynamics, CODE-SHARP outperforms all baselines by a wide margin on long-horizon achievements such as mining diamonds and crafting iron tools. Our XLand and AI2-THOR experiments likewise use the original environment dynamics.

Only our Craftax-Extended experiment operates under modified environment dynamics because it addresses a different scientific question: whether CODE-SHARP's skill generation process continues to discover meaningful and increasingly complex skills over long horizons. It is not intended to establish state-of-the-art performance on Craftax-Extended, and we make no such claims relative to prior work. Instead, the relaxed survival dynamics remove a confounding variable from the study of the skill discovery mechanism. A stall in skill generation under frequent death is consistent both with an agent that has not learned to survive and with CODE-SHARP having generated misspecified skills, and the two cannot be disentangled after the fact. Using relaxed survival constraints for this purpose follows prior work on open-ended skill discovery in Crafter, the non-JAX and functionally equivalent predecessor of Craftax-Classic (OMNI, Zhang et al., 2023).

Judge audit and small FM failure case

We agree that exact goal-state hashing cannot capture semantic near-duplicates, and we will state this limitation explicitly. We adopt the FM-as-judge protocol established in prior work on open-ended discovery and skill library construction (Voyager, Wang et al. 2023, OMNI, Zhang et al. 2023, OMNI-EPIC, Faldor et al. 2024) and apply it to our setting. A general solution to semantic novelty estimation lies beyond the scope of this work.

The direct evidence on whether near-duplicates limit CODE-SHARP is our main Craftax-Extended experiment, where the archive continues to accumulate novel and increasingly complex skills over the full run rather than saturating, as shown in Figure 5b. Appendix G reports the smaller and older foundation model, and our experiments show that the stall there is a property of that judge rather than of the discovery mechanism. The failure mode tracks judge capability directly, and we expect CODE-SHARP to scale in performance as FMs improve.

We thank the reviewer again for the constructive feedback. We hope that the additional experiments, analyses, and clarifications, including the new SCALAR comparison, judge audit, AI2-THOR evaluation, address the remaining concerns and provide a stronger basis for evaluating our contribution.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…