robot-agent-exploration/rax
RAX harness: coding agents that learn robot tasks by online exploration
What it solves
Teaching robots new tasks usually needs a lot of hand-crafted demonstrations or carefully designed action primitives. RAX removes that need entirely. It uses a general-purpose coding agent — the same kind that writes software — to control a robot through tools, let it explore a task on its own, and then turn what it learned into a standalone program. The result: no demonstrations, no human-defined motions, and a final program that runs up to 241 times faster than the original agent.
How it works
RAX works in three steps. First, explore: the agent (for example Codex CLI or Claude Code, with a frozen model) observes the robot and calls tools to act, step by step, recording what succeeds — the preconditions, actions, and effects — in its memory. Second, compile: the agent distills the successful sequence into a Python program, controller.py:main(ctx), made of step functions that check what they see and act accordingly, and it tests that program unattended. Third, evaluate: the frozen program (or a live copy of the agent) runs on held-out scenes it has never seen in simulation, or on real hardware with an operator resetting the scene. Everything the agent learns lives in its workspace: notes, skills, memory, and the compiled code. The system is built so one harness works across many robots — simulation (RoboDojo, BEHAVIOR-1K, HumanoidArena, DexJoCo, LIBERO) and real machines (Franka FR3, Rainbow RB-Y1) — each behind the same tool interface.
Who it's for
RAX is for robotics researchers and engineers who want to teach robots new tasks without collecting demonstrations or writing per-task control code. It is also for anyone who wants to run reproducible robot-agent benchmarks in simulation, port agents to a new robot, or reuse task skills that agents have already learned on real hardware.
Highlights
- No demonstrations needed — no action demos, no hand-engineered primitives, no value-function guidance.
- Exploration scales — success on unseen scenes rises from 25% to 79% as the exploration budget grows from 4 to 128 episodes, beating the previous state-of-the-art (41.2).
- Compiles into fast code — the agent-written program runs up to 241× faster than the agent itself (e.g., 72 minutes down to 18 seconds on an air-fryer task).
- One harness, many robots — single-arm, bimanual, dexterous, mobile, and humanoid robots, both simulated and real, plug in through the same API.
- Open and extensible — the harness is robot-agnostic; a skill library holds task skills agents wrote on real robots, and a companion repository (
skills-lib) persists across sessions. - Support for multiple agent backends — Codex CLI, Claude Code, DeepSeek Harness, and Kimi Code, with options to self-host models (e.g., DeepSeek via vLLM on four H200s).
Related
- Project
- Project
- Project
- Project