Rules to Tools: Executable Checks for LLM Agents in Scientific Computing

Jingjie Ning, Guojiang Zhao, Chen Xu, Shanshan Zhong, Xiaochuan Li, Ji Zeng, Guolin Ke

Carnegie Mellon University · DP Technology

Published September 29, 2026 · on the feed October 2, 2026 · ▲ 10 · arXiv 2610.00313

AgentsCode & software No code arXiv ↗Hugging Face ↗

The abstract

Scientific coding agents receive equations, boundary conditions, and output requirements in writing, then must assess the programs they revise. Rules to Tools (R2T) supplies prepared executable checks of public scientific requirements. Matched SciCode repair groups share written checks, starting programs, model, and budgets; the tool group receives a callable implementation. Across two task-ID cohorts, complete repair is 26/30 with text and 29/30 with the prepared checks. Three task IDs favor tools, one favors text, and eleven tie. The eight-ID cohort scores 13/16 versus 15/16, with a task-cluster bootstrap 95% interval of [-12.5, 43.75] percentage points for the difference. The larger shared-definition SciCode cohort ties at 13/24 per group. Five development-exposed tasks with alternate starting programs score 3/10 versus 7/10. The tool group favors tasks 17, 77, and 11; initial checks flag task 17 and report no violation for tasks 77 and 11. Task 37 favors text and has no initial reported violation. A fresh source-through-Python arm also reaches 15/16, matching the dedicated command's aggregate. In a matched PDE comparison, detailed text scores 23/24 and checks score 24/24, with 31.2% lower reported model output for checks. Agent-side output savings vary by cohort, while public CPU use rises in both task-ID cohorts. These results measure task-dependent repair outcomes and agent-side costs with prepared checks.

The Brief

2:37

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Rules to Tools. Executable Checks for LLM Agents in Scientific Computing. By Jingjie Ning and six others, from Carnegie Mellon University and DP Technology. Published on the twenty-ninth of September. No code repository is linked to it.

Scientific coding agents are given equations, boundary conditions and output requirements in writing, and then have to judge the programs they revise. Rules to Tools, or R2T, asks what changes if those public scientific requirements also arrive as prepared, executable checks. The study's answer is that repair outcomes depend on the task, and that the agent-side costs shift too.

The design is matched. In SciCode repair, the two groups share the written checks, the starting programs, the model and the budgets. The only difference is that the tool group also receives a callable implementation. Pooled across two task-ID cohorts, complete repair is twenty-six of thirty with text and twenty-nine of thirty with the prepared checks. Three task IDs favour tools, one favours text, and eleven tie.

In the eight-ID cohort, the score is thirteen of sixteen against fifteen of sixteen. A task-cluster bootstrap gives a ninety-five percent interval for the difference running from minus twelve point five to forty-three point seven five percentage points, which includes zero. The larger SciCode cohort with shared definitions ties, thirteen of twenty-four in each group. Five development-exposed tasks with alternate starting programs score three of ten against seven of ten.

Tool-favouring tasks are seventeen, seventy-seven and eleven. Initial checks flagged task seventeen, but reported no violation for seventy-seven or eleven. Task thirty-seven favours text, again with no violation initially reported. A fresh arm that goes through Python from source also reaches fifteen of sixteen, matching the dedicated command overall. In a matched comparison on partial differential equations, detailed text scores twenty-three of twenty-four and checks score twenty-four of twenty-four, with thirty-one point two percent less reported model output for the checks.

These are small counts, and the one interval reported spans zero. The cohort-level picture is mixed: one cohort ties outright, and the savings in agent output vary from cohort to cohort. Costs move in the other direction too, since public CPU use rises in both task-ID cohorts. The authors frame the results narrowly, as measurements of task-dependent repair outcomes and of agent-side costs when prepared checks are supplied.

Handing an agent a runnable version of a rule, then, sometimes helps, sometimes ties, and once favours plain text, and the abstract is careful to record which tasks fell where rather than average them away.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Every quest starts with a wall. Here it is an agent that can read the rules but cannot easily measure its program against them.

You run a coding agent on scientific tasks. Its prompt spells out the equations, the boundary conditions and the outputs a program must produce, all in writing.

The road ahead

  1. 1 · The problem ~6 min A scientific program can run to the end and still be wrong, and an agent holding only written rules struggles to tell.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Turn each written scientific requirement into a ready-to-run check the agent can call on its own program while it revises.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Write the rules as checks, give only one group a callable version, let both repair the same programs, then grade them independently.
  6. 6 · The experiment ~6 min You’ll guess: In the larger shared-definition SciCode cohort, how did the group with prepared checks compare with the text-only group on complete repair?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.