DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to run one robot task headlessly and get JSON back with EMERGE Policy

Send one natural-language task to a running Controller and read the JSON result from stdout.

  • Research
  • Intermediate
  • 3 hours
  • From the README
  • Any agent

Who it is forA developer or evaluation engineer who needs to call robot tasks from a script or batch job.

The problemScripts need a non-interactive way to run a task and capture the outcome without opening a terminal interface.

The outcomeThe task runs against the Controller and the result is printed to stdout as JSON, with workspace files stored in ~/.Emerge/workspace.

What you need first

  • Conda and Python 3.12 for the EmergePolicy environment
  • GPUs assigned by index for the model services (OPENPI_GPU, VGGT_GPU, SAM3_GPU)
  • Downloaded model checkpoints placed under checkpoints/ as listed in the README
  • LIBERO-Plus assets.zip downloaded from Hugging Face and extracted into the submodule
  • API configuration, which the first launch of Web or TUI walks you through

Steps

  1. Complete the environment setup with conda activate EmergePolicy from the repository root.
  2. Start the model services with OPENPI_GPU=0 VGGT_GPU=1 SAM3_GPU=2 bash scripts/model_server/start_external_model_servers.sh --services openpi,vggt,sam3. (inferred, check the README)
  3. Start the Controller in one terminal with python -m robot.controller --driver libero_mujoco --driver-config dev/libero_mujoco_driver_sample.json. (inferred, check the README)
  4. In a second terminal, run python -m Emerge.cli.headless "Put the red block in the basket".
  5. Read the JSON result from stdout and check the files in ~/.Emerge/workspace.

Prompt for your agent

In the EMERGE-Policy repo, with the Controller already running, execute `python -m Emerge.cli.headless "<task>"` and capture stdout. Expected output is a JSON result for the task. Verify that the output parses as valid JSON before reporting it.

Caveat. The README says to configure the API through Web or TUI before using Headless, so a script cannot run cold on a fresh machine.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page