Experiment
RLMs for Robotics: Astra and Fable Drive a Car in Prime Agent
Previously on DrivingBench, we’ve evaluated LLMs in their native harness (Codex/Claude Code/etc) driving real cars through just our MCP tools. This time, we ran GPT-6.2 Astra and Claude Fable 5.2 in Prime Agent, Prime Intellect’s RLM harness, where the model works in a persistent Python REPL, and gave each six minutes of practice with the car. Both wrote their own driving tools from scratch and finished our cone course, Astra finishing five times faster than any LLM that has ever finished this course. To decouple the model, harness, and practice, we also tested them in a calibrated simulator, where Astra only ever finished in Prime Agent.
Astra wrote itself a cone detector and ASCII map
Astra, starting from scratch and practicing with the car in Prime Agent’s python kernel, decided to write a detector that finds cones by their color and turns their pixels into meters, printing them out as an ASCII text map. It then evolved that map to combine both the car’s narrow and wide-angle cameras. This is the one it printed at the start of the evaluation:
o narrow camera
O wide camera
Figure 1. The start of the course as Astra saw it. Top: its two camera frames, with the cones its code found circled. Bottom: the map it printed from them, one character per meter. The characters are Astra's; the colors, arrows and labels are ours.
Just to be clear, we didn’t ask for a cone detector or map or any particular tool. Here’s the setup we gave Astra and Fable:
Contents
1The experiment
The car. We used a Tesla Model 3, with a safety driver in the car. Like in v2, models drive it with three tools: observe to look through the road cameras, set_motion to set the steering and speed for the next 5 to 60 seconds, and stop_now to stop. The car doesn’t wait for the model to think. It keeps going on the last command until that runs out or gets replaced.
The RLM harness. Prime Agent is an open-source harness from Prime Intellect, built around recursive language models (RLMs), and one of several RLM harnesses. Basically, the model works inside a persistent Python session (a kernel), where its context can be variables and its tools are just functions. So it can work through camera frames and past actions with code, and pick what it actually looks at. Prime Agent also lets the agent edit its own memories and skills as it goes, which they call the Continual Harness. (RLMs also come with recursion, i.e. calling other models or sub-agents from code, although neither model used it in our experiment here.)
We packaged DrivingBench’s three tools as a Prime Agent skill, so they’re Python functions in the kernel, plus read(), which hands camera frames to code, and history(), which returns every earlier call with its frames. No driving code of ours is in the kernel.
The protocol. Each model got one fresh session. It first had six minutes of practice, starting on a middle stretch of the course, with only this generic instruction:
Use this time to improve how you will drive on the later course. Decide what you need to learn, investigate it, and check whether your approach works. You may use direct interaction, code, or both; no particular method or amount of code is required. Your own notes, code and saved observations carry forward.
If it hit a cone, we paused it, reset the car and let it carry on. Then we gave it a few minutes of stationary preparation: no motion and no new camera views allowed, but it could keep thinking and coding on what it had saved (Astra took two minutes for this, and Fable took five). Then we did evaluations on the full real cone course, with the same reflection between their (up to 3) attempts as every chat model in v2.
2Results
Prime Agent, after six minutes of practice · 20 November
DrivingBench v2 · each model's own agent app, no practice
Reference
Figure 2. Course A progress. Each dot is a conversation and each bar is the average. Click any dot to see its full trace and video.
The most direct comparison is Fable 5.2, which drove this course in v2 from inside Claude Code: three conversations, no practice, best attempts of 67%, 5% and 25%. Here, the same model got 17%, then 25%, and then finished (100%) on its third attempt. GPT-6.2 Astra finished (100%) on its first attempt. It wasn’t in our v2 evals, but its predecessor, GPT-6 Astra (in Codex), averaged 34% at best.
Astra was also really fast. Until now the only chat model to finish this course was Gemini 4 Carbon (in Antigravity), in 26 to 49 minutes of stopping and thinking. Astra finished in under five minutes, close to a person driving through the same tools (our human baseline on this course took 3 minutes).
Prime Agent, after six minutes of practice · 20 November
DrivingBench v2 · each model's own agent app, no practice
Before Prime Agent, GPT-6 Astra and Fable 5.2 couldn't finish at all (0 of 9 attempts each in v2).
Reference
Figure 3. Time from the start of the attempt to the finish. Practice and earlier attempts aren’t included. Fable’s time leaves out 8 minutes when two faults on our side held the car still: its controller went offline once, and once it wrongly sensed the safety driver steering.
3What the models built
3.1Astra: a map and a steering adviser
During its practice session, Astra drove, looked, and wrote code at the same time. It hit cones twice, at the hairpin and at the turn into the green finish bay. Then, in two minutes of preparation without moving, it worked out its cameras’ geometry from its practice frames, got its detector working on the wide camera and the green finish cones too, and wrote a function called advice() to suggest how to steer. Here’s what that does:
See Astra’s advice(), exactly as it wrote it
def advice(f,look=13,bias=0):
p=points(f); k=np.arange(-100,101,5);c=(-k[:,None]+1e-7)/600;s=np.arange(0,look+0.1,.5);ang=c*s
# camera is ~1.3m ahead of rear axle; plan center of body
x=(1-np.cos(ang))/c+1.3*np.sin(ang);z=np.sin(ang)/c+1.3*np.cos(ang)-1.3
if len(p)<2:return None
d=((x[...,None]-p[:,0])**2+(z[...,None]-p[:,1])**2)**.5
d=d.min(axis=2);loss=(np.maximum(0,4.2-d)**2).mean(axis=1)+np.maximum(0,2.4-d.min(axis=1))**2*.6+0.15*((k-bias)/100)**2
i=loss.argmin();return int(k[i]),round(float(d[i].min()),1)advice() never moves the car by itself, it just prints a suggestion to Astra, like (55, 2.5): steer 55% left, and the middle of the car would pass 2.5 m from the closest cone. Astra tested it on 21 saved practice frames and then wrote itself a note:
Cone detections miss especially near windshield edges; do not follow advice() automatically. At hairpins clear the inner apex before tightening; align earlier for the green bay, proceed slowly and stop inside.
On the course, it made one function that does everything. scan() read both cameras, printed the cones in meters and the adviser's pick, and put the wide-angle image in front of Astra (it usually pulled up the narrow one too):
async def scan():
global st,fr
st,fr=await car.read();print(st);print(wcoords(fr).round(1).tolist(),advice(fr));fr.attach('wide')Then Astra looked at the images and the numbers, and still chose every command itself. Of the 16 commands it sent with advice to go on, 14 steered within 12 percentage points of the adviser’s pick (100% is full/max steering wheel lock). The other two times, it overruled it completely.
One of those overrides was at the guardrail. Its narrow-camera detector thought that the red curb, the rail and specks of asphalt were cones, so the adviser said hard left. (When we reran it on just the wide camera’s cones, it said 5% right.) Astra didn’t listen to the adviser here, and sent 8% right.
One of us was in the car for this, and it was amazing to watch Astra use its own judgement and override its adviser, as we suspected that its color-based cone detector would get things wrong and mix up things like our red cones and the red curb in that area.
Guardrail, 1:28: it overrules the adviser
narrow camera
wide camera
advice(): 80% left, with the middle of the car passing just 1.0 m from a cone → Astra sends 8% right
taken for a cone, narrow camera taken for a cone, wide camera taken for a green finish cone the 41 arcs it tries (every other one drawn) the adviser's pick what Astra sent instead
Show a scan where Astra followed its adviser
Hillside bend, 3:01: it follows the adviser
narrow camera
wide camera
advice(): 55% left, with the middle of the car passing 2.5 m from a cone → Astra sends 55% left
Figure 4. The guardrail scan: what Astra’s code took for cones in each camera, and our plot of what advice() computed from them.
Astra's adviser, and what Astra did
Steering over the 4:48 attempt. Rings: what advice() picked at each scan. Dots: the command Astra sent.
Figure 5. The other override was at the green finishing zone, where the tool said left and Astra turned hard right into the green bay.
Astra’s commands were short (5–7 s, mostly at 1.2–2 m/s), and it often looked again while the car was still moving. It still stopped for a bit between most of them, but the car was moving for about half of the attempt.
3.2Fable: fixing its distance estimates
Fable took kind of a different route. It spent practice measuring how the car responds to its commands, making a logger for speed and steering, a go() that sends a command and looks again near its end, and a cone detector. Then in preparation, it projected cones onto the ground, drew its own view with the path the car would sweep and the arcs of several steering settings, and saved its findings to memory.

