arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.24960

CoworkEnv: Synthesizing Training Environments for Long-Horizon Cowork Agents

Zhongwei Xie, Yiming Du, Jiaxin Bai, Baixuan Xu, Chunyang Li, Xiyu Ren, Wei Fan, Tianshi Zheng, Weizhi Du, Jingqiao Yu, Xingsu Li, Zhaowei Wang, Yangqiu Song

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

AI coworkers must coordinate tools, communicate across turns, and act on changing workspace state while respecting workflow constraints. Constructing training experience for these capabilities requires coherent requests, service records, tool interfaces, and grading checks. We present CoworkEnv, a capability-guided framework for synthesizing executable training environments for AI coworkers. Workflow requirements guide task construction, and programmatic validation with feedback repair checks generated specifications and grading behavior. Teacher executions yield curated demonstrations for supervised fine-tuning (SFT), while student interactions provide rollouts and rewards for reinforcement learning (RL). Using these resources, we train compact PocketWorker models. For Qwen3-VL-8B-Instruct, SFT raises the mean score from 46.6 to 64.1 on Claw-Eval, including a 31.9-point gain on Multi-turn tasks. An SFT-only extension to ClawMark demonstrates applicability across coworker benchmarks. We further compare RL training dynamics across configurations that vary reward processing and credit assignment. Improving training rewards provide preliminary evidence that the constructed environments support policy optimization.

1. Introduction

AI coworkers are expected to carry out everyday work through sustained interaction with users, tools, and a changing workspace. Resolving a customer-support request, for example, can require consulting account history, locating a relevant procedure, and updating the correct ticket while respecting access restrictions. Such workflows combine multi-turn communication, information gathering, tool coordination, and decisions about when to act [Trivedi et al., 2024, Xu et al., 2026b, Yao et al., 2024]. Recent coworker models and benchmarks make these capabilities explicit targets for agent development [Chen et al., 2026a, Meng et al., 2026, Wang et al., 2026b, Ye et al., 2026]. Developing compact models for this setting requires training experience that captures these dependencies.

Constructing that experience is a central challenge. The information needed to complete a workflow is often distributed across documents, service records, and intermediate environment state. Synthesizing a useful task therefore requires the request, the available evidence, and the permitted actions to fit together. Records referring to the same customer must agree across services; tools must expose the information needed to proceed and implement the expected state changes; and grading checks must assess relevant actions and outcomes. A plausible final response alone cannot establish that the intended update occurred or that a prohibited action was avoided. These requirements make executable environment construction and verification integral to data synthesis, as also emphasized in coworker evaluation and computer-use training [Meng et al., 2026, Wang et al., 2026a].

Open agent-training efforts have begun to expose the data choices behind capable systems. Nemotron-Terminal and SERA study synthetic tasks and demonstrations for terminal and coding agents, while OpenThoughts-Agent investigates data curation across agentic tasks [Pi et al., 2026, Raoof et al., 2026, Shen et al., 2026]. Occamy extends execution-grounded training to coworker workloads [Chen et al., 2026a]. Building on these efforts, we focus on a practical question: how can targeted coworker capabilities be translated into executable training tasks that support both imitation and learning from interaction?

We present CoworkEnv, a capability-guided framework for synthesizing executable training environments for AI coworkers. Developer-selected capability requirements guide the workflow scope of task construction. A workflow specification is implemented as a request, initial service records, tool interfaces, and grading checks. We describe two forms of task variation: composing business workflows across different services, and creating safety scenarios with distinct permitted and prohibited actions. Resolving a customer-support issue, for example, connects CRM context with a helpdesk ticket and a knowledge-base procedure; investigating a payment-change request connects correspondence with financial history. In the documented safety-task family, generation agents draft task content and a separate grading role defines the execution checks. Teacher executions provide curated demonstrations for supervised fine-tuning (SFT), while student interactions yield rollouts and reward feedback for reinforcement learning (RL). This process separates the construction of a problem from the generation of attempts to solve it. Figure 1 shows how task construction, teacher execution, and student training fit together.

To assess the training utility of these resources, we fine-tune Qwen3-VL-8B-Instruct [Bai et al., 2025] to obtain PocketWorker-8B. SFT raises the mean score from 46.6 to 64.1 on Claw-Eval tasks, with a 31.9-point gain on Multi-turn tasks. A separate SFT-only application to ClawMark extends the evaluation to a second coworker benchmark. We also compare training configurations for GRPO, Dr.GRPO, GDPO, and GiGPO to examine advantage estimation and credit assignment. Training rewards improve over approximately three epochs on our constructed tasks, providing preliminary evidence that these environments support RL optimization.

Our contributions are:

① Capability-guided synthesis of executable coworker environments. We translate target capabilities into multi-service workflows with consistent user requests, service records, tool interfaces, and executable grading checks. Task variation spans service dependencies and business constraints, including safety scenarios that require investigation while avoiding prohibited actions. Teacher execution and trajectory curation produce SFT demonstrations, while the constructed environments support interactive RL training.

② Training utility and analysis. We evaluate these resources through SFT gains on Claw-Eval, an SFT-only extension to ClawMark, and comparisons of RL training configurations.

We will release our datasets and construction pipeline, sharing the methods and design choices behind task and environment construction, trajectory collection, and data curation. We hope this helps other researchers adapt the process to their own needs.

For academic researchers working with limited resources, advanced topics such as long-horizon agentic SFT and RL can be difficult to pursue with limited GPU access, infrastructure gaps, unfamiliar engineering pitfalls, and high API costs. Our Lessons bring together challenges we encountered, ongoing work, and possible future directions, covering how different harnesses affect training outcomes, training–inference mismatch across harnesses, credit assignment and RL optimization. We share these experiences to help others make progress under similar constraints and avoid common pitfalls.

References (81)