Add Flash Coding dataset card
Browse filesCo-Authored-By: Claude <noreply@anthropic.com>
README.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Flash Coding
|
| 2 |
+
|
| 3 |
+
Provider: [logitly.ai](https://logitly.ai) - Agentic data you can trust
|
| 4 |
+
|
| 5 |
+
Flash Coding is a dataset of agentic coding traces: an AI coding agent working on tasks in real source repositories.
|
| 6 |
+
|
| 7 |
+
Every trace is produced under a controlled runtime:
|
| 8 |
+
|
| 9 |
+
- Sandboxed environment, pinned repository, fixed working directory
|
| 10 |
+
- A restricted toolset and operating mode: `work`, `plan`, or `cplan`
|
| 11 |
+
|
| 12 |
+
An automated verification protocol validates every record before it enters the dataset.
|
| 13 |
+
|
| 14 |
+
Read the full specification: [specification.pdf](specification.pdf).
|
| 15 |
+
|
| 16 |
+
> [!CAUTION]
|
| 17 |
+
> Uploading these datasets to proprietary AI (e.g., asking a question that includes them) can get your account suspended: the AI vendor can misclassify the chain of thought in these records as reverse engineering or duplicating model outputs.
|
| 18 |
+
|
| 19 |
+
The dataset has two parts that share a single record schema:
|
| 20 |
+
|
| 21 |
+
| Part | Content | Training method |
|
| 22 |
+
|---|---|---|
|
| 23 |
+
| [SFT](https://huggingface.co/datasets/logitly-ai/flash-coding-sft-v1) | One demonstration trace per task | Supervised fine-tuning |
|
| 24 |
+
| [DPO](https://huggingface.co/datasets/logitly-ai/flash-coding-dpo-v1) | A chosen and a rejected trace of the same task | Direct preference optimization |
|
| 25 |
+
|
| 26 |
+
## Trace Format
|
| 27 |
+
|
| 28 |
+
A trace is a list of messages in the style of the Anthropic Messages API: each message has a `role` (`user` or `assistant`) and a `content`, a list of typed blocks. Messages strictly alternate between the two roles, starting with `user` and ending with `assistant`.
|
| 29 |
+
|
| 30 |
+
| Block | Content |
|
| 31 |
+
|---|---|
|
| 32 |
+
| `text` | The task in the first user message; the assistant's narration between tool calls, or the final summary. |
|
| 33 |
+
| `thinking` | The agent's private reasoning for the turn. Plain text, never encrypted or summarized. |
|
| 34 |
+
| `tool_use` | A request to run one tool from `toolset`; `input` is a JSON object. |
|
| 35 |
+
| `tool_result` | The outcome of one `tool_use`, matched by id; `is_error` marks a failed call. |
|
| 36 |
+
|
| 37 |
+
Fixed shapes:
|
| 38 |
+
|
| 39 |
+
- The first user message opens with one `text` block: the task. Every later user message carries only `tool_result` blocks, one per `tool_use` of the preceding assistant message.
|
| 40 |
+
- Each assistant message holds one `thinking` block, then any mix of `tool_use` and `text` blocks in generation order. The last message closes the trace with a `text` block: a summary written for the user.
|
| 41 |
+
|
| 42 |
+
What a trace does not contain:
|
| 43 |
+
|
| 44 |
+
- **System prompt.** Not recorded: the trace begins with the task itself.
|
| 45 |
+
- **Media.** The four block types above are the only kinds; there are no image or document blocks.
|
| 46 |
+
- **Not distillation.** No `signature` and no `redacted_thinking`: the traces are not distilled from Anthropic models.
|
| 47 |
+
- **Tool schemas.** The trace carries the calls, not the definitions: `toolset` names the tools.
|
| 48 |
+
|
| 49 |
+
## Tools
|
| 50 |
+
|
| 51 |
+
| Tool | Description |
|
| 52 |
+
|---|---|
|
| 53 |
+
| `glob` | Match paths against a glob pattern. |
|
| 54 |
+
| `grep` | Search file contents using regex. |
|
| 55 |
+
| `read` | Read contents from a file. |
|
| 56 |
+
| `write` | Write contents to a file, creating or overwriting it entirely. |
|
| 57 |
+
| `edit` | Replace a specific string in a file with new content. |
|
| 58 |
+
| `bash` | Execute a shell command. |
|
| 59 |
+
|
| 60 |
+
## Usage
|
| 61 |
+
|
| 62 |
+
- **SFT**: each record carries a single trace, used for supervised training / fine-tuning.
|
| 63 |
+
- **DPO**: each record carries a `chosen` and a `rejected` trace of the same task, used for preference training: the model learns to prefer `chosen` over `rejected`.
|
| 64 |
+
|
| 65 |
+
## Characteristics
|
| 66 |
+
|
| 67 |
+
- **System prompt.** Not given; it can be restored from the context fields.
|
| 68 |
+
- **Thinking.** Every assistant message carries a `thinking` block, so the traces carry the complete chain of thought. At training time, a `thinking` block can be dropped when it is short, so the same traces also serve adaptive thinking.
|
| 69 |
+
- **Language.** Tasks are written in multiple languages. In a positive trace, the assistant replies in the task's language; the language of `thinking` is not defined.
|
| 70 |
+
- **Error flag.** `is_error=true` marks a call that did not exit 0, which can be the ordinary outcome of a call. Keeping these results is deliberate: the model learns to recover from failures over long-horizon work.
|
| 71 |
+
- **Plan mode.** In `plan` mode, writing files is strictly forbidden, and `/tmp` is not writable either; the one exception is `/dev/null`. The mode gates use, not existence: the toolset is the same in every mode.
|
| 72 |
+
|
| 73 |
+
## Evaluation
|
| 74 |
+
|
| 75 |
+
Flash Coding is training data: it carries no scores and no task-success labels, so the effect of training on it cannot be read off the data itself. Measure the effect on external benchmarks; we recommend DeepSWE and Terminal-Bench. The dataset shares no tasks with either benchmark: zero overlap, zero contamination.
|
| 76 |
+
|
| 77 |
+
## Contact
|
| 78 |
+
|
| 79 |
+
Need a dataset tailored to your tasks? Email research@logitly.ai
|