Dataset
Coding agent trace datasets from private repositories
A coding agent traces dataset is a set of session logs from AI coding agents and assistants working on a company's private repositories: the prompts, plans, tool calls, file edits, command output and test results of each session, joined to whether the developer accepted, edited, reverted or merged the result. SourceX sources these traces to a buyer's spec from established businesses whose engineering teams use such tools, subject to rights review of the logs and the code inside them. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Session logs of AI coding agents on private repositories, joined to the human verdict on each result
- Typical systems
- Agent CLIs and IDE assistants such as Claude Code, Cursor, GitHub Copilot and Aider; git hosts for outcomes
- Typical history
- Short by nature; teams have logs only from the date they adopted a tool and kept its sessions
- Modality
- Ordered events holding prompts, code diffs and terminal output, with structured outcomes
- Delivery formats
- Agreed per order; JSONL events, patches, and git bundles where the repository is licensed
- Preparation
- Secrets and environment values scrubbed from prompts, tool results and diffs; developers pseudonymized
- Licensing
- Depends on the repository owner's rights and the tool vendor's terms on logs; both reviewed per dataset
- Availability
- Sourced to your spec from teams that kept full session logs; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| session_id | string | Pseudonymous ID for one agent session, stable across its events, diffs and outcome. |
| tool | object | The agent or assistant, its version, interactive or background mode, and the model identifier as logged. |
| repo_ref | object | Pseudonymous repository, the base commit the session started from, and a snapshot reference where licensed. |
| task | object | The opening prompt, any linked issue and a task category such as bug fix, feature, refactor or test writing. |
| context | object | Instruction files, rules and files loaded into context, and whether the vendor's system prompt was removed. |
| events | array | Ordered events with sequence number, timestamp and type: user or assistant message, plan, tool call or tool result. |
| events[].tool_call | object | Tool name, arguments and a call ID that pairs the call with its result. |
| events[].tool_result | object | Output or a reference to it, exit code, byte count and a truncation flag. |
| edits | array | File edits as unified diffs, with path, the event that produced each and whether it applied cleanly. |
| permissions | array | Approval prompts shown to the developer and the answer: allowed once, always allowed or denied. |
| test_runs | array | Test and build commands run in the session, with pass and fail counts before and after the edits. |
| verdict | object | What the developer did with the result: accepted, edited, reverted or abandoned, with commit, review and merge linkage. |
| redaction | object | What was scanned, which categories were replaced and how the developer was pseudonymized. |
| rights | object | Repository ownership basis, the tool plan the session ran under and whether the vendor terms were reviewed. |
Field names from the table above; values are masked placeholders.
Example record
{
"session_id": "ses_7b3e91",
"tool": { "name": "[AGENT_CLI]", "version": "2.4.1", "mode": "interactive", "model": "[MODEL_ID]" },
"repo_ref": { "repo_id": "repo_c204", "base_commit": "e41f9a7", "snapshot": "bundles/repo_c204@e41f9a7.bundle" },
"task": { "prompt": "Invoices with a 100% discount line crash the PDF export. Fix it and add a regression test.",
"linked_issue": "iss_5521", "category": "bug_fix" },
"context": { "instruction_files": ["AGENTS.md"], "vendor_system_prompt": "removed" },
"events": [
{ "seq": 1, "t": "2026-03-04T09:12:40Z", "type": "user_message", "text_ref": "task.prompt" },
{ "seq": 2, "t": "2026-03-04T09:12:52Z", "type": "plan",
"text": "1. Reproduce with a failing test. 2. Trace the totals calculation. 3. Fix and run the suite." },
{ "seq": 9, "t": "2026-03-04T09:14:31Z", "type": "tool_call",
"tool_call": { "id": "call_07", "name": "bash", "args": { "command": "pytest tests/billing/test_export.py -k zero_total" } } },
{ "seq": 10, "t": "2026-03-04T09:14:39Z", "type": "tool_result",
"tool_result": { "call_id": "call_07", "exit_code": 1, "bytes": 6120, "truncated": true,
"output_tail": "ZeroDivisionError: division by zero (billing/export/totals.py:88)" } },
{ "seq": 14, "t": "2026-03-04T09:17:02Z", "type": "user_message", "interrupted_agent": true,
"text": "Stop. Do not special-case zero in the template. Fix it in totals.py." }
],
"edits": [
{ "event_seq": 12, "path": "billing/templates/invoice.html", "diff_ref": "diffs/12.patch", "applied": true, "kept": false },
{ "event_seq": 16, "path": "billing/export/totals.py", "diff_ref": "diffs/16.patch", "applied": true, "kept": true }
],
"permissions": [
{ "event_seq": 21, "request": "run: git push origin", "answer": "denied" }
],
"test_runs": [
{ "event_seq": 10, "command": "pytest -k zero_total", "passed": 0, "failed": 1 },
{ "event_seq": 20, "command": "pytest tests/billing", "passed": 212, "failed": 0 }
],
"verdict": { "outcome": "accepted_with_edits", "link_method": "commit_trailer_and_base_commit", "commit": "9c02d1b",
"agent_diff_lines": 31, "lines_kept": 24, "human_change": "removed a redundant guard",
"pull_request": { "id": "pr_1187", "review_rounds": 1, "merged": true, "reverted_within_30d": false } },
"redaction": { "scanned": ["prompts", "tool_results", "diffs"], "replaced": ["env_value"], "developer": "dev_0e7" },
"rights": { "repo_ownership": "partner_owned", "tool_plan": "business", "vendor_terms_reviewed": true }
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train on corrected trajectories
Sessions where a developer stopped and redirected the agent show the wrong step, the correction and the recovery in sequence.
Learn rewards from real outcomes
Accepted, edited, reverted and merged outcomes label whole trajectories for reward models and for filtering training data.
Evaluate agents on private repositories
A base commit, the original prompt, the merged diff and the tests make an evaluation item absent from public code.
Study tool-use failure modes
Real sessions contain repeated failing commands, edits that do not apply, invented file paths and context lost in long runs.
Tune autonomy and permission policies
Approval prompts and denials show which commands developers let an agent run unattended.
Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Verdict joined to the session
A recorded link from session to commit and pull request, not a guess from timestamps.
Complete event stream
Full tool results and terminal output, with truncation flagged.
Known starting state
A base commit for every session, so the repository the agent saw can be restored.
Human turns kept verbatim
Corrections, interruptions and follow-up prompts in the developer's own words.
Failures left in
Abandoned and reverted sessions kept at their natural rate and labeled, not filtered out.
Outcome after review
Review rounds, merge status and any later revert.
Agent run
Coding agent traces dataset
The human verdict is the label
The human verdict is what separates a trace from synthetic data. A lab can run its own agents on public repositories and produce any number of prompts, tool calls and diffs. What it cannot produce is a developer who owns the code deciding whether the result was good enough to keep. That decision comes in grades: accepted as written, accepted and then edited, abandoned mid-session, reverted, merged after review, or reverted after merge. A dataset that collapses them into accepted or rejected has thrown most of the signal away.
The verdict rarely sits in the tool's own log, which ends when the session does. Whether the diff was committed is in git, whether it passed review is on the code host, and whether it was reverted is known weeks later. Joining them takes the session's base commit and timestamps, helped by the co-author trailers some tools add to commits. The join fails in predictable ways. Developers squash agent commits together with their own work, several sessions land on one branch, and an accept click may only mean a file was written before the developer discarded it. The distance between the agent's final diff and the committed diff is usually a more honest label than the click.
Signals inside the session are just as useful. An interruption, a correction or a denied permission prompt marks the exact step where the agent went wrong. A dataset filtered down to merged sessions cannot teach a model what a bad trajectory looks like, so ask for abandoned and reverted sessions to stay in, labeled.
Rights questions specific to traces
A trace holds material from several parties, so its rights have to be checked from more than one side. It contains the repository owner's code and prompts, the tool's outputs, third-party code the agent read and whatever the terminal printed. Three checks follow, and each is the buyer's to make as well as the supplier's.
The first is the tool vendor's terms on logs and outputs. They say who owns inputs and outputs, what a customer may do with them, and in some cases restrict using outputs to develop competing models. Terms differ between business and individual plans and change over time, so the version that matters is the one in force for that account on the session dates. Vendor system prompts and tool schemas captured in a log may be the vendor's confidential material and are commonly stripped.
The second is the repository owner's rights, which follow the same chain-of-title questions as any codebase: employee work, contractor assignments and code built for clients. The third is what the trace swept up by accident. Agents read environment files, echo variables and run commands that print tokens, connection strings and rows from a development database, so secret scanning has to cover tool results and terminal output, not only diffs. Open-source and vendored files read into context stay under their own licenses and should be flagged.
What to check before licensing
- Read the tool vendor's terms that applied to the partner's plan on the session dates, and check what they say about ownership of logs and about using outputs to train models.
- Ask how each verdict was derived: recorded by the tool, joined to git by commit, or inferred from timestamps. Ask for a confidence flag on every session.
- Confirm the partner owns the repositories in the traces, and that client-owned code and unassigned contractor code were excluded.
- Check that secret scanning covered prompts, tool results and terminal output as well as diffs, and that any live credentials found were rotated.
- Ask whether sessions were filtered before delivery. If only successful sessions were kept, the outcome labels are biased.
- Check whether tool results are complete, and how truncated output, summarized context and model reasoning text are marked.
- Ask whether developers were told their sessions were logged and could be licensed, and how sessions run under personal accounts were handled.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Why does the human verdict matter in a coding agent trace?
Because it is the one part of a trace a lab cannot produce by running agents itself. Prompts, tool calls and diffs can be generated at any scale on public code. Whether the developer who owns the repository kept the change, rewrote half of it, or reverted it a week later can only come from real use. That outcome makes the trace a labeled example.
Which tools do the traces come from?
From whichever agents and assistants a partner's engineers use, where the tool keeps a usable log and its terms allow the log to be licensed. Terminal agents tend to keep full session transcripts as JSONL on the developer's machine. IDE assistants vary, and some keep little locally. Some teams capture sessions through a gateway or OpenTelemetry. Name the tools and versions you need in the request.
Are the repositories included with the traces?
Only where the partner licenses them as well. A trace records the files the agent read and the diffs it wrote, which gives partial content. Replaying a session or scoring a new agent on the same task needs the repository at the base commit, plus the environment to run its tests. If you need replay, say so up front, since it widens the rights review.
Can traces from one vendor's tool be used to train a different model?
That depends on the vendor's terms, and it is the first thing to check. Terms differ by vendor, by plan and by date, and some restrict using the service or its outputs to build competing models. Read the terms that applied to the partner's account when the sessions were recorded, and have counsel decide whether your intended use fits.
How are secrets and personal data removed from traces?
By scanning every part of the trace, since secrets turn up where a code scan never looks. Agents read environment files and run commands whose output includes tokens, connection strings or rows from a development database. Prompts, tool results and diffs are scanned, findings are replaced with placeholders, and developers are pseudonymized. No method is perfect, so the method is recorded for each dataset.
How much history should we expect?
Less than for most datasets, so specify a date range instead of years. Coding agents are recent, teams adopted them at different times, and some tools delete local session logs after a retention period unless configured otherwise. Tool versions also change quickly, which changes the log format. State the minimum number of sessions, the tools, the languages and the share of sessions with a recorded verdict that you need.
Related datasets
- Software engineering histories (issues, PRs, reviews)
Issues linked to commits, pull requests, code review, CI runs, deploys and incidents
- Proprietary codebases with full history
Complete private repositories with full version history, build files, tests and docs
- Legacy and rare-language codebases
Private production code in under-represented languages, with copybooks, job control, data definitions and change history
- Computer-use trajectories and action-labeled screen recordings
Screen recordings of employees doing real tasks, with synchronized input events, interface state and verified outcomes
- Human feedback and QA-scored work
Work items with scores, verdicts and corrections from the people who reviewed them
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.