Dataset Viewer
Auto-converted to Parquet Duplicate
id
large_stringlengths
49
54
category
large_stringclasses
6 values
complexity
large_stringclasses
3 values
messages
listlengths
3
3
teacher
large_stringclasses
1 value
provider
large_stringclasses
1 value
prompt_tokens
int64
475
508
completion_tokens
int64
1.37k
5.99k
usd_cost
float64
0
0.01
library:Build_a_library_that_implements_a_type-s_0000
library
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
484
2,325
0.004472
API:Build_a_REST_endpoint_that_shortens_URLs_0001
API
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
489
2,023
0.00393
bugfix:Fix_a_race_condition_in_a_file_uploader__0002
bugfix
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
479
1,659
0.003268
bugfix:Fix_a_memory_leak_in_a_long-running_webs_0003
bugfix
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
491
2,219
0.004285
library:Build_a_small_library_that_provides_retr_0004
library
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
493
1,954
0.003808
bugfix:Fix_a_bug_where_a_CSV_parser_drops_rows__0005
bugfix
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
491
4,750
0.008851
CLI:Build_a_CLI_tool_that_renames_files_in_a_0006
CLI
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
481
4,222
0.007893
library:Build_an_SDK_for_a_vector_database_clien_0007
library
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
498
2,872
0.005467
web:Build_a_single-page_markdown_note_app_wi_0008
web
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
484
4,136
0.007739
bugfix:Fix_a_memory_leak_in_a_long-running_webs_0009
bugfix
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
495
2,925
0.005561
refactor:Refactor_a_200-line_Python_script_into_s_0010
refactor
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
489
2,385
0.004583
refactor:Refactor_a_monolithic_Flask_app_into_blu_0011
refactor
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
496
4,921
0.009162
CLI:Build_a_CLI_tool_that_watches_a_folder_a_0012
CLI
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
495
2,196
0.004246
library:Build_a_library_that_implements_a_type-s_0013
library
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
491
2,641
0.005046
API:Build_a_gRPC_service_for_a_job_queue_wit_0014
API
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
498
5,090
0.009468
bugfix:Fix_a_race_condition_in_a_file_uploader__0015
bugfix
moderate
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
479
1,674
0.003295
bugfix:Fix_a_memory_leak_in_a_long-running_webs_0016
bugfix
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
496
2,954
0.005614
API:Build_a_gRPC_service_for_a_job_queue_wit_0017
API
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
499
2,240
0.004327
web:Build_a_multi-tenant_admin_dashboard_wit_0018
web
complex
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
493
2,832
0.005392
library:Build_a_small_library_that_provides_retr_0019
library
simple
[ { "role": "system", "content": "You are an autonomous-coding PLANNING agent. Your job: take the user's raw feature request or coding task and decompose it into a strict 5-stage agentic workflow. You do NOT write implementation code. You produce the plan that an executor agent will follow.\n\nYour output MUS...
zai-org/GLM-5.2
zai-org
492
5,568
0.010327
End of preview. Expand in Data Studio

PRD/TDD Agentic Workflow Dataset

A purpose-built SFT dataset for teaching an autonomous coding agent to decompose any user prompt into a strict 5-stage agentic workflow before writing code.

Purpose

The model is trained to act as a planning agent — it does NOT write implementation code. It takes a raw user feature request and emits a structured workflow prompt that an executor agent follows. This enforces spec-driven, test-first discipline on every task.

The 5-Stage Scaffold (strict, every example)

Every assistant response contains exactly these five sections in this order:

  1. PRD — problem, scope, acceptance criteria, non-goals
  2. Spec — interfaces, data models, contracts
  3. TDD Plan — test list, red/green/refactor order
  4. Pass/Test Guardrails — stop conditions, failure definitions
  5. Workflow Prompt — self-contained prompt for an executor agent, ending with EXECUTE

Each section is introduced by an exact marker on its own line: == PRD ==, == Spec ==, == TDD Plan ==, == Pass/Test Guardrails ==, == Workflow Prompt ==

Schema

Each example is a ChatML-style message list:

{
  "id": "category:prompt_prefix_0001",
  "category": "CLI|API|refactor|bugfix|library|web",
  "complexity": "simple|moderate|complex",
  "messages": [
    {"role": "system", "content": "<5-stage scaffold system prompt>"},
    {"role": "user", "content": "<raw feature request>"},
    {"role": "assistant", "content": "<5-stage structured workflow>"}
  ],
  "teacher": "zai-org/GLM-5.2",
  "provider": "zai-org",
  "prompt_tokens": 488,
  "completion_tokens": 3198,
  "usd_cost": 0.0060
}

Provenance

  • Teacher model: zai-org/GLM-5.2 (MIT)
  • Generator route: Hugging Face Inference Providers (provider=zai-org)
  • System prompt: Locks the 5-stage scaffold format with strict word budgets and an EXECUTE terminator.
  • Validator: Every response is programmatically checked for all 5 markers in correct order, the EXECUTE terminator, and reasonable length. Invalid responses are retried (up to 3 attempts).

Composition

  • 824 examples (deduplicated, all validated)
  • 6 categories: CLI, API, refactor, bugfix, library, web
  • 3 complexity tiers: simple, moderate, complex
  • High architectural variance via constraint twists (language, scale, persistence, async, observability, deployment)
Category Count
CLI 141
API 132
refactor 146
bugfix 146
library 130
web 129
Complexity Count
simple 270
moderate 270
complex 284

Cost

  • Total spend: $4.79 (well under the $25 budget cap)
  • Avg cost/example: $0.0058

Intended Use

Phase 2 of an autonomous-coding model build: SFT (LoRA) onto Qwen/Qwen3.6-35B-A3B, mixed with Glint-Research/Fable-5-traces and Opus-4.6 reasoning sets, then converted to MLX 6-bit for local agentic-coding use on a 64 GB Mac.

Generated by ML Intern

This dataset repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.

Usage

from datasets import load_dataset

dataset = load_dataset('dabbledabble-IND-da-air/prd-tdd-agentic-workflow')
Downloads last month
-