Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
31
31
session_id
stringclasses
311 values
group_id
stringclasses
174 values
project_id
stringclasses
5 values
split
stringclasses
1 value
quality_flags
listlengths
2
4
prompt
listlengths
1
84
completion
listlengths
1
1
teacher_model
stringclasses
1 value
teacher_variant
stringclasses
4 values
source_message_id
stringlengths
20
20
target_kind
stringclasses
3 values
prompt_tokens_cl100k
int64
40
32.7k
completion_tokens_cl100k
int64
36
7.01k
dropped_context_messages
int64
0
0
sample_c0a00cb09b63e6f9bc69917a
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" } ]
[ { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared to the base branch.", "reasoning_content": "", "tool_calls": [ { "id": "call_bf3ebc3e1db5", "type": "function", "function": { "name": "shell", "argument...
deepseek/deepseek-v4.1-flash-1017
max
message_067cf15f2aab
tool_call
62
125
0
sample_7293e290c6c9f977ace8d34a
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" }, { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared...
[ { "role": "assistant", "content": "", "reasoning_content": "Let me look at the changes in detail. I need to understand the new functionality, then add documentation and tests.\n\nLet me look at the diff.", "tool_calls": [ { "id": "call_bc38f3d7f0f7", "type": "function", ...
deepseek/deepseek-v4.1-flash-1017
max
message_dd198bdfda7d
tool_call
862
188
0
sample_d81d426493dff2a914ffec5d
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" }, { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared...
[ { "role": "assistant", "content": "", "reasoning_content": "Let me look at the actual new code files to understand what needs documentation and tests.", "tool_calls": [ { "id": "call_06ddec1e04cf", "type": "function", "function": { "name": "read", "a...
deepseek/deepseek-v4.1-flash-1017
max
message_76bcef5120a8
tool_call
8,917
185
0
sample_989addd67a9e0507432fbd26
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" }, { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared...
[ { "role": "assistant", "content": "", "reasoning_content": "Let me continue research. I need to check:\n1. Existing test setup (vitest? jest?) and test patterns\n2. Existing documentation conventions (docs folder?)\n3. The remaining changed files: constants/gshm.js, constants/gshmDashboard.js, helpers/c...
deepseek/deepseek-v4.1-flash-1017
max
message_9e8e18bfde31
tool_call
11,266
348
0
sample_c1186cb9fdeecca3254340be
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" }, { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared...
[ { "role": "assistant", "content": "", "reasoning_content": "Let me continue: check the tests directory and docs directory, existing test patterns, and remaining changed components.", "tool_calls": [ { "id": "call_2ef812f7cece", "type": "function", "function": { ...
deepseek/deepseek-v4.1-flash-1017
max
message_0dec6230ad10
tool_call
15,204
203
0
sample_aed765ef6af7ae3d329292d9
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[ { "role": "user", "content": "К новому функционралу в этой ветки добавь документацию и тесты, подробные", "reasoning_content": "", "tool_calls": [], "tool_call_id": "", "name": "" }, { "role": "assistant", "content": "I'll start by understanding what's new in this branch compared...
[ { "role": "assistant", "content": "", "reasoning_content": "Let me continue research. I need to see:\n1. GshmDashboard.vue diff/current state\n2. AddProjectsCGS.vue current\n3. Existing test patterns for composables/helpers/stores (e.g. tests/composables/useRouteTab.test.js, tests/helpers/investmentProg...
deepseek/deepseek-v4.1-flash-1017
max
message_dd56bbf52138
tool_call
18,863
254
0
sample_5dfbfc80a3a8d1c36c55c33c
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[{"role":"user","content":"К новому функционралу в этой ветки доба(...TRUNCATED)
[{"role":"assistant","content":"","reasoning_content":"Let me continue research: existing test patte(...TRUNCATED)
deepseek/deepseek-v4.1-flash-1017
max
message_8ca4cb4d6eb0
tool_call
22,458
340
0
sample_7eb34220e215a392f8e10a94
session_8ec59e57a7a2
group_e6e28a88f7f5
project_0d670add5f3e
train
["historical_system_prompt_not_fully_reconstructed","tool_schemas_not_recorded","truncated_tool_outp(...TRUNCATED)
[{"role":"user","content":"К новому функционралу в этой ветки доба(...TRUNCATED)
[{"role":"assistant","content":"","reasoning_content":"Now I have a good understanding. Let me plan (...TRUNCATED)
deepseek/deepseek-v4.1-flash-1017
max
message_76b8fa72f60c
tool_call
27,235
1,265
0
sample_a96caa3f958fb96d59346f26
session_c933c070a40a
group_2c02e9e55633
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[{"role":"user","content":"You are a subagent spawned by another session.\nRepository: <REDACTED_SEC(...TRUNCATED)
[{"role":"assistant","content":"I'll verify point 4 independently. Starting with the diff and file r(...TRUNCATED)
deepseek/deepseek-v4.1-flash-1017
max
message_8697abcacb94
tool_call
536
171
0
sample_6dad02d3b60dcbd4204899f1
session_c933c070a40a
group_2c02e9e55633
project_0d670add5f3e
train
[ "historical_system_prompt_not_fully_reconstructed", "tool_schemas_not_recorded" ]
[{"role":"user","content":"You are a subagent spawned by another session.\nRepository: <REDACTED_SEC(...TRUNCATED)
[{"role":"assistant","content":"Diff is exactly the three expected changes. Now checking the precede(...TRUNCATED)
deepseek/deepseek-v4.1-flash-1017
max
message_35f918ef575a
tool_call
7,038
1,235
0
End of preview. Expand in Data Studio

CodeThinker DeepSeek Agentic

DeepSeek Flash reasoning. Agentic software development. Real tools.

4,033 primary SFT examples  ·  9,869 extended examples  ·  369 trajectories

13,397 reasoning blocks  ·  19,967 tool calls  ·  RU / EN  ·  Apache-2.0

Explore the data · Manifest · Quality report · Privacy report


A bilingual corpus for agentic coding and reasoning distillation. Real requests, provider-returned reasoning, source edits, tool calls, tool observations and final responses, prepared from recorded coding-agent sessions.

CodeThinker DeepSeek Agentic contains recorded DeepSeek Flash assistant completions and their preceding contexts. It follows coding work through file inspection, search, editing, shell commands and verification. The retained source also includes repository maintenance, documentation, debugging and delegated subtasks.

The release combines 369 sessions from five pseudonymized projects recorded between 27 October and 24 November 2026. It contains 13,954 recorded Flash assistant steps, of which 13,902 are exported as supervised examples. An assistant step is one model response, not a count of independently solved tasks.

По-русски: реальные сессии агента-разработчика с DeepSeek Flash: запросы, записанные рассуждения модели, вызовы инструментов, ответы инструментов и итоговые сообщения. Доступны отдельные SFT-примеры и полные сохранённые траектории. Перед публикацией выполнены обезличивание и повторный аудит приватности.

Release v1.0.0

  • Three explicit configurations: a primary SFT subset, an extended SFT subset and complete retained trajectories.
  • Separate reasoning: reasoning_content is preserved independently of the assistant's answer text.
  • Causal supervision: the target assistant response's future tool observations are excluded from its prompt.
  • A second privacy pass: remaining name variants, directory logins, external account identifiers, encoded identifiers and UUIDv7 values were addressed; 78 private tool outputs were replaced with explicit omission markers.
  • Verified packaging: complete Parquet/JSONL row equality, split isolation, tool-call/result pairing, regenerated token counts and fingerprints, and 19 passing regression tests.

Teacher and provenance

Item Value
Recorded teacher label deepseek/deepseek-v4.1-flash-1017
Source Recorded coding-agent session history
Source sessions 369
Pseudonymized source projects 5
Connected task families 208
Recorded Flash assistant steps 13,954
Supervised assistant steps 13,902
Canonical reasoning blocks 13,397
Canonical tool calls and corresponding results 19,967
Recovered and sanitized UTF-8 text attachments 31
Canonical conversational text 24,082,416 tokens under cl100k_base
Main human languages Russian and English

The teacher label comes from the local provider metadata. The underlying upstream checkpoint was not independently verified. The curator does not claim authorship of the teacher model.

Reasoning is the text returned by the provider and recorded in the history. It does not provide access to hidden activations, weights, logits or internal model state. Six sessions retain earlier messages from another teacher as explicitly marked context; those messages are excluded from SFT targets.

The canonical text token count includes message content and recorded reasoning, before reuse in SFT contexts. It excludes tool-argument and instruction-snapshot serialization. It is neither the teacher's tokenizer count nor a guarantee about a future student's context length.

Tasks

Agentic software development / Агентная разработка ПО.

The teacher performs multi-step software-development work through tools: inspecting a repository, selecting actions, editing source, reading observations, running checks and reporting the result.

Task Recorded supervision
Agentic software development Multi-step repository work with preceding context, reasoning, actions and observations.
Code generation and editing Source additions, targeted fixes and code changes.
Debugging and refactoring Investigation, implementation changes and verification attempts.
Tool calling File reading/search, edits, shell commands and paired tool observations.
Repository and documentation workflows Branch/commit operations, documentation updates and recorded checks.

The Hub's standard task category is text-generation. The agentic software-development scope is declared here and in the dataset tags.

The mix

Configuration Focus Train Validation Test Total
sft Primary next-step supervision 3,659 251 123 4,033
sft_extended Additional targets with explicit context/quality flags 8,637 532 700 9,869
trajectories Complete retained session histories 328 23 18 369

The two SFT subsets are disjoint. The trajectories and JSONL mirrors are alternative views of the same underlying material. Adding all three configuration counts does not produce a count of independent tasks.

  • Primary SFT: excludes failed/empty assistant generations, incomplete calls, and targets assigned to the extended set for context-windowing, missing binary attachments, missing task context or failed target-tool flags.
  • Extended SFT: preserves additional structurally valid supervision with its limitations made explicit in quality_flags.
  • Trajectories: keeps the complete retained chronological histories, including failed attempts and context-only steps, for inspection and rebuilding windows.
  • Languages: Russian and English can occur within the same conversation. No per-example language classification or machine translation is claimed.
  • Splits: parent sessions, forks, delegated sessions and matched duplicate tasks/attachments are assigned together as 208 connected families. The policy targets approximately 90 / 5 / 5 by family, not by row count.

This is a within-project holdout. It is not an evaluation of generalization to unseen projects or a correctness-certified benchmark.

Files

Path Contents
data/sft/{train,validation,test}-00000-of-00001.parquet Primary supervised examples; default Hub configuration.
data/sft_extended/{train,validation,test}-00000-of-00001.parquet Additional supervision with quality/context flags.
data/trajectories/{train,validation,test}-00000-of-00001.parquet Full retained session histories and parallel message metadata.
jsonl/{sft,sft_extended,trajectories}/{train,validation,test}.jsonl.gz Equivalent compressed JSONL mirrors.
examples/kpi-import-trajectory.json One complete anonymized trajectory, already present in the training split.
SCHEMA.md Field definitions, causal message structure and quality flags.
PRIVACY.md, privacy_report.json Processing scope, the second privacy audit and its limitations.
quality_report.json, reports/ Structural, format, token-length, test and privacy reports.
manifest.json, SHA256SUMS Release counts, file sizes and content checksums.
src/, tests/, pyproject.toml Local preparation/validation tools and regression tests.
LICENSE, NOTICE Apache-2.0 release license and attribution terms.

Load the release

from datasets import load_dataset

repo = "biscet/CodeThinker-DeepSeek-Agentic"

sft = load_dataset(repo, "sft", token=True)
extended = load_dataset(repo, "sft_extended", token=True)
trajectories = load_dataset(repo, "trajectories", token=True)

example = sft["train"][0]
prompt = example["prompt"]
target = example["completion"][0]

print(target["role"])  # assistant
print(target["reasoning_content"])
print(target["tool_calls"])

token=True uses the account's configured Hugging Face credential. Access to a private repository is required. No credential is embedded in this release.

For larger scans, stream the Parquet configuration:

sessions = load_dataset(
    repo,
    "trajectories",
    split="train",
    streaming=True,
    token=True,
)

session = next(iter(sessions))
print(session["messages"][0]["content"])
print(session["messages"][-1]["content"])

All nine configuration/split combinations were loaded during local release checks. Parquet and JSONL mirrors were compared by complete row contents, row order and counts, rather than IDs alone.

Record format

Each SFT record has a chronological prompt and a one-message completion. Reasoning, tool calls and answer content are retained in separate message fields:

{
  "role": "assistant",
  "content": "Import added. Now checking the diff.",
  "reasoning_content": "...recorded provider-returned reasoning...",
  "tool_calls": [
    {
      "id": "call_pseudonym",
      "type": "function",
      "function": {
        "name": "shell",
        "arguments": "{\"command\":\"git diff --stat\"}"
      }
    }
  ],
  "tool_call_id": "",
  "name": ""
}

The example above illustrates the schema; it is not an extra training record. function.arguments is a valid JSON string. This keeps heterogeneous tool arguments in a stable Arrow schema. Parse it before passing it to a chat template that expects an object.

Other SFT fields include pseudonymous session/project/family IDs, source_message_id, teacher_model, teacher_variant, target_kind, quality_flags, prompt/completion token counts and omitted-context counts.

Trajectories contain messages, parallel message_metadata_json and a separate instruction_snapshot_json. Snapshots are persisted historical instructions, not a verified reconstruction of every original API request. The original system prompts and complete historical tool schemas are not fully reconstructable.

See SCHEMA.md for the full contract.

A trace from request to result

The included KPI import example contains 18 messages and eight tool calls:

  1. A delegated request describes four missing KPI cards and asks for an explicit local Vue component import.
  2. The teacher reads the component and searches its template.
  3. An initial shell glob fails; subsequent calls locate and read the ESLint config.
  4. One import is added.
  5. ESLint reports exit code 0; the diff shows one changed file and one inserted line.
  6. A final read confirms a single import and the unchanged template usage.
  7. The assistant returns the diff and verification summary.
 import { donutBgColors } from '~/constants/charts.js'
 import { gshmDashboardMock } from './mock'
+import GshmKpiCard from './GshmKpiCard.vue'

The observed evidence supports the edit and successful lint. This session contains no browser verification of the rendered cards. The request already supplies the diagnosis and intended fix; it is a delegated implementation example.

Before your training run

Completion masking, reasoning and tool arguments

Apply the supervised loss to completion. Treat prompt as preceding context; do not accidentally train every user request or tool observation as the next assistant target.

The included adapter can retain reasoning as a field, emit explicit think tags, or omit it:

from oboro_dataset.prepare import prepare_example

prepared = prepare_example(example, reasoning_mode="field")
# "inline": explicit <think> tags; "omit": no recorded reasoning.

Install the included helper package from a local checkout with pip install -e .. The internal import namespace is oboro_dataset; the distribution is codethinker-dataset-builder.

Choose a reasoning convention, tokenizer, chat template and tool representation appropriate for the actual student. A template that ignores reasoning_content discards that supervision.

Historical tool definitions are incomplete. Reconstruct the needed schemas for your training setup rather than treating an absent schema as a known interface.

Lengths, context windows and quality flags

The original windowing used a 32,768-token reference budget under cl100k_base, preserving whole tool-call/result groups and a recent task request where possible. Privacy substitutions can change token lengths; the current stored lengths must be checked before training.

Configuration Median prompt + target 95th percentile Maximum
sft 10,499 29,969 32,804
sft_extended 30,672 32,467 152,270

The primary set can slightly exceed the historical reference budget after redaction. The extended set retains oversized contexts/completions and explicit limitations. Re-tokenize and filter or rebuild windows against the actual student's budget after applying its chat template.

Important flags include:

  • context_windowed, context_over_budget, source_context_missing;
  • missing_binary_attachment, truncated_tool_output;
  • failed_target_tool;
  • privacy_redacted_tool_output;
  • historical_system_prompt_not_fully_reconstructed, tool_schemas_not_recorded.

A failed command or test can be useful context; it is not evidence of a successful final solution. No preference pairs, reward labels, success labels, teacher logits, captured hidden features or student-training results are supplied.

Privacy and publication processing

The corpus was processed locally. Detected private identifiers are replaced consistently with pseudonyms; recognizable credentials and sensitive payloads are removed. Processing covers human requests, recorded reasoning, assistant responses, tool inputs/results, instruction snapshots and recovered text attachments.

The second audit on 25 November 2026 addressed surname/initial forms, standalone name variants, account-directory logins, external account IDs, encoded identifiers and UUIDv7 values. 78 tool outputs containing employee directories or account/device state were replaced with explicit omission markers while preserving call/result pairing.

The exported package passed structural and split-isolation checks. Independent Gitleaks scans, configured-identifier checks and candidate review reported zero confirmed remaining sensitive findings within their stated scope. Synthetic fixtures, existing pseudonyms and public reference authors can still trigger broad candidate detectors.

This is pseudonymization, not proof of irreversible anonymity. Code structure, task wording, project details and public source material may remain recognizable to someone familiar with the underlying projects. Redacted code is not guaranteed to execute; replacement of identifiers and literals changes source fragments.

Source databases, account/credential tables, binary attachments, original device inventories, raw candidate findings, private replacement dictionaries and the pseudonymization salt are excluded.

See PRIVACY.md and the privacy report.

Validation and reproducibility
  • All 14,271 rows per storage format, across all nine configuration/split combinations, passed the recorded complete-mirror checks.
  • Calls/results remain paired; tool arguments parse as JSON.
  • Connected families and source sessions do not cross splits.
  • The two SFT configurations supervise distinct source messages.
  • A target's future tool result does not appear in its prompt.
  • Exact duplicate examples are excluded.
  • Stored SFT fingerprints and token counts were regenerated and verified.
  • 19 regression tests and the recorded Ruff check passed.

For a local rebuild, use a read-only source database and a private rule file:

pip install -e '.[dev]'
codethinker-build --database /path/to/session-history.db \
  --private-rules /private/path/rules.json --output /path/to/release
codethinker-validate --root /path/to/release \
  --private-rules /private/path/rules.json
pytest

The private configuration contains a salt, replacements and optional whole-word boundary_replacements. It stays outside the release. Exact reproduction of the pseudonyms requires the original private configuration. Canonical trajectories can be used to rebuild training windows without the original database.

The audit does not certify code correctness or training improvement. No model training or benchmark evaluation was performed for this release.

Attribution and terms

Release license: Apache-2.0.

The dataset compilation and accompanying preparation software are released under Apache License 2.0. Existing third-party rights in embedded code, documentation, names and notices remain applicable. The release license does not override those rights or replace source-specific attribution.

The curator is biscet. DeepSeek teacher provenance refers to the recorded provider label; the curator does not claim ownership of the teacher model.

See NOTICE.

Related dataset

DFlash DeepSeek TraceMix provides a separate collection of task contexts and teacher agent traces. CodeThinker uses the same card presentation style, with its own source, three configurations, schemas and verification reports.

Downloads last month
336

Collection including biscet/CodeThinker-DeepSeek-Agentic