{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "emerge-policy-emerge-policy--run-single-task-headless",
 "repo": "EMERGE-Policy/EMERGE-Policy",
 "repo_url": "https://github.com/EMERGE-Policy/EMERGE-Policy",
 "repo_slug": "emerge-policy-emerge-policy",
 "title": "Run one robot task headlessly and get JSON back",
 "page_title": "How to run one robot task headlessly and get JSON back with EMERGE Policy",
 "summary": "Send one natural-language task to a running Controller and read the JSON result from stdout.",
 "who": "A developer or evaluation engineer who needs to call robot tasks from a script or batch job.",
 "problem": "Scripts need a non-interactive way to run a task and capture the outcome without opening a terminal interface.",
 "outcome": "The task runs against the Controller and the result is printed to stdout as JSON, with workspace files stored in ~/.Emerge/workspace.",
 "steps": [
  "Complete the environment setup with `conda activate EmergePolicy` from the repository root.",
  "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)",
  "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)",
  "In a second terminal, run `python -m Emerge.cli.headless \"Put the red block in the basket\"`.",
  "Read the JSON result from stdout and check the files in ~/.Emerge/workspace."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "3 hours",
 "basis": "readme",
 "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.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/emerge-policy-emerge-policy/run-single-task-headless/",
 "md": "https://dedupedai.com/use-cases/emerge-policy-emerge-policy/run-single-task-headless/index.md",
 "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 hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/emerge-policy-emerge-policy--run-single-task-headless.json",
 "api_version": "v1"
}
