Continuation-Guided LLM Evolution of Program Policies and Goal Compilers in Craftax
Víctor Gallego
Komorebi AI Technologies
Published November 14, 2026 · on the feed November 17, 2026 · ▲ 5 · arXiv 2611.19537
The abstract
Coding agents can synthesize and optimize code-based policies from simulator feedback, allowing the resulting program to act with zero inference model calls. But for long horizon tasks, two challenges arise: local improvements can hurt final success and switching to a new objective requires another expensive synthesis run. We propose a framework that first develops competence by refining the policy through a feedback cascade, moving from episode returns to hierarchical goals and belief updates which can be scored densely from simulator. In the Craftax game, a partially observed and procedurally generated environment, refinements via episode level feedback stall at <1% final-level arrival, whereas with the feedback cascade the optimized policy reaches the final stage 50% of time (28% final boss defeats). Furthermore, to make this competence reusable towards new goals, we factor the previous controller into an environment interpreter I (models, memory, skills) and a rule program p_0, and we show that coding agents can optimize a reusable goal compiler C_θ that maps structured tasks g into new rule programs p_g. Across five independent compiler searches trained only on short tasks, the resulting compilers successfully transfer zero-shot to longer tasks without any task-specific tuning nor inference-time LLM calls: continuation-scored feedback and a fixed machine with an editable program together turn a single-task competent policy into a reusable one. Code at: https://github.com/vicgalle/craftax-program-policies
The Brief
2:18A short podcast summary of the paper. Written and voiced by AI.
Transcript
Continuation-Guided LLM Evolution of Program Policies and Goal Compilers in Craftax. By Víctor Gallego, from Komorebi AI Technologies. Published on the fourteenth of November.
Coding agents can write a policy as a program and then optimise that program against simulator feedback. The appeal is that the finished program acts on its own, with zero calls to an inference model. Long-horizon tasks expose two difficulties with this. Local improvements, the ones that look good on the immediate feedback, can hurt final success. And switching to a new objective means running another expensive synthesis from the start. A policy that is good at one long task is hard to make good, and hard to keep good, at the next.
The framework answers each difficulty in turn. For the first, it builds competence through a feedback cascade, so that refinement is guided by signals richer than the final score. For the second, it splits the finished controller into a fixed part and an editable part, and trains a compiler that writes new editable parts for new goals.
The cascade moves from episode returns, to hierarchical goals, to belief updates, each of which can be scored densely from the simulator. Once a competent controller exists, it is factored into an environment interpreter, called I, holding models, memory and skills, and a rule program, p zero. Coding agents then optimise a reusable goal compiler, C theta, which maps a structured task g into a new rule program, p g. The interpreter stays put; only the rule program changes from goal to goal.
The test bed is Craftax, a partially observed, procedurally generated game. Refining with episode-level feedback alone stalls at under one percent of runs reaching the final level. With the feedback cascade, the optimised policy reaches the final stage fifty percent of the time, and defeats the final boss in twenty-eight percent of runs.
For reuse, five independent compiler searches were run, each trained only on short tasks. The resulting compilers transfer zero-shot to longer tasks, with no task-specific tuning and no language model calls at inference time.
Two pieces do the work together. Continuation-scored feedback, dense signals in place of the final return alone, gets a single policy to competence. A fixed machine paired with an editable program then turns that one competent policy into something reusable across goals. The result keeps the original appeal intact: whatever goal it is pointed at, the finished controller still runs without calling a model.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free