Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
24
110
session
stringlengths
21
107
segment
int64
0
35
segments_in_session
int64
1
36
tokens
int64
2.03k
65k
chars
int64
8.97k
290k
counter
stringclasses
1 value
meta
dict
tools
listlengths
1
7
messages
listlengths
3
178
repo-pythermalcomfort__pythermalcomfort-89b87c5916-73ff3fc2-s0
repo-pythermalcomfort__pythermalcomfort-89b87c5916-73ff3fc2
0
1
19,567
73,910
o200k_base
{ "task_id": "repo-pythermalcomfort__pythermalcomfort-89b87c5916", "persona": "stressed", "outcome": "verified", "verify_exit_code": 0 }
[ { "type": "function", "function": { "name": "read", "description": "Read the contents of a file. Supports text files and images (jpg, png, gif, webp, bmp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for lar...
[ { "role": "system", "content": "You are an expert coding assistant operating inside pi, a coding agent harness. You help users by reading files, executing commands, editing code, and writing new files.\n\nAvailable tools:\n- read: Read file contents\n- edit: Make precise file edits with exact text replaceme...
repo-pythermalcomfort__pythermalcomfort-eefd966b82-a933eafc-s0
repo-pythermalcomfort__pythermalcomfort-eefd966b82-a933eafc
0
1
31,416
115,393
o200k_base
{"task_id":"repo-pythermalcomfort__pythermalcomfort-eefd966b82","persona":"stressed","outcome":"veri(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-pythermalcomfort__pythermalcomfort-ca39e0e1ad-047d5f63-s0
repo-pythermalcomfort__pythermalcomfort-ca39e0e1ad-047d5f63
0
1
49,021
185,254
o200k_base
{"task_id":"repo-pythermalcomfort__pythermalcomfort-ca39e0e1ad","persona":"aggressive","outcome":"ve(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-pythermalcomfort__pythermalcomfort-d8e54945cb-003822b2-s0
repo-pythermalcomfort__pythermalcomfort-d8e54945cb-003822b2
0
1
51,672
200,070
o200k_base
{"task_id":"repo-pythermalcomfort__pythermalcomfort-d8e54945cb","persona":"aggressive","outcome":"ve(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-pythermalcomfort__pythermalcomfort-f7d10ee77a-a26c39bf-s0
repo-pythermalcomfort__pythermalcomfort-f7d10ee77a-a26c39bf
0
1
43,396
172,053
o200k_base
{"task_id":"repo-pythermalcomfort__pythermalcomfort-f7d10ee77a","persona":"expert_skeptic","outcome"(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-pythermalcomfort__pythermalcomfort-763f814fb7-8e102220-s0
repo-pythermalcomfort__pythermalcomfort-763f814fb7-8e102220
0
1
45,618
166,125
o200k_base
{"task_id":"repo-pythermalcomfort__pythermalcomfort-763f814fb7","persona":"patient","outcome":"verif(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
scratch-0145-3bd14c77-s0
scratch-0145-3bd14c77
0
1
50,681
183,025
o200k_base
{ "task_id": "scratch-0145", "persona": "stressed", "outcome": "verified", "verify_exit_code": 0 }
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-Hommy-master__capcut-mate-4357bfb3bb-4b5b6b25-s0
repo-Hommy-master__capcut-mate-4357bfb3bb-4b5b6b25
0
1
39,758
138,635
o200k_base
{"task_id":"repo-Hommy-master__capcut-mate-4357bfb3bb","persona":"vague","outcome":"verified","verif(...TRUNCATED)
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
scratch-0226-4f466acc-s0
scratch-0226-4f466acc
0
1
19,506
75,231
o200k_base
{ "task_id": "scratch-0226", "persona": "stressed", "outcome": "verified", "verify_exit_code": 0 }
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
repo-Bl3f__yato-98945a4f31-b52786b1-s0
repo-Bl3f__yato-98945a4f31-b52786b1
0
1
8,968
32,923
o200k_base
{ "task_id": "repo-Bl3f__yato-98945a4f31", "persona": "angry", "outcome": "verified", "verify_exit_code": 0 }
[{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports t(...TRUNCATED)
[{"role":"system","content":"You are an expert coding assistant operating inside pi, a coding agent (...TRUNCATED)
End of preview. Expand in Data Studio

Scaffold-Agent

Long, multi-turn agentic coding sessions for supervised fine-tuning. 19,652 records from 6,792 sessions (1,005.1M tokens, 898.7M trainable after masks). Every assistant action is preceded by a scaffold reasoning block (Inventory → Interaction → Execution) in reasoning_content. Sessions cover editing real repositories and building from scratch, including recovery from errors and demanding simulated users. Sessions run 10 to 100+ turns.

Related datasets

  • Specific-Labs/Scaffold-Chat — 3,450,159 chat examples carrying the same scaffold reasoning format, with no tool use: chat and reasoning only. Scaffold Chat (formerly Scaffold-CoT) removed its tool-calling examples because those tool calls were generated text that was never executed. The tool calls in Scaffold-Agent are the opposite: every one was really executed in the Pi harness, and session outcomes were verified with real builds and tests. Train chat/reasoning behavior from Scaffold Chat and tool use from here.

Built from the ScaffoldAgent Experiment 2 generation pipeline (teacher: stealth/space-bunny-alpha through a scaffold-reframing gateway; harness: Pi 0.81.1). See training_sft_config.yaml in this repo for the documented multi-turn SFT setup (sample definition, role/loss mapping, splits).

Fields

Every row is one compaction segment (1–8 per session, each ≤ 64k tokens) and is a self-contained training sample — do not join segments of a session.

Field Contents
id {session}-s{segment} record id
session Session id (repo-… = live-repo work, scratch-… = from-scratch work)
segment / segments_in_session Position of this record within its session
tokens / chars o200k_base token count and character count of the record
counter Tokenizer used for tokens (o200k_base)
meta {task_id, persona, outcome, verify_exit_code} — simulated-user persona and verification outcome for the session
tools Function definitions available in this segment (render to tool schema; never train as text)
messages Ordered chat messages: system (once), user (task + simulated user), assistant (with tool_calls, reasoning_content, and per-message loss), tool (execution results)

Assistant messages carry loss: {content, reasoning}. Train content only when loss.content is true and reasoning only when loss.reasoning is true; everything else is context. The main shard (916M tokens) is masked by a two-judge turn filter (3.4% of content, 30.9% of reasoning masked as contradicted or unfaithful). The campaign22 shard (89M tokens) was admitted under relaxed gates (verification only, no grade bar) and is fully unmasked.

Build

Selected by hidden-test verification plus a senior-reviewer code grade (mergeable verdict, correctness/readability/idiom/scope floors, no test gaming; from-scratch bug claims checked by execution). Main shard: 6,444 sessions. Campaign22 shard: 348 verified sessions. Per-message loss masks from two independent turn judgments on the main shard. Split train/val by session id, never by record — segments of one session share history.

Loading

from datasets import load_dataset
ds = load_dataset("Specific-Labs/Scaffold-Agent", split="train")
rec = ds[0]
trainable = [m for m in rec["messages"]
             if m["role"] == "assistant" and (m["loss"]["content"] or m["loss"]["reasoning"])]

Each record trains standalone: system prompt, tool definitions, and message history are all present in the row. Render reasoning_content through the model's reasoning channel, or flatten as <think>…</think> for plain chat models, following loss.reasoning either way.

Downloads last month
1