Skip to content

Develop a program

Write and run a task program using Hylo's perception, grasping and motion-planning tools. Start with the task, robot, observations and success conditions, then test the program across initial states.

code.program executes a hand-written or frozen solve(robot) program. code.llm writes and executes code one turn at a time during an episode. For policy and tool-calling alternatives, see Agents. For repeated development cases and frozen submissions, follow Program skills.

Setup

Use the development workspace, with harness and bench installed. It includes hylo-manip, hylo-code-agents and hylo-tools. Camera-based tasks need an off-screen renderer. Robot models are downloaded into the asset cache on first use; a reference program needs no language model. code.llm and research additionally need a configured chat backend, such as a local Ollama endpoint or a supported API.

Start with a supported MuJoCo manipulation task. LIBERO uses a separate runtime. Check the adapter validation records before choosing another environment; an available adapter alone does not establish task success.

Robot tools

The environment publishes a RobotSpec: arms, hands, cameras, frames and action layout. The robot facade provides tools over that contract:

Work Tools
Observe and locate status, look, find, table, objects, box
Choose a manipulation goal grasps, hand_grasps, grasp_at, place_at, Goal
Plan and execute plan, run, together
Check and inspect holding, carried, show

robot.run sends an action chunk back to the kernel. Every executed action passes the SafetyShield and is recorded. Tools use the robot contract; the environment retains the task's success predicate. See the toolkit API for parameters and return types.

Simulator segmentation is privileged perception. Keep it explicit in the environment config and compare runs with the same observation conditions. A result using segmentation is not a like-for-like comparison with an RGB-only policy.

Run a program

From the workspace root, after configuring rendering:

uv run python harness/adapters/hylo-code-agents/examples/programs/run_programs.py \
    --suite manip --tasks pick_place --workers 1 --parallel 1 --out runs/strategy-pick-place

This evaluates the hand-written reference solve(robot) on the validation split, records traces, and writes results.json, results.md and generated experiment configs under the output directory. It demonstrates the toolkit; it is not evidence that a model independently discovered the strategy. Suites bimanual and humanoid use the same runner.

To develop your own program, use the generated config as a starting point. code.program takes source text in agent.params.source for experiments, or a sealed program in agent.params.artifact. Source text is the program itself, not a Python filename. Keep the benchmark and environment fixed while changing the strategy.

For a model that writes code during the episode, use agent.type: code.llm and a model specification in its params.

Model tools

hylo tool exposes segmentation, depth, meshes, motion extraction and rendering. Each heavy model runs in a separate worker environment; the first call can install dependencies and download weights. Current mesh, hand and human tools have fallback backends because their primary models have access or registration requirements. The tools README records backends, licences and timings.

For experimental scene generation, replay and motion-authoring workflows, consult the validation records for supported conditions and known failures.

Tool agents

code.llm and tools.llm use the same robot tools. code.llm writes Python blocks, which suits tasks a program can express in a few lines and keeps the code for reuse. tools.llm calls one tool at a time with JSON arguments; every action is refused or confirmed with a measured receipt before the model decides again, which suits models trained for tool calls and makes each step visible. See Tool-calling agents.

To try a task with another robot or in another scene first, build it as a world: 24 robot packs, cameras, people, goals checked with reason codes.

Validation

Inspect task success, steps, safety interventions and traces across more than one initial state. Record the robot, task, observation conditions and program version. Development successes do not establish generalisation; freeze the program and evaluate separately before making that claim.

For a first skill, compare the frozen implementation with the task's success and safety requirements. For an improved skill version, also compare it with the previous implementation. A promoted program can become a verified program skill for later code agents; deployment on a target workcell remains a separate check.

Programs execute in a restricted Python namespace in the host process. This is not operating-system isolation and does not limit memory. Read Security before running generated code.

Next

  • Program skills: develop and freeze a program with a model.
  • Experiments: run a program under explicit task conditions.
  • Skills: retain and reuse verified capabilities.