Acompanying code for the research paper Behavior Prompting Policy: Demonstrations as Prompts for Manipulation.
Authors: Austin Patel, Ben Pekarek, Joel Enrique Castro Hernandez, and Shuran Song
For support email Austin Patel (auspatel@stanford.edu)
This reposistory contains a number of useful components to aid with visuomotor policy and behavior prompting research:
- Visuomotor diffusion policy training -- support for language conditioning, goal image conditioning, and in-context behavior prompting
- iPhUMI policy training -- support for single arm and bimanual visuomotor policies
- Robot deployment -- support for a diverse set of robots and sensors
- LIBERO -- policy training and evaluation
- LIBERO-Gen -- an extension to LIBERO that supports procedural generation of environments, tasks, and demonstrations automatically, including policy training, datasets, and evaluation
- DrawAnything-Sim -- a simulation environment to evaluate 2D drawing capability, including policy training, datasets, and evaluation
We take substantial care to make sure each component is cleanly and efficiently implemented and well documented.
If you are looking for the iPhUMI app and associated demonstration processing code, please look at the separate iPhUMI repository.
Clone this repo with submodules
git clone --recurse-submodules git@github.com:real-stanford/behavior_prompting.git
# If you have already cloned without submodules:
git submodule update --init --recursiveOpen workspace in VS Code:
code .vscode/behavior_prompting.code-workspace
# or File -> Open Workspace from FileSetup mamba env:
mamba env create -f environment.yml
mamba activate bp
# if you play to deploy on a real robot
mamba env create -f deps/real-env/env.yaml
# then select the respective Python interpreters in VS Code for both behavior prompting and real-env workspace folders. We provide datasets, checkpoints, and implementations for all of the following:

Refer to the relevant section to get started:
- iPhUMI
- Laundry Folding (iPhUMI)
- DrawAnything-Real (iPhUMI)
- DrawAnything-Sim
- LIBERO
- LIBERO-Gen
- LIBERO(-Gen) in openpi
- Robot Deployment
- Helpers
This code was made possible thanks to the following projects:
If you found this codebase useful in your research, please cite:
@article{patel2026bpp,
title={Behavior Prompting Policy: Demonstrations as Prompts for Manipulation},
author={Austin Patel and Ben Pekarek and Joel Enrique Castro Hernandez and Shuran Song},
year={2026},
journal={arXiv preprint arXiv:2606.30457},
url={https://arxiv.org/abs/2606.30457}
}
This repository is released under the MIT license. See LICENSE for more details.
- Release support for real-time behavior prompting with iPhUMI. Currently we only have released support for the workflow involving: collect demonstration on iPhone -> export manually to computer -> process into dataset -> use to prompt policy. We plan to release support for direct wireless transfer of iPhone demonstration to enable: iPhone demonstration -> prompt policy.
