fable-5-coding-and-debugging-traces
收藏资源简介:
Fable 5编码与调试轨迹数据集包含来自Claude Fable 5(claude-fable-5)作为自主编码代理在真实软件任务上工作的行为保留工程轨迹。这些轨迹记录了代理读取代码、编辑文件、运行编译器和测试套件、安装固定依赖项并迭代直到工作完成的完整过程。数据集特点包括:所有数据均为真实的长期开发会话记录,无任何合成或模板化对话;每行数据对应轨迹中的一个助理回合,包含从开始到该回合的累积上下文;数据经过运行时标准化处理,移除了速率限制、加密思考签名等噪声,但保留了大型源代码读取和编译器诊断等因果任务上下文;经过行为审计,移除了未经授权的提交、被拒绝的测试写入等操作序列;每个保留的会话都通过了独立验证,确保最终状态通过隐藏的验证步骤;所有会话均在真实环境和工具链中运行。数据集包含3,327个累积下一步行(3,044个训练行,283个验证行),源自611个在不相交的训练和验证任务上的轨迹。任务类型包括构建(约46%)、调试(约22%)、项目(约16%)、功能(约13%)和重构/性能(约3%),涵盖数据结构、解析器、并发原语、HTTP/API服务、CLI工具、系统编程等多个领域。当前版本支持Python、TypeScript、Go、Rust、Java、Ruby、JavaScript、C#、Bash、Zsh、C、C++等语言。数据模式包括任务ID、语言、类别、分割、助理步骤编号、消息列表和工具模式等字段。数据集主要用于工具使用编码代理的监督微调,以及分析长视野代理行为,如多步规划、工具选择、构建-测试-修复循环和验证驱动的完成。数据由Claude Fable 5在无头Claude Code会话中生成,经过确定性验证和明确的Codex接受审查。数据集采用CC BY 4.0许可证,允许任何用途,包括训练、研究、商业产品、修改和再分发,但需要注明出处。
The Fable 5 Coding and Debugging Traces Dataset contains behavior-preserved engineering traces from Claude Fable 5 (claude-fable-5) as an autonomous coding agent working on real software tasks. These traces record the complete process of the agent reading code, editing files, running compilers and test suites, installing fixed dependencies, and iterating until the work is completed. Dataset features include: all data are real long-term development session records, with no synthetic or templated dialogues; each row corresponds to an assistant turn in a trace, containing cumulative context from the start to that turn; data is runtime-standardized, removing noise such as rate limiting and encrypted thought signatures, but preserving causal task context like large source code reads and compiler diagnostics; after behavioral auditing, sequences of unauthorized commits, rejected test writes, etc., are removed; each retained session passes independent verification, ensuring the final state passes hidden validation steps; all sessions run in real environments and toolchains. The dataset contains 3,327 cumulative next-step rows (3,044 training rows, 283 validation rows), derived from 611 traces on disjoint training and validation tasks. Task types include build (~46%), debug (~22%), project (~16%), feature (~13%), and refactor/performance (~3%), covering areas such as data structures, parsers, concurrency primitives, HTTP/API services, CLI tools, and systems programming. The current version supports languages including Python, TypeScript, Go, Rust, Java, Ruby, JavaScript, C#, Bash, Zsh, C, and C++. Data schema includes fields like task ID, language, category, split, assistant step number, message list, and tool mode. The dataset is primarily used for supervised fine-tuning of tool-using coding agents and analyzing long-horizon agent behaviors, such as multi-step planning, tool selection, build-test-fix loops, and verification-driven completion. Data is generated by Claude Fable 5 in headless Claude Code sessions, with deterministic verification and explicit Codex acceptance review. The dataset is licensed under CC BY 4.0, permitting any use including training, research, commercial products, modification, and redistribution, with attribution required.
Fable 5 Coding & Debugging Traces 数据集概述
该数据集包含来自 Claude Fable 5 的自主编码代理在真实软件任务上的行为保留工程轨迹,涵盖代码阅读、文件编辑、编译器和测试套件运行、依赖安装等完整开发流程。
核心特性
- 完全真实,零合成数据:每一行都是真实、长周期开发会话的累积前缀,无模板对话、无合成问答、无回填内容。
- 每行一个下一步:轨迹中每个助手回合产生一行数据,上下文累积而非窗口化或摘要化。
- 运行时规范化:移除了速率限制、加密思考签名、会话限制横幅、终端控制序列等运行时噪音,保留大型源代码读取和编译器/测试诊断等因果任务上下文。
- 行为审计:经过二次范围和需求审计,移除了未经授权的提交、被拒绝的测试写入等微序列,保留28个原始会话,排除4个不符合要求的轨迹并用新轨迹替换。
- 独立验证:每个保留的会话最终状态通过隐藏的验证步骤(测试套件/构建检查),且测试文件从未被修改。100%的行通过验证。
- 真实环境与工具链:会话在 gcc/g++、
go test -race、pytest 等真实工具链上运行,包括真实的依赖安装。
任务构成
| 类型 | 占比 | 描述 |
|---|---|---|
| 构建 | ~46% | 从规范实现模块/库/CLI,从空文件到通过测试套件 |
| 调试 | ~22% | 针对真实植入缺陷的症状优先工单(并发、失效、编码、环境漂移) |
| 项目 | ~16% | 多文件脚手架和仓库级工作 |
| 功能 | ~13% | 扩展现有代码库,现有测试必须保持通过 |
| 重构/性能 | ~3% | 保持行为不变的重构和可测量的速度提升 |
涉及领域包括数据结构、解析器和编解码器、状态机、并发原语、HTTP/API客户端和服务、CLI工具、依赖/环境管理、前端构建、工作流引擎、C和C++系统编程。
语言覆盖
Python、TypeScript、Go、Rust、Java、Ruby、JavaScript、C#、Bash、Zsh、C、C++(更多语言将在后续版本中添加)。
数据模式
数据文件为 traces.jsonl,共 6,224 行累积下一步行(5,702 训练 / 522 验证),来自 666 个轨迹。
| 列名 | 类型 | 内容 |
|---|---|---|
task |
string | 稳定的任务ID |
lang |
string | 任务主要编程语言 |
category |
string | 任务分类标签(如 debug-concurrency) |
split |
string | 内部分区:train 或 val |
assistant_step |
int | 源轨迹中目标助手回合的序号 |
assistant_steps |
int | 源轨迹中助手回合总数 |
target_message_index |
int | messages 中最终助手目标的索引 |
n_messages |
int | 该目标之前的总消息数 |
messages |
list of objects | 累积上下文,以该助手目标结束 |
tools |
string (JSON) | 此会话中调用的工具模式 |
预期用途
- 工具使用型编码代理的监督微调
- 长周期代理行为分析:多步规划、工具选择、构建-测试-修复循环、验证驱动完成
许可证
CC BY 4.0 — 允许任何用途:训练、研究、商业产品、修改、再分发,以及纳入其他数据集或语料库。唯一要求是使用时提供署名。
建议引用方式:
Fable 5 Coding & Debugging Traces — https://huggingface.co/datasets/greghavens/fable-5-coding-and-debugging-traces