Figure 6. Fable's own driving view, drawn by its code at the finish bay: both cameras, the corridor the car would sweep straight ahead, and steering arcs.
Its first two attempts ended early, at 17% and 25%, and between them it debugged its distance estimates. After the first, it went back through its saved frames with history(), checked each cone's estimated distance against its size in the image, found the far cones were placed too far away, and refitted its horizon from the cones' sizes. After the second, it wrote:
At the right bend near the guardrail I judged the outer cone line to be about 18 m ahead. It was really about 12–13 m ahead. … My distance estimates assumed flat ground with a fixed horizon. The saved frames show the horizon shifts between the start area and the guardrail area, so far distances were about 40% too long there.
So it stopped using one horizon at all. It started fitting a new one to the cone sizes in every frame, and rebuilt its bird’s-eye map on top of that.

Figure 7. Fable's bird's-eye map, drawn while it prepared for attempt 3: cones from the narrow (red) and wide (orange rings) cameras, and the arcs it could steer.
3.3Fable: simulating the last turn
Fable’s third attempt was significantly slower, on purpose. It drove in very measured stop-and-go steps, and the car was only moving for ~3 of its 41 minutes. Then it got to the tight right turn into the green finishing zone, which it had never practiced, and it just sat there still for about 8 minutes.
While parked, it decided to write a small simulator of its own just for that turn, with the car’s footprint and its estimate of where every nearby cone stood. Then, it did a sweep of ~6000 candidate steering sequences, and sorted them by how much they cleared the cones. By its own estimate, even the best one left only 37cm of room.
It was very confusing sitting in the car, as Fable was literally meters from finishing the course, and just completely at a standstill. At first, we thought there might have been some technical difficulties or latency problem, before we saw that Fable was coding up a simulation of thousands of possible steering sequences. Fable really found this last turn very scary, calling the turn “essentially a coin flip” in its reasoning.
- 5,964steering plans tried
- 1,034end up pointed into the bay, but would hit a cone
- 249end up pointed into the bay and clear every cone
- 37 cmof room on the best one
- a cone, where Fable estimated it
Figure 8. Fable’s plans for the last turn, redrawn by rerunning its own simulator on its own cone estimates. Blue is the best of them.
But it went for it anyway. It wrote one last function, go_dist(), to creep forward a set distance, stopped to look again, and then turned hard right into the finishing zone at 0.5 m/s to finish the course and get 100%.
4Why RLMs suit robotics
Chat models like those we drove in v1 and v2 drive in loops of thinking, sending commands, and looking, and the car doesn’t wait for any of this. A harness like Prime Agent lets models move more work out of that loop into code it writes itself, keep what it learns, and iterate faster. Neither agent was required to use any of this, but both made a lot of use of Prime Agent’s features.
In the original RLM paper, the huge context is a long prompt, which gets stored as a variable for the model to explore with code. For a robot, the huge context includes its camera images and everything it has done so far.
Alex Zhang (who introduced RLMs) explains in his latest paper why harnesses like this can generalize well: when what each model call sees is decided by code, tasks that are new as a whole can consist of calls that each look familiar (are “locally in distribution”). This fits what we saw, since every camera frame was different and neither model had ever seen the first half of the course, but nevertheless Astra’s scan() turned these frames into the same short list of cones in meters plus its adviser’s suggestion, beside the image.
4.1Choosing what to look at
The camera frames just become Python variables, so code can process them before the model even sees anything. Astra turned them into cone coordinates and steering advice. Fable drew steering arcs and bird’s eye maps, and then looked at its own drawings. In our v2 setup with Claude Code, the model would have to take the photo, run code on the saved file and open the result in separate steps, while the car keeps moving. In Prime Agent, that can all be one action.
Another interesting point is that since code can read frames and crunch pixels and just print out a couple of numbers instead of dumping every raw image into the chat context, the context fills up much slower, so theoretically things like compaction would be required less often in a setup like this with Prime Agent, and inference latency might be more stable and faster than otherwise.
4.2Acting faster than it thinks (PTC)
With tools as functions, Fable easily wrote go_dist(): start moving, read speed every 0.7 seconds, add up the distance, and stop on target, all in one model action. This is what it used to creep into the green finishing zone.
Programmatic tool calling (PTC) is what makes this possible. Claude Code for example doesn’t have this by default, but with a harness like Prime Agent, the model can write tight control loops that talk to the car directly and batch many function and tool calls together, without waiting on an LLM inference round-trip every time. We believe this is a very important feature for the latency required for agentic robotics.
4.3Keeping what it learns (persistent kernel, memories)
The cone detectors and the helpers written in practice were still in the Python kernel for the evals. Fable’s conversation was compacted twice, but its helpers survived both times. So what an agent learns about its body and environment can persist as working code, and not just as text in its context that might have to get summarized. The kernel being stateful and persistent across turns, attempts, and context compaction is what allows things like the calibrated constants and cone detectors and helper functions to accumulate in RAM like a real robotics stack.
Since the harness is programmable, we were able to give the models all their past calls and camera frames as Python objects with history(). They used these to test and debug their code without moving the car. And Fable saved its findings to Prime Agent’s memory, updated them after its second failed attempt with what went wrong and how to drive differently, and then finished on the next one.
5Pulling it apart in simulation
Real car evals take a while, and we didn’t have time to get more than one run per model on the real car on the same day. So, to properly tell how much of this came from the model, harness, or the practice, we ran the same protocol in the calibrated simulator from our Inkling post (a Gaussian splat twin of the lot, with the car’s fitted dynamics and camera frame lag) with three fresh runs for each condition.
Figure 9. The simulator: our lot, rebuilt from the car’s own camera frames. Drag to look around.
Simulator · after six minutes of practice
Simulator · no practice
Figure 10. Course progress in simulation, three runs per condition. Each dot is a run.
For Astra, the harness was a giant contributor. In Prime Agent it finished 2/6 runs, and in Codex it finished zero and only one run got past a quarter of the course. Next to these, its first-try finish on the real car looks lucky: in the same setup in the simulator, its first attempts reached 17–29%. Fable did better in Prime Agent too, by a smaller margin. It finished 4/6 runs there against 3/6 in Claude Code, and every Prime Agent finish was faster than every Claude Code one (12–23 minutes against 25–30). The gap was widest without practice: in Prime Agent, Fable got as far as it did with practice, while in Claude Code two of its three runs never got past 26% of the course. Practice raised the average first attempt in every pairing, most for Fable in Prime Agent (11% to 51%).
5.1Reflecting between attempts
Between attempts, the models get a turn to think about what went wrong. Continual Harness describes this kind of loop as agents alternating between acting and refining their tools and notes. We wanted to know how much this mattered, and it turns out that it did matter: without it, Astra’s attempts stopped improving and none of its three runs finished (its best attempts reaching 45%, 73%, 25%). With reflection, the runs climbed from attempt to attempt (17% → 17% → 79%, 29% → 79% → 100%, 29% → 36% → 99%), similar to the pattern Fable showed on the real car (where it fixed its distance estimates between attempts).
6The bigger picture
Throughout DrivingBench, we’ve been asking this question: what is the best way for a general AI model to get good at a specific real-world physical task, like driving a car around a cone course? We’ve explored:
- In-context learning. In v1, chat models drove through three tools, and learned only from their own earlier attempts in the same conversation.
- Fine-tuning on human driving data. v2 compared them with vision-language-action models (VLAs) and world-action models (WAMs) fine-tuned on a driving dataset we collected.
- By RL in simulation. In our Inkling post, we trained a small model with RL in a crude simulator, and it drove the real course better than most frontier models do.
- By exploring and writing code. This experiment, where the model gets a few minutes in an RLM harness to explore and practice however it likes before it gets evaluated.
The last idea is inspired by projects such as RAX, where a coding agent explores a robot's environment, writes and tests its own code, and is then evaluated on the task. We tried a small version of that with a real car and six minutes of practice.
6.1Is the course solved?
Completion is getting there for the strongest setups. Time and reliability aren’t. Without practice, the same course still stops most chat models: in v2 only Gemini 4 Carbon finished, and first attempts averaged at most 45%. Astra took 1.6× our human’s time and Fable 14×, while the fine-tuned VLAs finish in about 90 s.
We also tried making it harder in the simulator, in two separate ways: not allowing the model to stop for more than 3 seconds, or capping each attempt at 6 minutes. This barely held Astra back. With the 3-second rule, it drove its first attempts with a continuous control loop instead of stopping to think, and covered 93–100% of the course in under 2 minutes, though only one of the three runs went on to finish. With the 6-minute cap, all three runs finished, in 2–4 minutes. Telling it about the time pressure actually ended up helping its strategy. Fable, whose finishes otherwise took 12–23 minutes, sped up under both rules. With the 3-second rule, all three of its runs finished, two in 2–3 minutes. We had the rule only apply once the car moves, so in the third run Fable sat still for 15 minutes, fitting a cone map to its earlier attempts and searching for a path, then drove it in 2 minutes. With the 6-minute cap, only one run finished, in 5 minutes. The other two came pretty close: one of them reached the end but touched a cone, and the other was able to get to 83% before time ran out.
Harder versions we’d like to try:
- finishes across several independent runs, not one;
- tasks that punish stopping to think: a minimum speed, a lead car to follow, a cone that appears on cue;
- precision: stop inside a 1 m box, or slot between two cones;
- new conditions: night, rain, glare, other cone colors, or tape lines instead of cones;
- tools that carry over: does a new course or a new day get cheaper with yesterday’s tools?
- routes given in words, like “take the second left and loop the island twice”.
6.2What’s next
We’d love to see agents practice somewhere else completely and then drive an unseen course, or have a later or completely different session inherit an earlier one’s tools and see what it would do. Recursion also seems like a natural next step for robotics, e.g. one agent could check perception or compare plans while another keeps driving, or it could call on faster lower-latency models to drive the car more smoothly while it thinks.
And when Prime Intellect released Prime Agent, they pointed out that no model had been trained around it yet. We could try putting these two ideas together, and train a model with RL inside this harness in our simulator (like we did with Inkling), just like how Zhang et al. train a model’s calls inside an RLM on synthetic environments.
The tools these models wrote weren’t perfect. Astra’s adviser was wrong in two important moments, and Fable’s distance estimates were off by up to 40%, by its own account. But they were still really useful, and both models kept checking them against what they actually saw. Or as Astra put it in its note to itself, “do not follow advice() automatically.”
Overall, we hope this experiment serves as a nice introduction to RLMs for roboticists, as we think that many of the features in harnesses like Prime Agent could be crucial for agentic robotics and allow for more powerful use of frontier models and coding agents to complete physical tasks.
Thank you to Alex Zhang and Seth Karten for feedback on an earlier version of this post.
Fine print
This is one run per model on one course, with short practice sessions starting at a straight segment in the middle of the course.
- One evaluated conversation per model: GPT-6.2 Astra (one attempt) and Claude Fable 5.2 (three attempts), both on 20 November in Prime Agent 0.10.5 at high thinking, through the models' own subscriptions, with the narrow and wide cameras. We were limited by daylight since the sun sets quite early here now, so we weren't able to evaluate more models (like Opus and Gemini) in daylight on the same day as we had planned.
- The start area for practice sessions was in the middle straight toward the second half of the course. Neither had driven the first half of the course during practice.
- Progress is measured from GPS against the v2 Course A reference; the course was set out again on the day. Both finishes were confirmed by the safety driver.
- The simulator runs used the car’s prompts, practice and preparation, with Codex CLI 0.171 and Claude Code 2.1.330 as the native apps. A finish is reaching the finish zone, as v2 scored Course A.
- Astra's practice: 50–100% of the course
- Astra's attempt, 4:48
- Fable's practice: 53–64% of the course
- attempts 1 and 2 (17%, 25%)
- attempt 3, finished
Figure 11. Practice (shaded) and the scored attempts that followed, by smoothed GPS (good to a meter or two). Top: Astra. Bottom: Fable, attempts 1 and 2 dashed.
GPT-6.2 Astra
| Function | What it does | Written | Used |
|---|---|---|---|
| cmd · see · view | send a command; read both cameras; print a cone map | practice | 17 commands, 37 looks |
| detect · cones · mapfr | orange-cone detector, pixel → meters, ASCII bird's-eye map | practice | practice, in practice drives |
| repro | least-squares fit of how cones move between two practice frames | preparation | once |
| blobs · wcoords | orange and green detector for the wide camera, ground projection | preparation | every scan |
| advice | scores 41 steering choices by how close each arc passes cones | preparation | every scan (34×), overridden twice |
| bird · road | both cameras plus its cone map in one view | preparation | at the start |
| scan | one call: read, project cones, ask advice() | attempt | 34× |
Claude Fable 5.2
| Function | What it does | Written | Used |
|---|---|---|---|
| logger · go | log speed and steering; command, then look at the end of it | practice | most of its 39 commands |
| cones · cones_wide | cone detectors for each camera | practice → prep | every look |
| ground_n · ground_w | pixel → meters on the ground for each camera | preparation | every look |
| composite · look | both cameras with its path corridor and steering arcs drawn on | preparation | every look |
| est_horizon · bev | per-frame horizon fit from cone sizes; bird's-eye map | between attempts 2 and 3 | all of attempt 3 |
| greens_wide | green finish-cone detector | attempt 3 | finish approach |
| sim · lim | whole-car footprint simulator; which cones limit clearance | attempt 3 | ~6,000 candidate paths |
| go_dist | creep a set distance by integrating measured speed, then stop | attempt 3 | the last two moves |
Figure 12. Every function each agent wrote that ended up driving, when it was written, and how it was used.
References
- Huang, R., Zhang, X., et al. (2026). Scaling Online Exploration for Robot Agents (RAX). arXiv:2610.22496.
- Karten, S., et al. (2026). Continual Harness: Online Adaptation for Self-Improving Foundation Agents. arXiv:2605.09998.
- Prime Intellect (2026). Prime Agent: A self-improving RLM agent. Blog post; code.
- Ramabadran, A., Mahns, S., and Gessler, T. (2026). DrivingBench: Can Vision-Language Models Drive a Toyota Corolla? arXiv:2609.38948.
- Ramabadran, A., Mahns, S., and Gessler, T. (2026). DrivingBench v2 report.
- Ramabadran, A., Mahns, S., and Gessler, T. (2026). Teaching Inkling-2 Small to Drive a Real Car with RL in Simulation.
- Zhang, A. L., Kraska, T., and Khattab, O. (2025). Recursive Language Models. arXiv:2512.24601.
- Zhang, A. L., Chakraborty, S., and Khattab, O. (2026). Language Model Harnesses can be Compositional Generalizers. arXiv:2611.28298.
Citation
Please cite this work as:
@misc{drivingbench2026prime,
title = {RLMs for Robotics: Astra and Fable Drive a Car in Prime Agent},
author = {Aditya Ramabadran and Simon Mahns and Tobias Gessler},
year = {2026},
url = {https://drivingbench.com/blog/prime-agent/},
}