[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107624":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},107624,"CUA-Master","xlyu0106\u002FCUA-Master","xlyu0106","CUA-Master: Scaling Computer-use Agents through Open-World Recursive Improvements","",null,"Python",89,8,4,7,0,10,42,17,56.91,false,"main",true,[],"2026-11-03 11:01:57","2026-11-23 17:52:59","# CUAMaster\n\nOfficial codebase for **CUAMaster: Scaling Computer-Use Agents through Open-World Recursive Improvement**.\n\n\n[![arXiv](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2611.003126-b31b1b.svg?style=flat-square)](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2611.03126)\n[![Project Page](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FProject%20Page-homepage-blue.svg?style=flat-square)](https:\u002F\u002Fxlyu0106.github.io\u002FCUA-Master\u002F)\n[![Model](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FModel-HuggingFace-yellow.svg?style=flat-square)](https:\u002F\u002Fhuggingface.co\u002Fyxl66666\u002FCUAMaster-27B)\n[![GitHub](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitHub-Code-black.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fxlyu0106\u002FCUA-Master)\n\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fimg\u002Fcom.png\" width=\"100%\" alt=\"com\" \u002F>\n\u003C\u002Fp>\n\n\n## Installation\n\n```bash\npip install -e \".[seeding,annotator,collection,dev]\"\ncp .env.example .env    # fill in your API keys and sandbox service endpoints\n```\n\n## Overview\n\n1. **Corpus harvesting** — `cuamaster.seeding.harvesting` retrieves instructional videos with taxonomy-driven compositional queries (`configs\u002Fseeding\u002Ftaxonomy.yaml`, 8 domains \u002F 36 subdomains \u002F 650+ apps), then deduplicates and filters them.\n2. **Suitability scoring** — `cuamaster.seeding.scoring` transcribes audio and scores CUA suitability with an annotator model (`prompts\u002Fvideo_suitability_scoring.txt`).\n3. **Seed task mining & dual-path reconstruction** — `cuamaster.seeding.reconstruction` segments tasks and reconstructs trajectories by intersecting semantic triggers (transcript clauses) with visual triggers (frame-change detection) into a boundary lattice, then rechecks, annotates, and verifies them.\n4. **Primitive extraction & task synthesis** — `cuamaster.propagation` abstracts seed tasks into reusable ability primitives and composes them into verifiable tasks under explicit complexity control (K primitives, N applications).\n5. **Resilient trajectory collection** — `cuamaster.collection` rolls out tasks in sandboxed environments with feedback-guided snapshot-rollback retries. The sandbox manager is exposed as a provider interface (`cuamaster\u002Fcollection\u002Fproviders\u002F`); plug in your own VM\u002Fsandbox orchestration backend.\n6. **Model training** — `scripts\u002Fprepare_*_sft.py` convert verified trajectories into SFT datasets (ms-swift format); RL uses the task-specific verifiers for outcome-based rewards.\n\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fimg\u002Fmethod.png\" width=\"100%\" alt=\"com\" \u002F>\n\u003C\u002Fp>\n\n## Quick Start\n\nEvery CLI below supports `--help` for the full option list. Installed console\ncommands (`cuamaster-*`) are available after `pip install -e .`; the\n`python -m` forms work the same way.\n\n### 1. Open-world seeding (videos → verified seed trajectories)\n\n```bash\n# Search for candidate instructional videos (metadata only, no download).\npython -m cuamaster.seeding.harvesting.search_cli \\\n    --config configs\u002Fseeding\u002Fsources.example.yaml\n\n# Download the selected videos (metadata JSONL in, mp4 files out).\npython -m cuamaster.seeding.harvesting.download \\\n    --inputs data\u002Fsearch_results\u002F*.jsonl --out-dir data\u002Fvideos\n\n# Transcribe audio with faster-whisper (timestamped segments JSON).\npython -m cuamaster.seeding.transcription.transcribe \\\n    --input-dir data\u002Fvideos --output-dir data\u002Ftranscripts\n\n# Score each video 0–5 for CUA suitability (prompts\u002Fvideo_suitability_scoring.txt).\npython -m cuamaster.seeding.scoring.score \\\n    --input-dir data\u002Fvideos --transcript-dir data\u002Ftranscripts \\\n    --output-dir data\u002Fscores --backend openai --summarize\n\n# Dual-path trajectory reconstruction: seed task mining, boundary lattice,\n# action annotation, and trajectory verification in one pass.\n# --input is the score-filtered video metadata JSONL (see cuamaster.seeding.cleaning).\npython -m cuamaster.seeding.reconstruction.construct \\\n    --config configs\u002Fseeding\u002Freconstruction.example.yaml \\\n    --input data\u002Ffiltered_videos.jsonl --output-dir data\u002Fseed_tasks\n```\n\n`cuamaster.seeding.cleaning` (dedup \u002F noise filtering \u002F merging) and\n`cuamaster.seeding.rewriting` (action rewriting) expose `python -m` CLIs in the\nsame style for post-processing reconstructed trajectories.\n\n### 2. Autocatalytic propagation (seed tasks → synthesized verifiable tasks)\n\n```bash\n# Extract ability primitives, compose new tasks (K primitives × N apps),\n# build task-level verifiers, and compile to executable benchmark format.\ncuamaster-synthesize --config configs\u002Fpropagation\u002Fexample.yaml \\\n    --output-dir data\u002Fgenerated_tasks\n```\n\n### 3. Trajectory collection (tasks → trajectories, snapshot-rollback retries)\n\n```bash\n# End-to-end smoke test without any VM: a mock runner that honors the\n# collector's external-runner contract (see examples\u002Fmock_runner.py).\ncuamaster-collect --config configs\u002Fcollection\u002Fmock_command.example.json \\\n    --output-root data\u002Fmock_collection\n\n# Register \u002F inspect versioned VM images used by the collector.\ncuamaster-vm-images --store vm_images list\n\n# Inspect versioned task specifications before a run.\ncuamaster-tasks data\u002Fgenerated_tasks --require-evaluator\n\n# Roll out tasks over the VM profile matrix with snapshot-rollback retries.\ncuamaster-collect --config configs\u002Fcollection\u002Fvm_matrix.example.json \\\n    --output-root data\u002Fcollection\n\n# Export accepted episodes as an SFT-ready dataset.\ncuamaster-dataset --collection-root data\u002Fcollection --output-dir data\u002Fdataset\n```\n\nThe collector talks to VMs through the `SandboxProvider` interface\n(`cuamaster\u002Fcollection\u002Fproviders\u002Fsandbox.py`); wire in your own orchestration\nvia the provider registry, or use the generic command backend\n(`configs\u002Fcollection\u002Fcommand_backend.example.json`).\n\n### 4. Training data preparation\n\n```bash\n# Convert reconstructed seed trajectories into ms-swift SFT format.\npython -m scripts.prepare_cua_swift_sft \\\n    --cua-root data\u002Fseed_tasks --rank-paths data\u002Fscores --output-dir data\u002Fsft\n\n# Convert collected trajectories (canonical runtime protocol) into SFT format.\npython -m scripts.prepare_traj_collection_canonical_runtime_sft \\\n    --root data\u002Fcollection --output data\u002Fsft\u002Fcollection.jsonl\n\n# Merge trajectory directories without overwriting logical duplicates.\npython -m scripts.merge_cua_datasets \\\n    --primary data\u002Fseed_tasks --secondary data\u002Fseed_tasks_v2 --output data\u002Fmerged\n```\n\n`scripts\u002F` also provides balanced sampling (`sample_jsonl_balanced`), dataset\nsplitting (`split_swift_jsonl_by_image_group`), and an end-to-end\ntask→trajectory driver (`task_trajectory_pipeline`).\n\n### 5. Runtime & benchmarks (library use)\n\n```python\nfrom cuamaster.action_space import CUAAction, validate_action\nfrom cuamaster.runtime import CanonicalEpisodeRunner, OpenAICompatibleModel\nfrom cuamaster.benchmarks import INTERACTION_HARNESSES  # GUI \u002F CLI \u002F hybrid modes\n\nvalidate_action({\"type\": \"computer.click\", \"args\": {\"x\": 500, \"y\": 300}})  # [0,1000] coords\n```\n\n\n## Citation\n\n```bibtex\n@article{yu2026cuamaster,\n  title={CUA-Master: Scaling Computer-use Agents through Open-World Recursive Improvements},\n  author={Yu, Xinlei and Li, Gen and Zhao, Ji and Chen, Zhangquan and Wang, Congcong and Dong, Shuai and Peng, Zelin and Xu, Yuqi and Wu, Hongrui and Tuo, Kaiwen and Yang, Cheng and Feng, Kaituo and Wu, Yifan and Zhang, Jiayi and Wu, Dongming and Shao, Wenqi and Wang, Jiaqi and Yue, Xiangyu},\n  journal={arXiv preprint arXiv:2611.03126},\n  year={2026}\n}\n```\n\n\n## Acknowledgements\nWe sincerely thank for the open-source code for [OpenComputer](https:\u002F\u002Fgithub.com\u002Fecho0715\u002FOpenComputer), [ScaleCUA](https:\u002F\u002Fgithub.com\u002FTHUDM\u002FSCALE-CUA) and [Weavebench](https:\u002F\u002Fgithub.com\u002Fweavebench\u002FWeaveBench).\n","CUA-Master 是一个面向计算机使用智能体（Computer-Use Agent, CUA）规模化构建的开源框架，旨在通过开放世界递归改进机制持续生成高质量、可验证的交互式任务轨迹。其核心流程涵盖视频语料采集、适用性评分、多模态任务边界重建、能力原语抽象与合成、沙箱化鲁棒轨迹收集，以及基于任务验证器的监督微调与强化学习数据准备。项目采用模块化设计，支持自定义沙箱后端与多源视频输入，强调任务复杂度可控与轨迹可验证性。适用于需要构建真实桌面\u002F操作系统级交互能力的AI代理研发场景，如自动化办公、跨应用操作训练、GUI智能体开发等。",2,"2026-11-24 04:32:26","CREATED_QUERY"]