DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

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.

Short answer: Complete the environment setup with conda activate EmergePolicy from the repository root; then 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; start the Controller in one terminal with python -m robot.controller --driver libero_mujoco --driver-config dev/libero_mujoco_driver_sample.json. All steps.

  • 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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for EMERGE-Policy/EMERGE-Policy and "Run one robot task headlessly and get JSON back"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer