Seeed-Jetson-DevelopTool / lerobot-env-setup
AGENTS.md57 starsChanged 4 months agoMITView on GitHub
Set up the LeRobot environment on NVIDIA Jetson (SO-ARM / JetPack 6.0+). Installs Seeed-fork LeRobot with GPU-enabled torch 2.8, pinned numpy 1.26, OpenCV 4.10, and resolves the torch-overwrite trap from editable install. Use when the user asks to install, rebuild, or fix LeRobot on Jetson.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,843 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- maskcam-nanoAGENTS.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run the install script one phase at a time.
- Very specific: line 14
If it printed [STOP] → stop, follow the failure decision tree below
- Very specific: line 15
If it ended with [install] Step N: or [OK] → proceed to next phase
- Distinctive: line 26
All phases use the same script — the script is idempotent.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LeRobot Environment Setup (Jetson / SO-ARM)
Execution model
Run the install script one phase at a time. After each phase:
- Relay the output to the user (show
[install]lines) - If it printed
[STOP]→ stop, follow the failure decision tree below - If it ended with
[install] Step N:or[OK]→ proceed to next phase
Why phases? The torch download is ~254 MB and takes 10–20 min. Running everything in one call risks silent timeout. Phases give the user visibility and a recovery point at each step.
Phase commands
Replace <ENV> with the env name the user requested (default: lerobot).
All phases use the same script — the script is idempotent; already-done steps
are skipped automatically.
Phase 1 — Environment + clone (fast, ~1 min)
bash ~/.codex/skills/lerobot-env-setup/scripts/install_lerobot.sh \
--env <ENV> --robot-type so-arm --phase envPhase 2 — Download wheels (slow, 10–20 min, shows % progress)
bash ~/.codex/skills/lerobot-env-setup/scripts/install_lerobot.sh \
--env <ENV> --robot-type so-arm --phase downloadPhase 3 — Install torch + verify CUDA (fast, ~2 min)
bash ~/.codex/skills/lerobot-env-setup/scripts/install_lerobot.sh \
--env <ENV> --robot-type so-arm --phase torch-prePhase 4 — opencv / ffmpeg / numpy + lerobot editable (medium, ~5 min)
bash ~/.codex/skills/lerobot-env-setup/scripts/install_lerobot.sh \
--env <ENV> --robot-type so-arm --phase depsPhase 5 — Reinstall torch + validate (fast, ~2 min)
bash ~/.codex/skills/lerobot-env-setup/scripts/install_lerobot.sh \
--env <ENV> --robot-type so-arm --phase torch-postFailure decision tree
| Output | Action |
[STOP] conda not found | Ask user: "Please confirm miniconda is installed at ~/miniconda3 or give path" |
[STOP] conda env ... exists but has Python X.Y | Should not happen (script auto-fixes). If seen, run conda env remove -n <ENV> then re-run phase 1 |
[STOP] torch wheel not found after download | SharePoint URL expired. Ask user to re-share wheel files or place them manually in ~/wheels/ |
[STOP] torch.cuda.is_available() = False | Wheel may be corrupt. Run: rm ~/wheels/*.whl then re-run phase 2 and 3 |
[FAIL] Some checks failed | Read which line shows ✗, then check references/conflict_resolution_playbook.md for F1–F7 |
| Script hangs with no output >5 min | Report to user, ask whether to cancel and retry |
After all phases pass — Serial port (SO-ARM only)
if dpkg -l brltty 2>/dev/null | grep -q '^ii'; then sudo apt remove brltty; fi
if ! id -nG | grep -qw dialout; then sudo usermod -aG dialout $USER; fi
if [[ ! -f /etc/udev/rules.d/99-serial-ports.rules ]]; then
sudo tee /etc/udev/rules.d/99-serial-ports.rules > /dev/null <<'EOF'
KERNEL=="ttyUSB[0-9]*", MODE="0666"
KERNEL=="ttyACM[0-9]*", MODE="0666"
EOF
sudo udevadm control --reload-rules && sudo udevadm trigger
fiReference files
references/conflict_resolution_playbook.md— F1–F7 fix playbookreferences/lerobot_env_setup.md— detailed install notesreferences/jetpack_compatibility_matrix.json— version gatesreferences/dependency_mapping_rules.md— install order rules
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

