Repository navigation
Description
Proposal
A two-stage LLM pipeline that generates Isaac Lab RL environments from a one-line task description. For each task, it outputs:
- Runnable environment config
- MDP implementation files
- Human-readable rationale document explaining every non-trivial decision made
- Validation report highlighting assumptions for review
Motivation
LLMs can accelerate environment development, but they cannot fully replace expert judgment — especially for physics intuition, reward design tradeoffs, and simulation stability decisions.
At the same time, much of Isaac Lab environment development is repetitive: applying known patterns for rewards, resets, PhysX settings, and task structure. These steps are consistent across existing environments and can be abstracted.
The opportunity is to move one layer up in abstraction: from manually coding environments to specifying them. With a structured LLM pipeline, environment creation becomes prompt → generated implementation → targeted human review.
This shifts the role of developers from writing boilerplate to validating key decisions, reducing build time from days to review-scale effort.
Alternatives
Human authoring only (status quo). Correct output guaranteed but bottleneck remains. 17 environments have sat unimplemented for extended periods under this approach.
Single-stage LLM generation. Prompting an LLM directly with a task description and asking for code. This produces plausible-looking output but without grounded physical properties, without the structural separation between physical reasoning and code translation, and without the audit trail that makes output reviewable. In practice it requires as much expert review as writing from scratch.
Template-based generation. Copy an existing environment and modify it manually. Faster than writing from scratch but still requires expert judgment for every physics and reward decision, produces no rationale, and doesn't scale across task types with different physical requirements (contact-rich stacking vs dynamic manipulation vs deformable objects).
Build Info
- Isaac Lab Version: 2.3.2
- Isaac Sim Version: 5.1.0
System architecture summary
The pipeline has two stages, connected by a structured JSON interface.
Stage 1 — Task Analyst
Takes a one-line task description and reasons about the physical world behind it:
- What objects exist
- Their materials and dimensions
- Spatial relationships
- What makes the task difficult
- What can go wrong
Outputs:
task_schema.jsonphysics_properties.json
This stage has no knowledge of Isaac Lab APIs — it only does physical and task-level reasoning.
Stage 2 — Code Generator
Takes both JSON files and translates them into Isaac Lab code using patterns from existing environments.
Key behavior:
- Uses established PhysX presets directly (from Factory, AutoMate, Cabinet) instead of tuning solver values
- Reuses known reward, reset, and structure patterns
- Generates a custom reset function when required (e.g. Jenga tower, pyramids, or other structured setups not covered by existing
mdphelpers)
Outputs six files:
- Environment config
- Rewards
- Terminations
- Events
explanation.mdvalidation_report.json
The explanation layer
The explanation layer is implemented through inline code annotations and a paired explanation.md file.
In the code:
Every line involving a non-trivial decision is annotated inline as a comment:
[D-NNN]— a non-trivial design decision, with a unique ID[ASSUMPTION: ...]— an assumption made due to missing or ambiguous information (the text explains what was assumed and what to verify)[SCHEMA: field.path]— a direct mapping from Stage 1 output with no additional judgment
Example:
# [D-021] custom reset — rebuild tower with positional noise
# [ASSUMPTION: noise_range=2mm, 1deg — standard for hand-stacked towers]
reset_tower = EventTerm(
func=mdp.reset_jenga_tower,
mode="reset",
params={
"num_levels": 18,
"pos_noise": 0.002,
"rot_noise_deg": 1.0,
}
)Each [D-NNN] tag acts as a reference to a detailed explanation.
In explanation.md:
Each decision ID ([D-NNN]) has a corresponding entry with:
- What was generated
- Why it was chosen (grounded in Stage 1 outputs or known patterns)
- Alternatives considered
- Risk (what breaks if incorrect)
- Human check (a concrete, actionable suggestion to validate it in simulation)
Result:
This creates a direct mapping from code → decisions → full reasoning, allowing a reviewer to inspect intent without reverse-engineering the implementation.
The validation report
The validation report is a structured self-check of the generated environment.
It runs a set of consistency and sanity checks over the output, covering things like:
- Simulation stability (e.g. timestep vs contact complexity)
- Completeness (missing fields, uninitialized components)
- Reward structure (e.g. scaling, ordering, conflicts)
- Termination coverage (all failure modes handled)
- Randomization and variability (e.g. friction, initial conditions)
Each check reports:
- An ID and name
- Result (
PASS,WARN,FAIL) - A short, concrete explanation
In addition, the report explicitly lists:
- Assumptions made (linked back to
[D-NNN]decisions in code) - Unresolved questions that require human input
Gating behavior
The report enforces a simple rule:
-
ready_to_run = falseif:- There are unresolved questions, or
- Critical assumptions have not been verified, or
- Generated components (e.g. custom reset logic) introduce risk
This prevents contributors from attempting to train on environments that are likely incorrect or unstable.
What the human actually does
For a typical rigid-body manipulation task, the reviewer:
- Checks 2–3 flagged assumptions (commonly table height, robot base position, episode length)
- Runs a zero-action stability check in the Isaac Lab viewer
- Confirms or corrects issues
Estimated time: 30–60 minutes per environment, instead of days of authoring.
Grounding in existing environments
All PhysX presets, friction values, and reward patterns are taken from real Isaac Lab environments (Factory, AutoMate, Cabinet, Lift, Humanoid, Ant).
The system does not invent new values unless necessary — and flags any deviations explicitly.
Known scope boundary
The system currently supports rigid-body manipulation tasks.
It does not yet cover:
- Cloth
- Fluids
- Deformables
These require simulation backends and APIs not included in the current rule set. The architecture supports them, but the knowledge base does not yet.
Checklist
- I have checked that there is no similar issue in the repo (required)
Acceptance Criteria
- Stage 1 prompt produces valid
task_schema.jsonandphysics_properties.jsonfor all 10 rigid-body "Help Needed" environments without task-specific prompt modification - Stage 2 prompt produces syntactically valid, importable Isaac Lab environment code for at least 3 environments from the "Help Needed" list
- Generated
explanation.mdcontains one entry per non-trivial decision, each with all five required fields (what, why, alternatives, risk, human check) - Generated
validation_report.jsoncorrectly setsready_to_run: falsefor any environment requiring a custom reset function or containing unresolved questions - PhysX preset blocks in generated code match the corresponding blocks in Factory/AutoMate/Cabinet source environments in behavior and parameter values
- Per-object friction randomization, where generated, is labeled as an enhancement rather than standard practice
- A human reviewer unfamiliar with the specific task can complete full review of generated output in under 60 minutes using only the
explanation.mdandvalidation_report.json - Both prompts and a reference orchestrator script are documented and merged under
tools/env_generator/or equivalent location in the repo
Activity
garylvov commentedon Apr 17, 2026
Hi, this is an interesting proposal.
I am bullish on LLMs, but I don't see how this would be significantly different than developing with something like Claude Code manually (or with like a multi-stage agentic architect->implement->review->test pipeline). If this is an improvement on a more manual workflow, I'm not sure that this repo would be the best place for it. Maybe you could make a repo with these prompts/rules/agents and include it in the discussion show-and-tell section! (I would def use some of the agent prompts, I myself have this isaac runner agent I like to use: https://github.com/garylvov/dev_env/blob/main/vibe_coding/agents/isaac-runner.md)
Some more concrete thoughts
That being said, I think if you used these rules to create, verify, and train the environments in the help-wanted issue that would be an awesome contribution! I also would use a separate prompts/agents repo!
knott-todd commentedon Apr 18, 2026
Thanks for the feedback!
In my head the main difference is elevating Vibe-coding up an entire level of abstraction. Think dashboard with summaries of updates, and buttons that trigger/authorize really large but intelligent macros.
Sure, I can make this another repo.
Thanks!
knott-todd commentedon Apr 18, 2026
@garylvov Could I contact you for further feedback if I build this out?
garylvov commentedon Apr 21, 2026
I'm happy to help!
I think this overview makes sense.
I guess some Claude skills are going into this repo actually; #5337
So I think this could be a reasonable place for it, although in an external repo would probably make updating the main faster
garylvov commentedon Apr 21, 2026
I also saw that RoboLab has similar skills: https://github.com/NVlabs/RoboLab/tree/main/skills
So I think including them in this repo would be reasonable!
knott-todd commentedon Apr 21, 2026
Awesome. What's the best way to keep comms on this? Is this thread appropriate?
garylvov commentedon Apr 21, 2026
This thread works! Once you open a PR, we can move to there too. I'm excited to try these out!
StafaH commentedon Sep 21, 2026
Closing this issue due to inactivity. The IsaacLab repo now has a series of skills to help agents work with the framework. Additionally, IsaacLab Arena is the new library ontop of IsaacLab that is agent friendly. Agents can use IsaacLab Arena to turn prompts into environments and act on inside those environments.
Feel free to open targeted issues you encounter for Agentic workflows and we can address those.
[Docs] Document template generation in environment creation skills (#…
[Docs] Document template generation in environment creation skills (#…