Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
listlengths
2
24
chosen
dict
rejected
dict
instance_id
stringlengths
12
56
repo
stringclasses
851 values
chosen_trajectory_id
stringlengths
41
41
rejected_trajectory_id
stringlengths
41
41
divergence_turn
int64
0
11
divergence_msg_index
int64
2
24
action_similarity
float64
0.05
0.95
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "## Phase 2. RUNNING: Setting Up and Running Tests\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace\"}, \"name\": \"str_replace_editor\"}, \"id\": \"chatcmpl-tool-fffe439baf4644b1b7e04a95a8...
{ "role": "assistant", "content": "## Phase 2. RUNNING: Setting up and Running Tests\n\nLet me first explore the repository structure and understand how to run tests:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace/marcoss...
marcosschroh__dataclasses-avroschema-403
marcosschroh/dataclasses-avroschema
chatcmpl-1e84871bf6a9cfcca132bd09fefaa63a
chatcmpl-547606a789211fc1176aa14b6617e886
1
4
0.817
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"cd /workspace/marcosschroh__dataclasses-avroschema__0.47 && pwd\"}, \"name\": \"execute_bash\"}, \"id\": \"chatcmpl-tool-2188a8f0e0c24f298b6228cd9991e6ca\", \"type\": \"func...
{ "role": "assistant", "content": "", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace/marcosschroh__dataclasses-avroschema__0.47\"}, \"name\": \"str_replace_editor\"}, \"id\": \"chatcmpl-tool-918569367064484fac881aa1e1b9ebb7\", ...
marcosschroh__dataclasses-avroschema-403
marcosschroh/dataclasses-avroschema
chatcmpl-1e84871bf6a9cfcca132bd09fefaa63a
chatcmpl-d877d8e06464d7a86c66b38371f12299
2
6
0.8271
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "## Phase 2. RUNNING: Setting up and Running Tests\n\nLet me first explore the repository structure and understand how to run tests:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace\"}, \"n...
{ "role": "assistant", "content": "## Phase 2. RUNNING: Setting up and Running Tests\n\nLet me first explore the repository structure and understand how to run tests:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace/marcoss...
marcosschroh__dataclasses-avroschema-403
marcosschroh/dataclasses-avroschema
chatcmpl-27d751acc26cc779be50e65ca391af06
chatcmpl-547606a789211fc1176aa14b6617e886
1
4
0.817
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "Let me run the tests to understand the current state:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"cd /workspace/marcosschroh__dataclasses-avroschema__0.47 && python -m pytest tests/ -v --tb=short\"}, \"name\": \"ex...
{ "role": "assistant", "content": "Let's run the tests to see the current state:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"cd /workspace/marcosschroh__dataclasses-avroschema__0.47 && ./scripts/test\"}, \"name\": \"execute_bash\"}, \"id\": \"chatcm...
marcosschroh__dataclasses-avroschema-403
marcosschroh/dataclasses-avroschema
chatcmpl-27d751acc26cc779be50e65ca391af06
chatcmpl-d877d8e06464d7a86c66b38371f12299
5
12
0.8696
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "I'll help you implement the necessary changes to fix the remote file caching improvement issue. Let's start by understanding the problem and exploring the repository.\n\n## Phase 1. READING: Understanding the Problem\n\n", "name": null, "tool_call_id": null, "tool_calls": "[...
{ "role": "assistant", "content": "I'll help you implement the necessary changes to fix the remote file caching improvement issue. Let's start by following the phases you outlined.\n\n## Phase 1. READING: Understanding the Problem\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arg...
python-jsonschema__check-jsonschema-454
python-jsonschema/check-jsonschema
chatcmpl-4c48ed350062246904e5123a74b48f67
chatcmpl-0248bafa088b145d5ddfb44cbb0b0d2d
0
2
0.4505
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "Let me examine the source code structure:\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace/python-jsonschema__check-jsonschema__0.28/src/check_jsonschema\"}, \"name\": \"str_replace_editor...
{ "role": "assistant", "content": "", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\"command\": \"view\", \"path\": \"/workspace/python-jsonschema__check-jsonschema__0.28/README.md\"}, \"name\": \"str_replace_editor\"}, \"id\": \"chatcmpl-tool-345fbd54a5d7432c92cbf6bbdfb...
python-jsonschema__check-jsonschema-454
python-jsonschema/check-jsonschema
chatcmpl-4c48ed350062246904e5123a74b48f67
chatcmpl-1c8c705a85c9cbdf43c1ba87c5896004
3
8
0.9121
[ { "role": "system", "content": "You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and priorit...
{ "role": "assistant", "content": "I'll help you implement the necessary changes to fix the remote file caching improvement issue. Let's start by understanding the problem and exploring the repository.\n\n## Phase 1. READING: Understanding the Problem\n\n", "name": null, "tool_call_id": null, "tool_calls": "[...
{ "role": "assistant", "content": "I'll help you implement the necessary changes to fix the remote file caching issue. Let's start by following the phases you outlined.\n\n## Phase 1. READING: Understanding the Problem\n\n", "name": null, "tool_call_id": null, "tool_calls": "[{\"function\": {\"arguments\": {\...
python-jsonschema__check-jsonschema-454
python-jsonschema/check-jsonschema
chatcmpl-4c48ed350062246904e5123a74b48f67
chatcmpl-2918c924b736fe79796fad3ed4c179a5
0
2
0.5857
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
{"role":"assistant","content":"Now let me read the issue description more carefully and understand t(...TRUNCATED)
{"role":"assistant","content":"Now let me check the README to understand the project better:\n\n","n(...TRUNCATED)
python-jsonschema__check-jsonschema-454
python-jsonschema/check-jsonschema
chatcmpl-c81c9e14098d34427bfdfc6cacfc9d2b
chatcmpl-0248bafa088b145d5ddfb44cbb0b0d2d
2
6
0.4271
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
{"role":"assistant","content":"Now let me understand what \"protein grouper\" refers to. Let me sear(...TRUNCATED)
{"role":"assistant","content":"Now let me understand the issue better by looking for \"protein group(...TRUNCATED)
acorg__dark-matter-680
acorg/dark-matter
chatcmpl-0747cea65c22b0b8a69c0cd087ee888d
chatcmpl-585f4805be301cdf4b32fa4d3f7ce889
3
8
0.8969
[{"role":"system","content":"You are OpenHands agent, a helpful AI assistant that can interact with (...TRUNCATED)
{"role":"assistant","content":"Now let me understand what \"protein grouper\" refers to. Let me sear(...TRUNCATED)
{"role":"assistant","content":"Now let me understand the issue better. The issue is asking to \"Add (...TRUNCATED)
acorg__dark-matter-680
acorg/dark-matter
chatcmpl-0747cea65c22b0b8a69c0cd087ee888d
chatcmpl-70569f809f76458f9cf2898f229f4cf6
3
8
0.6544
End of preview. Expand in Data Studio

openhands-divergence-dpo

5,420 divergence-point DPO pairs mined from nebius/SWE-rebench-openhands-trajectories (67,074 OpenHands v0.54.0 trajectories by Qwen3-Coder-480B-A35B-Instruct on real GitHub issues from SWE-rebench).

Where Nebius released raw trajectories for RFT/RL, this dataset extracts preference pairs at the first diverging action: for GitHub issues attempted multiple times where at least one attempt resolved the issue and at least one failed, we align a resolved and a failed trajectory and take the first action on which they disagree.

Example

ARMmbed/mbed-tools-292, divergence at assistant turn 6 (14 shared context messages). Both attempts call execute_bash:

  • chosen (resolved): python -m pytest --co -q | head -20 — collect the test suite first
  • rejected (failed): python -c "import mbed_tools; print('...')" — a shallow import smoke-check

Format

Conversational (TRL-style) preference format:

field description
prompt list of messages — shared context up to the divergence point
chosen assistant message (diverging action from the resolved trajectory)
rejected assistant message (diverging action from the failed trajectory)
instance_id SWE-rebench issue id (owner__repo-N)
repo GitHub repo (owner/repo)
chosen_trajectory_id / rejected_trajectory_id upstream trajectory ids
divergence_turn assistant-turn index of the divergence (0-based)
divergence_msg_index raw message index of the divergence
action_similarity similarity of the two diverging action signatures, [0,1]

Messages keep the upstream schema: role, content, name, tool_call_id, tool_calls. tool_calls is a JSON string in the parquet; inside it, function.arguments are deserialized objects, not strings (the upstream dataset serializes them — this one doesn't).

import json
from datasets import load_dataset

ds = load_dataset("asaverren/openhands-divergence-dpo", split="train")
row = ds[0]
chosen_calls = json.loads(row["chosen"]["tool_calls"])

Method

Tool: divergence-mine (reproduce: divergence-mine mine --parquet nebius/SWE-rebench-openhands-trajectories --out pairs.jsonl).

  1. Group 67,074 trajectories by instance_id → 6,306 instances; keep 1,741 with ≥1 resolved (resolved=1) and ≥1 failed attempt. ≤3 trajectories per side per instance are sampled (8,757 extracted).
  2. Walk each resolved×failed pair in lockstep over normalized messages. Assistant messages compare by action signature — tool name + canonical deserialized arguments with reasoning keys (thought, reasoning, think) stripped; other messages compare by normalized content.
  3. First differing index = divergence point. Emit a pair only if both messages there are assistant actions.

Filters (skip counts from this run)

  • environment divergence (context, not action, differed first): 493
  • near-duplicate diverging actions (signature similarity ≥ 0.95): 726
  • exact duplicate (prompt, chosen, rejected): 1,670
  • pairs per instance capped at 4

Limitations

  • Correlational, not causal: the first diverging action is a heuristic for the decision that mattered, not a proven cause of success/failure.
  • Reasoning excluded from alignment: arguments.thought differs between attempts almost always; signatures ignore it so divergence reflects action choice. Emitted messages keep reasoning verbatim, but the rejected action was generated under a different reasoning prefix than prompt shows — pairs teach action-level preference.
  • resolved is the upstream SWE-rebench evaluation label.
  • 673 pairs diverge at turn 0 — "preferred opening move" supervision.
  • Trajectories come from a single model/scaffold (Qwen3-Coder-480B + OpenHands v0.54.0); pairs encode its action idioms.

License & attribution

Derived from nebius/SWE-rebench-openhands-trajectories, licensed CC-BY-4.0 — © Nebius. If you use this dataset, credit Nebius and cite the upstream dataset. This derivative is released under the same license.

@article{trofimova2025openhandstrajs,
  title={OpenHands Trajectories with Qwen3-Coder-480B-A35B-Instruct},
  author={Trofimova, Maria and Shevtsov, Anton and Ibragim, Badertdinov and Pyaev, Konstantin and Karasik, Simon and Golubev, Alexander},
  year={2025},
  journal={Nebius blog}
}
Downloads last month
47

Models trained or fine-tuned on asaverren/openhands-divergence-dpo