Get Started
Home
Topics
Search
Library
6 min read · Agents · LLM Training · Added Oct 21 · Paper published Oct 18, 2026

CoworkEnv: Synthesizing Training Environments for Long-Horizon Cowork Agents

Source: research paper via Hugging Face Daily Papers
CoworkEnv tackles the bottleneck in training small tool-using workplace agents: hand-authored sandboxes. It synthesizes executable tasks—request, service state, tools, and a code grader validated by consistency gates—then SFTs an 8B model to lift multi-turn scores from 45.9 to 77.8 on Claw-Eval.

TL;DR

CoworkEnv generates executable training environments for workplace AI agents by jointly synthesizing user requests, service records, tool interfaces, and grading checks, then validating them programmatically before using them for supervised fine-tuning and reinforcement learning on compact models.

Why It Matters

Imagine you want a small open model to handle customer support: it needs to pull up account history, consult a knowledge base, update the right ticket, and never trigger a prohibited action like exporting data. Training such an agent requires more than instruction pairs. It needs a running sandbox where the agent can call tools, see state change, and be graded on whether the right things happened.
Building those sandboxes by hand is slow. Prior open efforts like Nemotron-Terminal focused on terminal and coding agents, and Occamy extended execution-grounded training to coworker-style tasks. CoworkEnv’s angle is to make the synthesis itself the contribution: translate a developer’s target capabilities into executable tasks that work for both imitation learning and interactive RL, so an 8B model can be specialized without hand-authoring every scenario.

How It Works

The core idea is to treat each training task as a bundle that can actually run. A task has four parts: the user’s request, an initial state for the backing services (CRM, helpdesk, mail, finance, etc.), the tool interfaces the agent is allowed to call, and a grader that scores the resulting execution. Formally, each task is a tuple of request, initial state, tools, and grading checks.
An LLM is given a coverage plan that lists which services to combine, difficulty, a fixed reference date, and a scenario description (including distractors and prohibited actions). It drafts the request, seed records, completion checks, and forbidden tool calls. For safety tasks, a Generator role drafts the scenario while a separate Discriminator role, seeing the records but not the full request, writes the checks and prohibited actions. This split keeps the grader from being coached by the request wording.
Before anything is used, programmatic validation runs: do completion weights sum to one, are required and prohibited tools non-conflicting, does the request accidentally leak answer identifiers. A grading-consistency gate then exercises the grader with synthetic tool-call traces: a complete trace must score full marks, an empty trace must score zero, and adding a prohibited call must zero out the safety score. Failures become diagnostic feedback for one regeneration attempt.
Surviving tasks drive two pipelines. A teacher (Claude Code via the Harbor runtime) runs each task to produce scored trajectories, which are filtered and serialized for SFT. The same task definitions are also handed to the RL interface, where the student agent interacts live and the grader computes rewards from its calls.
spec = llm_generate(plan_slot, catalogs, examples) for attempt in range(2): if validate(spec) and grading_gate(spec): break spec = llm_regenerate(spec, feedback) task = package(spec, services, grader) # SFT path trajectory = teacher.run(task) if reward(trajectory) > threshold: sft_pool.add(trajectory) # RL path rollout = student.run(task) advantage = grader.score(rollout)

What They Found

The main evaluation fine-tunes Qwen3-VL-8B-Instruct with LoRA on CoworkEnv data, producing PocketWorker-8B. On Claw-Eval, SFT raises the Overall mean score from 46.6 to 64.1 on a 0 to 100 scale. The Multi-turn subset moves the most, from 45.9 to 77.8, a 31.9-point jump. General tasks rise from 46.7 to 60.9. On reliability metrics, Pass@3 (at least one of three trials scoring at least 0.75) goes from 28.6 to 50.8, and Pass 3 (all three trials passing) from 21.6 to 37.2.
As a cross-benchmark check, an SFT-only variant on ClawMark lifts the mean from 11.8 to 19.4, a 7.6-point gain, suggesting the pipeline is not narrowly tuned to one benchmark.
For RL, four methods (Group Relative Policy Optimization (GRPO), Dr.GRPO, Group Reward-Decoupled Policy Optimization (GDPO), and GiGPO) all start from the same SFT warm-up checkpoint and train about three epochs on CoworkEnv tasks. GDPO reaches the highest Overall score (57.2) and the highest Multi-turn score (74.9, up 29.0 points from base). GRPO is close behind on Overall (56.6) and leads on Multimodal. The authors frame this as evidence that the constructed environments support policy optimization, not as a claim that any one RL method dominates: the comparisons vary multiple design choices at once (reward processing, batch size, step-level credit).
An ablation on SFT data scale shows a monotonic lift: Overall is 50.8 at 20% of data, 55.6 at 50%, and 64.1 at 100%. Smaller PocketWorker-4B SFT gains are more modest (General +7.9, Multi-turn +9.9).

What’s Useful

If you are trying to specialize a small open model for a tool-using workplace agent, the concrete lesson is that multi-turn tool coordination is where SFT on executable tasks pays off most. A ~32-point Multi-turn gain at the 8B scale, from a dataset you generate rather than curate, is the kind of result worth testing on your own tool stack.
The grader-first design is portable even if you do not adopt the full framework. Writing the completion checks and prohibited-action list as code, then running synthetic consistency tests before training, catches ill-specified rewards before they poison a run. Worth adopting even if your task generator is simpler than theirs.
For RL experiments, treat the GRPO vs GDPO vs GiGPO numbers as a sanity check that CoworkEnv rewards are learnable, not as a ranking of methods. The paper is explicit that each comparison bundles several configuration changes, so you cannot read a clean causal story about which optimizer is better.
The authors plan to release the datasets and construction pipeline, and they already share engineering notes in CoworkEnv-Lessons covering harness choices, training-inference mismatch, and credit assignment, which is probably the most immediately useful artifact if you are setting up similar infrastructure.

Caveats

Grader scores only measure what the checks encode. The safety grader for the payment-change example rewards reading the right evidence and penalizes calling forbidden tools, but not calling a forbidden tool is not the same as the agent recognizing fraud or explicitly refusing. Deployments need their own safeguards.
Teacher-success filters discard the lowest-completion tasks and limit demonstrations from easy tasks, which may throw away useful recovery behavior. The authors flag this as an open question.
Comparisons with frontier reference models (Claude Opus 4.6, GPT 5.4, Gemini 3.1 Pro) use scores transcribed from the Claw-Eval paper, not re-run under the same configuration as PocketWorker. The 77.8 Multi-turn score lands in the frontier range but is not a head-to-head claim. Regenerating the teacher trajectories also requires access to a proprietary model service, which affects reproducibility.
Topics
Agents
LLM Training
Reinforcement Learning
Agents
LLM Training
Reinforcement Learning
Up next in Agents
Self-Evolving Coding Agents via Harness-Policy Optimization
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Agents310 episodes
Reinforcement Learning157 episodes
LLM Training199 episodes