TRANSMISSION // 2612.02919v1
Can AI Reconstruct the Reasoning Missing from Coding-Agent Logs?
Source published
A study of real coding-agent sessions finds that most turns lack recorded reasoning. Its proposed method adds candidate rationales, but tests so far measure prediction proxies—not whether agents solve tasks better.

Coding-agent logs can show what an AI did without recording why. Researchers study whether plausible reasoning can be added afterward—and how to avoid rationales that simply reveal the action in hindsight.
The gap between an action and its explanation
A coding agent might read a file, run a command or edit code, while its transcript records no explanation for the move. That leaves a gap for researchers who want to train future agents on real interactions: the actions are available, but much of the reasoning that might have accompanied them is not.
In Actions Without Reasons, Qin Wang and colleagues examine that gap in a dataset of 20,000 coding-agent sessions. They count 775,000 assistant turns and find 17.6 non-empty reasoning blocks per 100 turns. In other words, more than 82% of turns have no recorded reasoning block. The authors also release Trajector-SWE-20K, a collection of consented sessions that they say were redacted, screened for credentials, checked against benchmark repositories and deduplicated.
The central question is whether researchers can add useful reasoning to action records after the fact—without writing explanations that depend on information the agent could only have learned from its subsequent action.
Writing without seeing the destination
To generate a rationale, the researchers give a writer model the conversation so far and the broad category of the next action—for example, reading a file. They withhold the action’s specific arguments, such as which file is being read. This restriction is meant to keep the rationale grounded in the context available before the action, rather than letting the writer simply describe what happened.
The writer proposes several candidate rationales for each position. A frozen student model then scores how much each candidate raises the probability of the action that actually occurred. The researchers keep the highest-scoring candidate among those generated for that same position. Importantly, they do not apply a single score threshold across positions.
That choice responds to a warning from the paper’s tests: a high score can reward hindsight rather than a faithful explanation. In a comparison across 250 positions, rationales written with the full action visible passed a fixed score threshold of 3.0 nats 49.6% of the time. Rationales written without seeing the action passed at 1.6%. The authors argue that a filter based on this threshold alone would therefore favor explanations that already know the answer. Their method limits what the writer sees instead. A check for specific names or paths that appeared in the action but not the preceding context found such leaks in 1.0% of candidates in a calibration sample; the flagged candidates were discarded.
Early training results—and what they show
The team trained a 7-billion-parameter student model using matched token budgets, comparing training setups that differed in whether they retained native reasoning or added synthesized reasoning at empty positions. Keeping native reasoning reduced held-out perplexity on real reasoning text by 18.4%. Adding synthesized reasoning improved the held-out log-probability of recorded actions by an average of 3.9% across seed pairs, an improvement the paper says exceeded seed variation.
These are measures of prediction, not demonstrations that an agent can complete coding tasks more successfully. The authors explicitly say they did not run a downstream benchmark. The action-prediction measure is also closely related to the score used to select rationales, so the improvement could partly reflect that overlap. The selection step was not tested in isolation, either.
The experiments have a narrow scope: one 7B student trained with LoRA on roughly 140 sessions, with two seeds for the main training arms. The writers and recorded agents also came from different model families. As a result, a synthesized explanation may fit the recorded action without matching what the original agent actually thought. And the named-entity leak check cannot catch every kind of backward reasoning: an explanation could infer details from the action without naming a file or identifier.
A dataset with careful screening—and remaining caveats
The dataset is presented as a resource for studying and training coding agents, not as a complete or representative record of all coding-agent use. Contributors authorized publication, and the authors describe multiple redaction and credential-screening steps. Still, the paper notes that consistent pseudonyms make it possible to link sessions from the same contributor. Screening also removed flagged sessions, and some content-heavy types of sessions may be under-represented as a result. The authors further say that some data used in experiments were drawn before the final credential screening and are not in the public release.
The source is an arXiv preprint that identifies itself as connected to a NeurIPS 2026 workshop; this article does not independently verify its review or publication status. The results are therefore best read as an initial study of a method and dataset. Whether synthesized reasoning helps agents complete real coding tasks, and how much the scoring and action hint contribute, remain open questions.
- coding agents
- AI reasoning
- synthetic data
- agent trajectories
- machine learning
- dataset
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
CoT-Factory adds synthesized reasoning to agent data
Shared method: Both papers synthesize reasoning for recorded agent actions using prior context and action information. The origin paper’s writer receives the action kind but not its arguments, whereas CoT-Factory trains a synthesis model conditioned on target actions. This is a bounded methodological overlap, not evidence of equivalent pipelines or downstream effects: the origin paper reports proxy metrics and no downstream benchmark, while CoT-Factory reports benchmark results.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.02919v1 — Original paper
Excerpt reference:
static/papers/2612.02919v1.md:98-153
Basis: Paper text
Source file SHA-256:5b934360ae689fb2702d6ebb361d47d8a1ff6178877ccda7172dc3822e4c05d52611.37703v1 — Original paper
Excerpt reference:
static/papers/2611.37703v1.md:104-155
Basis: Paper text
Source file SHA-256:ac27e7bdedcc5c4c01367fea39cfcf37f60359e8a9c7b7af92874b5e85480ad42611.37703v1 — Original paper
Excerpt reference:
static/papers/2611.37703v1.md:608-667
Basis: Paper text
Source file SHA-256:ac27e7bdedcc5c4c01367fea39cfcf37f60359e8a9c7b7af92874b5e85480ad4
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
What an AI Coding Agent’s Work Log Can Tell a Reviewer
Source published
Shared keywords: agent trajectories
ProgramGen turns real code repositories into training grounds for AI agents
Source published
Shared keywords: machine learning
CoT-Factory adds synthesized reasoning to agent data
Source published
Shared keywords: synthetic data
DemoFoundry turns robot simulations into realistic training videos
Source published
Shared keywords: synthetic data
AI reasoning can be shorter by reusing familiar phrases
Source published
Shared keywords: ai reasoning, machine learning