TRANSMISSION // 2610.02710v2
Can scientific software help train terminal AI agents?
Source published
A framework called software-in-the-loop reconstruction turns existing scientific workflows into testable tasks. In experiments, training on verified solutions improved performance on several terminal-agent benchmarks, though reconstruction remained difficult and the results are limited to particular models and tests.

Training an AI agent to use command-line tools takes more than giving it examples: researchers also need reliable ways to check whether its work is correct. This preprint proposes reusing scientific software workflows to create those examples and checks, then tests whether the resulting training data helps agents on other terminal tasks.
Training an AI agent to work in a computer terminal means teaching it to write and run programs, use software tools, and complete multi-step tasks. In scientific fields, judging whether its output is correct can be especially tricky: a result might be a table, a simulation, a molecular sequence, or a 3D model. Creating a reliable reference answer and a suitable checker for every training task also takes time.
A new preprint asks whether existing scientific software workflows can help solve both problems. The authors’ approach, called software-in-the-loop reconstruction, treats a workflow as a reference answer: run it with different inputs, show an agent some input–output examples, and ask it to build a program that reproduces the workflow’s behavior on new inputs.
Turning workflows into tests
The researchers built a dataset called Software Workflows Reconstruction, or SWR. It contains 3,000 tasks based on 500 workflows from 46 software families, grouped into six broad areas. These include physical and engineering simulation, life and molecular sciences, and earth and space sciences.
For each task, the agent receives an instruction and public examples, but not the original workflow implementation or the hidden test cases. The checker runs the agent’s program on those hidden inputs and compares the results with the reference workflow’s outputs. It checks whether the program runs and produces the expected output structure, compares results using rules suited to the kind of output, and applies checks against simple shortcuts such as replaying a public answer. Feedback from public examples lets the agent revise its program before the hidden evaluation.
The comparison rules differ by output: some values require an exact match, numerical results allow specified tolerances, and geometric outputs use specialized checks. In a blinded review of 200 cases, the checker agreed with human judgments on 98% of cases. That is evidence of strong agreement in this audit, not a guarantee that every check is correct: the authors note that disagreements included numerical tolerance boundaries and geometrically equivalent shapes represented by different meshes.
Training results—and a difficult benchmark
Reconstructing the workflows was challenging. On the full SWR dataset, Qwen3.8-Max solved 22.8% of tasks on its first attempt and 27.9% across three attempts. A program that runs is not necessarily a correct reconstruction: it must reproduce the workflow’s behavior on inputs it has not seen.
The authors then selected successful agent attempts whose programs passed the hidden tests, creating training examples that include the agent’s actions and tool interactions. They used these verified trajectories to fine-tune other models and evaluated them on terminal-agent benchmarks.
For Qwen3.8-27B, the reported mean score on Terminal-Bench 2.0 rose from 47.94% before fine-tuning to 53.56% afterward, averaged across three runs. The paper also reports gains on Terminal-Bench 4.0, Long-Horizon Terminal-Bench, and a difficult 100-task SWR subset. In a comparison using the same training-token budget, SWR-based training had higher mean scores than four other training corpora across all four evaluations. The paper reports a similar improvement on Terminal-Bench 2.0 for a second model, Qwen3.5-27B.
These are benchmark results, not evidence that the trained agents can reliably conduct scientific research or produce scientifically valid conclusions. The tests focus on reproducing software behavior, and performance varied across tasks and domains. In the 100-task subset selected because one model could not solve it, success rates were low for most tested models. The authors also report only preliminary evidence that training transfers to software families with no successful examples in the training data; absolute success rates on that subset remained low.
What the evidence can—and cannot—show
The approach could reduce repeated work when researchers turn established software workflows into training tasks: once a workflow and its comparison rules are integrated, changing the inputs can generate additional examples. But integration still required substantial human effort. The paper reports about 336 person-hours from two contributors to build SWR, and roughly one in five candidate workflows was rejected during validation.
The findings depend on the selected workflows, software families, checker rules, models, and benchmarks. A checker can only judge what its comparison rules capture, while strict hidden tests may reject outputs that are scientifically equivalent but represented differently. The training comparisons also cover a limited set of models and three runs per condition; they do not establish how broadly the benefits generalize.
This is a preprint, so its claims should be treated as provisional pending peer review and independent replication. The supplied paper reports extensive audits and benchmark experiments, but those do not remove the limitations of the task selection or evaluation setup. The central result is narrower: in these experiments, verified examples from reconstructed software workflows improved selected terminal-benchmark scores, while building and solving such tasks remained difficult.
- AI agents
- scientific software
- terminal agents
- self-supervised learning
- program verification
- machine learning
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A Shared Toolkit Helps AI Agents Write More Valid Finance Code
Source published
Shared keywords: ai agents, program verification
Why an AI code gatekeeper cannot certify every safe program
Source published
Shared keywords: ai agents, program verification
How MAASAI coordinates astronomy analysis
Source published
Shared keywords: ai agents, scientific software
Testing Whether AI Agents Can Produce Checkable Proofs
Source published
Shared keywords: ai agents
A Benchmark for AI Edits to Earth System Models
Source published
Shared keywords: scientific software