Building Open-Source RL Environments from Real-World Coding Tasks for Model Training

cline · Tech · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: RL environments and benchmarks for coding agents

Cline argues that coding-agent progress is bottlenecked less by clever scaffolding and more by the quality of benchmarks and RL environments that frontier models train on. Real-world coding tasks from actual agent users contain the hard failure modes that improve models, but major agent labs often keep that data and their internal benchmarks closed. Cline's goal is to turn real open-source coding work into standardized, inspectable, portable benchmark and RL environments that can be used for evaluation, SFT, and reinforcement learning.

Constraints:

Architecture

Cline built an RL-environments factory and announced Cline Bench. The factory starts from real coding-agent task data and uses sub-agents to qualify whether a task can become an RL environment. Qualification checks origin validity, the user's journey and intent, and the real-world outcome. The build phase performs archaeology by reconstructing starting and ending code states locally, documenting obstacles and dependencies, containerizing the environment with Docker while removing Git, defining an outcome-oriented verifier, and recording agent work traces/trajectories. Cline Bench packages these environments as open-source standardized RL/eval/SFT substrates so the community can inspect, run, and contribute real software-development tasks.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  cline-provider-opt-in["Cline provider opt-in"] --> candidate-task-stream["Candidate task stream"]
  candidate-task-stream --> qualification-sub-agents["Qualification sub-agents"]
  qualification-sub-agents --> origin-validator["Origin validator"]
  qualification-sub-agents --> journey-analyzer["Journey analyzer"]
  qualification-sub-agents --> outcome-finder["Outcome finder"]
  qualification-sub-agents --> disqualifier-filter["Disqualifier filter"]
  outcome-finder --> environment-builder["Environment builder"]
  environment-builder --> docker-container["Docker container"]
  environment-builder --> outcome-verifier["Outcome verifier"]
  environment-builder --> trace-recorder["Trace recorder"]
  docker-container --> coding-agent-under-test["Coding agent under test"]
  coding-agent-under-test --> outcome-verifier
  coding-agent-under-test --> trace-recorder
  outcome-verifier --> cline-bench["Cline Bench"]
  trace-recorder --> cline-bench
  community-contributors["Community contributors"] --> cline-provider-opt-in
  cline-bench --> model-training-consumers["Model training consumers"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Cline provider opt-in User-facing opt-in path that captures real open-source coding tasks while developers work with Cline. Candidate task stream
Candidate task stream Real-world agent coding interactions, especially cases where a frontier model gets stuck and a human fixes the issue. Cline provider opt-in, Qualification sub-agents
Qualification sub-agents Parallel agents that decide whether a task is suitable to turn into an RL environment. Candidate task stream, Origin validator, Journey analyzer, Outcome finder, Disqualifier filter
Origin validator Checks whether the repository exists, the starting commit is accessible, and the project is open source. Qualification sub-agents
Journey analyzer Reads the starting prompt and follow-up prompts to infer the user's intended task. Qualification sub-agents
Outcome finder Finds commits or pull requests that solved the problem in real life. Qualification sub-agents, Environment builder
Disqualifier filter Rejects trivial, unreliable, or poorly grounded tasks before environment construction. Qualification sub-agents
Environment builder Build phase that reconstructs code states, documents dependencies, containerizes the environment, and defines the verifier. Outcome finder, Docker container, Outcome verifier, Trace recorder
Docker container Portable environment containing the starting state for the agent task, with Git removed to prevent reward hacking. Environment builder, Coding agent under test
Outcome verifier Pure outcome-driven test that scores whether the final task state is correct or acceptable. Docker container, Coding agent under test, Cline Bench
Trace recorder Records agent trajectories and traces for inspection and scoring. Environment builder, Coding agent under test, Cline Bench
Coding agent under test Model/agent being measured or trained inside the benchmark or RL environment. Docker container, Outcome verifier, Trace recorder
Cline Bench Open-source benchmark and RL/eval environment collection built from real software-development work. Outcome verifier, Trace recorder, Community contributors, Model training consumers
Community contributors Developers who contribute candidate tasks by using Cline on open-source projects and opting in. Cline provider opt-in, Cline Bench
Model training consumers Labs or users who run the environments for SFT, RL, eval, and model improvement. Cline Bench

Data flow

A user works on an open-source project with the Cline provider turned on and opts into Cline Bench. When a frontier model gets stuck and the user intervenes, the interaction becomes a candidate task. Parallel sub-agents qualify the task by checking the repository, starting commit, open-source status, prompt journey, follow-up prompts, and whether real commits or PRs fixed the issue. The environment builder reconstructs the start and end states, builds and verifies the bug and solution, documents dependencies, creates a Docker container without Git, and defines a verifier that checks the task outcome. The final artifact is a portable benchmark/RL environment with recorded traces that model labs or users can run for evaluation, SFT, RL, or training-data creation.

6 supporting quotes
“better name there, but that's what we got so far. And the first phase in this pipeline is you get sub agents and you have them qualify tasks. And these sub agents, they work in parallel to decide whether or not given tasks are suitable to be turned into RL environments”transcript, stated
“does the repository actually exist. Is the starting commit accessible? Is it open source? The journey where you look at the starting prompt, the other follow-on prompts that the user might have followed up with with the agent. You have to try to understand”transcript, stated
“you actually reconstruct both states locally. You pull down the code, you see if you can implement it yourself”transcript, stated
“exists. You document every obstacle and dependency. You containerize it with Docker, removing Git obviously, so agents can't reward hack. And lastly, you define the verifier at the end. And this is where it gets into like a little bit of the art of building a good verifier. And I want to talk about”transcript, stated
“Agent work is recorded so you can see the traces the trajectory that the agent took to complete the task and you can reliably score it and verify it and it's fully portable. You can run it on any device. So the path to automation that we've been undertaking”transcript, stated
“locked away data sets. You can openly run it yourself and inspect it to see how it works. Anyone can use these environments for SFT, RL, eval, whatever. The point is is to just give the entire ecosystem a real substrate to measure and improve models on, not just leak code”transcript, stated

Why this architecture

Cline's architecture is built around the claim that benchmarks and RL environments, not agent scaffolding, are what teach frontier models new capabilities. By using real user coding work, qualifying tasks for reliable start/end states, reconstructing them in Docker, and building outcome verifiers, Cline creates environments that can both measure models and improve them when used for RL. Making the benchmark open source is intended to avoid closed internal benchmark lock-in and give the ecosystem a shared substrate for model improvement.

5 supporting quotes
“takeaway here is that capability beats scaffolding. If you get out of the model's way, it will perform just fine.”transcript, stated
“previous slide. The only real difference, the only distinction here is how the reward is used. Benchmarks measure models. RL environments improve models. The score doesn't just stop in a leaderboard where you publish the results. The score is actually used to update the weights”transcript, stated
“here is how the reward is used. Benchmarks measure models. RL environments improve models. The score doesn't just stop in a leaderboard where you publish the results. The score is actually used to update the weights of the policy model. So, how do you transform real world coding data into”transcript, stated
“improve models. The score doesn't just stop in a leaderboard where you publish the results. The score is actually used to update the weights of the policy model. So, how do you transform real world coding data into useful RL environments for training? At Klein, we created the system”transcript, stated
“The point is is to just give the entire ecosystem a real substrate to measure and improve models on, not just leak code puzzles. And this only works if the community contributes. And the good news is you don't actually need to do anything special. Just work”transcript, stated

Models used: Gemini 3.0 · Sonnet 4 · Sonnet 4.5 · Gemini 2.5 · GPT-5 · GPT-5.1 · Frontier models

Scale

Alternatives considered (roads not taken)

Keep adding clever RAG, search-tree, and tool-calling scaffolds around coding agents.

Rejected because: Cline argues that frontier models increasingly outperform clever scaffolds, and stronger models plus better training environments matter more than agent-stack cleverness.

3 supporting quotes
“along the way. So let's start with the bitter truth. For years we compensated for weak models by building clever scaffolds around them. All kinds of clever ideas like rag indexing systems, search trees, tool calling scaffolds, all this was invented to cope with weaker models. And Frontier models”transcript, stated
“All kinds of clever ideas like rag indexing systems, search trees, tool calling scaffolds, all this was invented to cope with weaker models. And Frontier models simply bulldoze those abstractions. Now, you don't really need your scaffolding anymore. Your”transcript, stated
“models simply bulldoze those abstractions. Now, you don't really need your scaffolding anymore. Your scaffolding just gets in the way of these models. And the question really isn't how fancy is your agent stack. Increasingly, it's how strong is the model driving it. And”transcript, stated

Use closed internal benchmarks to justify private agent systems.

Rejected because: The talk argues closed benchmark data cannot be studied or inspected and slows frontier research, so Cline Bench is open source.

3 supporting quotes
“These same companies site internal benchmarks to justify legacy systems that they spent months maintaining. But curiously, you'll never be able to study or inspect them because they don't publish them openly. And this data is so valuable yet no one shares”transcript, stated
“that they spent months maintaining. But curiously, you'll never be able to study or inspect them because they don't publish them openly. And this data is so valuable yet no one shares it. It's the only thing that actually moves the needle. And here's the heart of my argument is by standing between”transcript, stated
“and anyone can participate. So here's how it works. The whole thing is open source. There's no secret sauce, no locked away data sets. You can openly run it yourself and inspect it to see how it works. Anyone can use these environments for SFT, RL, eval, whatever. The point is is to just give the”transcript, stated

Write verifiers that enforce the ground-truth implementation path.

Rejected because: Cline recommends pure outcome verification because over-prescriptive tests can reward incidental implementation details rather than task success.

3 supporting quotes
“the water is boiling is a little whistle attachment that goes inside your teac kettle. And the whistle is a pure outcome verification. And it's an example of a pure outcome driven verifier where the water either reached the boiling point or it didn't. Either”transcript, stated
“The kettle doesn't care how you achieved it, whether you used a gas stove, an electric induction stove, or a campfire.”transcript, stated
“don't overprescribe based on the ground truth test for the spirit of the task test for the outcome of the task.”transcript, stated

Keep environment construction as a manual engineering workflow.

Rejected because: The team is automating the conversion of real coding data into RL environments, cutting environment creation from 16 hours to under 20 minutes per task and shifting the bottleneck to high-quality task collection.

3 supporting quotes
“can we fully automate the process of converting real world coding data into RL environments for the purpose of training models.”transcript, stated
“manual but then the first time in the RL environment was like about 16 hours of my time. And what used to take 16 hours now takes less than 20 minutes per task. And we're building towards a fully automated RL environment factory where the bottleneck shifts from engineering to collecting”transcript, stated
“minutes per task. And we're building towards a fully automated RL environment factory where the bottleneck shifts from engineering to collecting high quality tasks. And an interesting kind of point here, the natural endpoint of all this is what if we actually built RL environments and”transcript, stated

Use toy coding tasks such as building trivial apps.

Rejected because: The qualification process disqualifies trivial tasks and focuses on real engineering tasks that have reliable start and end states.

3 supporting quotes
“vibecoded slop, we don't need another benchmark that tests for, you know, build the next.js app uh from scratch.”transcript, stated
“disqualify trivial tasks that are too easy and tasks that have no reliable start or end states. And lastly, what makes a good RL environment good? How do we actually make an RL environment and what makes a good test or verifier? So phase two of this pipeline”transcript, stated
“This is real software development captured and packaged into standardized RL and inval and eval environments and this is the benchmark that we always wanted someone else to build. No one did. So we're doing it and anyone can participate. So here's how it”transcript, stated

Patterns

eval-driven-development (benchmarking)

Cline turns real coding work into benchmark and eval environments with starting states, prompts, traces, and outcome verifiers so models can be measured on meaningful software-development tasks.

3 supporting quotes
“A benchmark put simply it's an environment. It's a so in our case it's like a docker container where you let the agent run wild.”transcript, stated
“It's a starting state which is the snapshot of the code when you started working on a real world coding task as well as a starting prompt.”transcript, stated
“the last thing is a verifier at the end that checks whether an end state is correct or acceptable.”transcript, stated

data-quality-loop (training-data)

The system captures real developer interactions, identifies where frontier models struggle, and turns those cases into shared training/evaluation environments.

3 supporting quotes
“If a frontier model gets stuck and you step in to fix it, that's actually a ideal task for to be a candidate for a benchmark”transcript, stated
“Just use the climb provider, see where the model struggles and we'll pick it up and introduce it into this open-source benchmark.”transcript, stated
“Models don't improve without this data and keeping them closed is slowing down Frontier Research.”transcript, stated

batch-offline-processing (dataset-construction)

The RL-environments factory processes captured tasks through qualification, reconstruction, containerization, and verifier-building phases before publishing benchmark artifacts.

3 supporting quotes
“At Klein, we created the system called an RL environments factory.”transcript, stated
“the first phase in this pipeline is you get sub agents and you have them qualify tasks.”transcript, stated
“phase two of this pipeline is building the actual RL environment.”transcript, stated

multi-agent-orchestration (pipeline)

Qualification is delegated to parallel sub-agents that inspect origins, journey, outcome, and disqualifiers before the environment build phase.

3 supporting quotes
“And the first phase in this pipeline is you get sub agents and you have them qualify tasks. And these sub agents, they work in parallel to decide whether or not given tasks are suitable to be turned into RL environments for the purpose of training.”transcript, stated
“these sub agents, they work in parallel to decide whether or not given tasks are suitable”transcript, stated
“And we're actively looking for easy disqualifiers as part of this. So, things like vibecoded slop, we don't need another benchmark that tests for, you know, build the next.”transcript, stated

observability-tracing (benchmark-audit)

Each environment records the agent's traces and trajectory so benchmark users can inspect how the task was completed and reliably score it.

3 supporting quotes
“Agent work is recorded so you can see the traces the trajectory that the agent took to complete the task”transcript, stated
“you can reliably score it and verify it and it's fully portable.”transcript, stated
“You can openly run it yourself and inspect it to see how it works.”transcript, stated

fine-tuning-adaptation (model-training)

The same standardized environments can be used for SFT and RL so model behavior improves from real coding-task reward signals rather than only leaderboard measurement.

3 supporting quotes
“Anyone can use these environments for SFT, RL, eval, whatever. The point is is to just give the entire ecosystem a real substrate to measure and improve models on, not just leak code puzzles.”transcript, stated
“RL environments improve models. The score doesn't just stop in a leaderboard where you publish the results. The score is actually used to update the weights of the policy model.”transcript, stated
“The score is actually used to update the weights of the policy model.”transcript, stated

safety-policy-enforcement (benchmark-integrity)

The environment builder removes Git from the Docker container to prevent agents from reward hacking by inspecting hidden history or shortcuts.

“You containerize it with Docker, removing Git obviously, so agents can't reward hack.”transcript, stated

Tradeoffs

Focus on benchmark/RL data instead of agent-stack tricks.

Chose Real coding-task environments and verifiers over More RAG, search, context, and tool-calling scaffolding.

Rationale: The speaker argues stronger models and hard training environments produce capability gains, while many scaffolding optimizations are marginal for frontier models.

3 supporting quotes
“the question really isn't how fancy is your agent stack. Increasingly, it's how strong is the model driving it.”transcript, stated
“The whole point of terminus is that it has no clever tool calling, no context engineering features.”transcript, stated
“So, I'm not really even going to cover this in depth because the tweaks here are trivial and the gains are marginal. So, what I really want to talk about is something that's not actually given a lot of attention and it's the real bottleneck.”transcript, stated

Use outcome verifiers.

Chose Pure outcome-driven verification over Ground-truth-path or implementation-detail tests.

Rationale: Outcome verifiers allow multiple valid solutions and avoid penalizing agents for taking a different path than the historical human fix.

3 supporting quotes
“The kettle doesn't care how you achieved it, whether you used a gas stove, an electric induction stove, or a campfire.”transcript, stated
“It just signals the result. And in the process of doing this, all these weird bad tests can emerge. So you might have noticed like that the sub agent might have noticed like oh in the ground truth solution like in a previous run the burner was set to high so maybe we should be checking”transcript, stated
“elapsed like all kinds of weird bad tests and the key point here is don't overprescribe based on the ground truth test for the spirit of the task test for the outcome of the task. And the outcome at the end of all this is a containerized benchmark or environment for that task. Agent work is”transcript, stated

Open-source Cline Bench.

Chose Free, inspectable, community-contributed environments over Private internal benchmark data.

Rationale: Open environments let the ecosystem inspect, run, contribute, and train on real coding tasks rather than relying on claims about hidden internal benchmarks.

3 supporting quotes
“The whole thing is open source. There's no secret sauce, no locked away data sets.”transcript, stated
“You can openly run it yourself and inspect it to see how it works. Anyone can use these environments for SFT, RL, eval, whatever.”transcript, stated
“And this only works if the community contributes. And the good news is you don't actually need to do anything special.”transcript, stated

Automate environment generation.

Chose RL-environments factory with sub-agent qualification and automated build steps over Fully manual task reconstruction and containerization.

Rationale: Automation cut environment-building time dramatically and moves the bottleneck toward collecting high-quality tasks.

3 supporting quotes
“And this work largely started out manual but then the first time in the RL environment was like about 16 hours of my time.”transcript, stated
“what used to take 16 hours now takes less than 20 minutes per task.”transcript, stated
“the bottleneck shifts from engineering to collecting high quality tasks.”transcript, stated

Use only opt-in open-source project work as contribution input.

Chose Community opt-in through the Cline provider on open-source projects over Secretly collecting or publishing private user coding data.

Rationale: The contribution path lets users opt in while working on open-source code, which makes the resulting benchmark inspectable and distributable.

“Just work on your open source project with the client provider turned on and opt into the client bench initiative.”transcript, stated
“client bench will always remain free, fully open source and freely accessible.”transcript, stated

Gotchas (what bit them)

Clever agent scaffolding does not improve the underlying model.

Root cause: Prompts, RAG, search trees, and tool scaffolds may improve one harness, but model capability advances when labs train on hard benchmark/RL environments.

Resolution: Invest in hard real-world benchmarks and RL environments instead of over-optimizing scaffolding tricks.

3 supporting quotes
“you can build the cleanest agent in the world, but that doesn't improve model capability by even 1%.”transcript, stated
“benchmarks, not agent cleverness, not all your clever engineering techniques, not your clever rag pipelines.”transcript, stated
“It's benchmarks that determine what frontier models learn to do next.”transcript, stated

Task qualification fails if start and end states are unreliable.

Root cause: Without a reachable repo, starting commit, open-source status, user intent, and real solution commit/PR, the environment cannot be reconstructed or verified.

Resolution: Run origin, journey, and outcome checks before environment construction.

3 supporting quotes
“does the repository actually exist. Is the starting commit accessible? Is it open source?”transcript, stated
“what was the user actually trying to accomplish, what was the spirit of their task.”transcript, stated
“can we find the actual commits or PRs that fix the problem in real life?”transcript, stated

Bad verifiers overfit implementation details instead of outcomes.

Root cause: Sub-agents may notice incidental details in the ground-truth solution and turn them into brittle tests.

Resolution: Use pure outcome-driven verifiers that test whether the task succeeded regardless of how the agent solved it.

3 supporting quotes
“the sub agent might have noticed like oh in the ground truth solution like in a previous run the burner was set to high”transcript, stated
“truth solution like in a previous run the burner was set to high so maybe we should be checking for that but we all know that water can boil at a low setting on the burner or was it on the front left burner has 5 minutes elapsed like all kinds of weird bad tests and the key point here is”transcript, stated
“don't overprescribe based on the ground truth test for the spirit of the task test for the outcome of the task.”transcript, stated

Trivial synthetic coding tasks do not train the frontier behaviors engineers care about.

Root cause: Toy tasks and vibe-coded app generation lack the hard failure modes from real software development.

Resolution: Disqualify trivial tasks and source candidates from real engineering work where a model got stuck and a human fixed it.

3 supporting quotes
“we don't need another benchmark that tests for, you know, build the next.js app uh from scratch.”transcript, stated
“disqualify trivial tasks that are too easy and tasks that have no reliable start or end states.”transcript, stated
“This is real software development captured and packaged into standardized RL and inval and eval environments”transcript, stated

Closed benchmark data slows shared model improvement.

Root cause: Agent labs capture valuable real engineering data but often do not publish environments that others can inspect or run.

Resolution: Publish open-source benchmark environments with no locked-away datasets.

3 supporting quotes
“Every major agent lab captures this data. They all do some version of this behind the scenes, but no one really talks about it.”transcript, stated
“And this data is so valuable yet no one shares it. It's the only thing that actually moves the needle. And here's the heart of my argument is by standing between real world engineers working on real world tasks and the models agent labs have a unique role in history.”transcript, stated
“Models don't improve without this data and keeping them closed is slowing down Frontier Research. So today we're announcing client bench.”transcript, stated

Benchmark containers are vulnerable to reward hacking if repository history remains available.

Root cause: An agent could inspect Git history or hidden solution traces instead of solving the task.

Resolution: Remove Git when containerizing the environment.

“You containerize it with Docker, removing Git obviously, so agents can't reward hack.”transcript, stated

Evaluation

The evaluation contract is an environment with a starting code state, a starting prompt, and a pure outcome verifier. Benchmarks measure model performance by scoring the final state; RL environments use the score as a reward to update model weights. Agent traces and trajectories are recorded for inspection, and tasks are filtered for real difficulty and reliable start/end states.

Metrics: Verifier pass/fail or acceptability of the final state · Agent trace/trajectory through the environment · Task qualification checks for origin, journey, outcome, and disqualifiers · Manual-to-automated environment-building time: about 16 hours to under 20 minutes per task · Suitability for SFT, RL, and eval

4 supporting quotes
“The only real difference, the only distinction here is how the reward is used.”transcript, stated
“Benchmarks measure models. RL environments improve models. The score doesn't just stop in a leaderboard where you publish the results.”transcript, stated
“the last thing is a verifier at the end that checks whether an end state is correct or acceptable.”transcript, stated
“you can reliably score it and verify it and it's fully portable.”transcript, stated

Outcomes

The strongest quantitative outcome is workflow acceleration from about 16 hours to less than 20 minutes per task. The benchmark's intended scale comes from community opt-in over real open-source coding tasks rather than a fixed corpus size disclosed in the talk.

5 supporting quotes
“So today we're announcing client bench. This is our attempt to finally create a benchmark that isn't cosplay engineering.”transcript, stated
“what used to take 16 hours now takes less than 20 minutes per task.”transcript, stated
“traces the trajectory that the agent took to complete the task and you can reliably score it and verify it and it's fully portable. You can run it on any device. So the path to automation that we've been undertaking as part of this is can we fully automate the process of converting real world coding”transcript, stated
“The point is is to just give the entire ecosystem a real substrate to measure and improve models on”transcript, stated
“If a frontier model gets stuck and you step in to fix it, that's actually a ideal task for to be a candidate for a benchmark”transcript, stated