Pith.

Software Engineering · arXiv:2610.09995 v2 · submitted 7 Oct 2026

Designing Collaborative AI-Driven Workflows for Scientific Software Engineering

Akash Dhruv, Max Knobbe, Pedro Machado, Anshu Dubey

The paper says

“Agentic artificial intelligence systems can carry out a broad range of tasks in software engineering and scientific research, from writing and translating code to running workflows for data analysis and visualization.”

more of the abstract

In scientific computing, the difficulty is verifying that agent-generated code is both correct and understandable to teams whose members bring different areas of expertise. We therefore argue that these systems are best used within collaborative team structures rather than as full automation. In the workflows we propose, domain experts write the specification and plan, and agents operate under a deterministic orchestration pattern to write the target code. Each stage ends with a numerical comparison against the reference code and requires human review and approval before the next begins. We evaluate these workflows on the translation of a large high-energy physics application from Fortran to C++, running the same task under different orchestrators, design patterns, and models. Across fourteen experiments, a simple author–reviewer loop with enforced limits completed a comparable number of files to a multi-agent workflow at about one-third of the cost per file.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 8 Oct 2026 · of version 1 of the paper; version 2 is newer · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up, with conditions. The headline cost ratio holds up in the data, but the paper's own Section 4.4 shows its files-settled denominator is partly a post-hoc human judgment call, and the enforcement claim is framed more cleanly than the comparison actually is. This line is wrong

3 major objections · 5 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the references say.

The paper says, at test

The review did not quote this passage.

Pith says: Objection 1 of 3 · major

This is a test comment.

The paper says, at test

The review did not quote this passage.

Pith says: Objection 2 of 3 · major

This is a test comment.

The paper says, at test

The review did not quote this passage.

Pith says: Objection 3 of 3 · major

This is a test comment.

5 minor objections

The paper says, at test

Pith says: minor objection 1 of 5

This is a test comment.

The paper says, at test

Pith says: minor objection 2 of 5

This is a test comment.

show 3 more

The paper says, at test

Pith says: minor objection 3 of 5

This is a test comment.

The paper says, at test

Pith says: minor objection 4 of 5

This is a test comment.

The paper says, at test

Pith says: minor objection 5 of 5

This is a test comment.

What would settle it

Using the archived Zenodo lab notebook (Dhruv et al., 2026a) and the evals/analysis scripts, re-tabulate Table 2 under the strict Section 3.1 oracle: a file counts as settled only if, on the run's git branch, the coverage probe changes the benchmark and the unperturbed file reproduces the reference within tolerance; drop the type-preserving human rule entirely. Identify every file whose settlement would change, and recompute csloop Opus 5 (R4–R6) versus ccworkflow (R1–R3) files settled and USD per file. The concern lands if the cost ratio moves above roughly 0.7 or the settled-count gap stops being comparable; it does not land if the ratio stays near one-third to one-half and the counts remain in the same range. Also report how many files required the human semantic rule, bounding the size of the unverified category.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 8 Oct 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic agrees 1 min 25 s · 21,160 tokens read, 12,362 written
  3. Editor wrote the verdict above 32 s · 22,134 tokens read, 5,183 written
  4. Referee major revision: 3 major objections, 5 minor 2 min 10 s · 21,496 tokens read, 20,685 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

Short version: the descriptive core is solid and the transparency is the real contribution, but two things need tightening before I'd trust the magnitudes, and one of them is the paper's own doing.

What is actually here: fourteen runs of the same MCFM translation task, same commit, same agentic layer, across two orchestrators, two workflow patterns, and three model families, with per-run cost, token, tool-call, and cache data in Table 2, a run manifest mapping every run to an archived Zenodo directory, and honest disclosure of the soft spots. The reader's take had the numbers right: CodeScribe's author-reviewer loop settled 12-15 files at about $1.00-1.07 per file versus $1.98-2.91 for the multi-agent Claude Code workflow. That is roughly a third, matching the abstract. The transcription of the loop's token accounting and the adaptive behavior (awk blocked, Python one-liner substituted) is useful concrete evidence for people designing these systems.

The main soft spot is exactly what the stress-test flagged, and it does hold up on reading. Section 3.1 defines the oracle as a coverage probe plus benchmark reproduction within tolerance. Section 4.4 then reports that placeholder-integer translations of the precision-kind constants passed the full benchmark because the converted code never referenced them, and the authors count the file as settled "when the model made a type-preserving choice." That rule is post-hoc, human-applied, and not part of the Section 3.1 oracle. In proportion: this affects at most one file in a handful of runs and shifts per-file costs by a few percent, so it does not overturn the headline direction. But the settled metric should be defined as oracle verification plus a stated human judgment rule, applied uniformly and reproducibly from the archive, with a sensitivity note on how the ratios move either way.

The other soft spot is Section 4.3's framing. csloop never ran past its bounds; ccloop reached 67 iterations against a stated limit of 30. That is decent within-Claude-Code evidence that prompt-stated limits do not bind. But "varies only how the behavioral rules are enforced" overstates it: the two orchestrators differ in caching, memory, session handling, and the base agent. The confound does not remove the finding; it makes it system-level evidence rather than a clean ablation. The paper says as much in its design section, so the fix is mostly prose.

Minor: no variance measures for one-run conditions, acknowledged in the text; one contaminated run, acknowledged; list prices, stated. No machine-checked proofs here, but Table 2 plus the archive is real evidence, and the paper cites its own prior work exactly where the tools under test require it.

Who it is for: people designing agentic workflows for scientific code, research software engineers modernizing Fortran, and anyone planning similar translation studies who wants a concrete template for staging, oracle design, and archiving. It deserves a serious referee. I would accept for review and ask for the settled-count rule, the sensitivity analysis, and a softened Section 4.3.

The strongest objection

Every headline ratio in Table 2 is normalized by 'files settled', so the definition of that count is load-bearing. Section 3.1 defines the oracle as a coverage probe plus reproduction of the reference benchmark within tolerance. The paper's own Section 4.4 then reports that the Fortran precision-kind constants (sp, dp, ex, qp) were translated either as real types or as placeholder integers, and both forms passed the full benchmark because the converted code used type keywords directly and never referenced the constants. The coverage probe cannot certify the constants: perturbing them does not change the benchmark, so a wrong-but-unexercised choice is invisible to the oracle. The authors count the file as settled 'when the model made a type-preserving choice'—a human semantic rule applied after inspecting each model's output. That rule is not part of the Section 3.1 oracle, is not specified in advance, and is not reproducible from the archive as an automated check. 'Settled' therefore mixes oracle-verified files with files admitted by a different, post-hoc standard; runs that wrote the placeholder receive cost but no credit, while runs that chose the type receive credit for a correctness property the numerical oracle did not establish. If this category extends beyond the one shown file, both the 'comparable number of files' and the per-file cost ratio change. The authors disclose the specification gap, but they present the counting rule as a resolution; the unresolved issue is whether the settled metric is valid and uniformly applied.

The reader's weakest assumption and mine are the same: the numerical oracle plus the 'settled' count is the foundation of the headline result. The precision-kinds file is the paper's own counterexample to that foundation. Two incompatible translations both pass the full benchmark, and the authors substitute a human type-preservation judgment for the oracle when deciding whether the file counts as settled. That makes the denominator of every cost-per-file number partly subjective and not fully determined by the reproducible checks defined in Section 3.1. This is a validity threat to the central claim because the claim is about cost per settled file, not merely about raw token expenditure. At the same time, the single demonstrated file is small relative to the 12–16 files settled in the relevant runs, and a rough re-reading of Table 2 suggests the csloop-versus-ccworkflow ratio would remain in the one-third-to-one-half band even if that file were excluded. The concern therefore supports the reader's CONDITIONAL verdict rather than overturning the descriptive result. I did not make the acknowledged memory contamination or the orchestrator/model confounding the primary attack: the authors disclose R12's memory effect and provide R13/R14 as cleaner comparisons, and the missing variance measures are secondary because the observed cost gap is large. The oracle issue is more fundamental because it attacks the definition of the output being priced.

The referee's report

The paper's practical claim, if it holds, is useful and falsifiable: for this class of translation work, the bounded two-agent loop is the efficient default relative to a parallel multi-agent workflow, and architectural enforcement of agent limits works where prompt-stated rules fail. The strengths are concrete: Table 2 exposes every run's settled-file count, cost, minutes, tool calls, and cache share, so the cost ratios are checkable from the displayed data; Figure 7e gives a rate-card-independent token-per-file metric that supports the same direction; the ccworkflow/csloop/ccloop design holds one factor fixed in each pairwise comparison; the Zenodo archive (Dhruv et al., 2026a) contains per-run logs; and the authors explicitly disclose the orchestrator-memory confound and the precision-kinds oracle failure rather than hiding them. The "one-third" cost figure sits at the optimistic end of the observed pairwise range (about 0.33–0.55), and the settlement metric needs a uniform definition, but the direction of the result appears robust to both issues.

Pith's reading of the paper (a machine's summary, not the authors')

This paper argues that AI agents should work inside collaborative human-AI structures for scientific software engineering, not as full automation, and it tests that claim on a demanding task: translating MCFM, a large high-energy physics Monte Carlo program, from Fortran to C++. The authors ran the same translation fourteen times, varying orchestrator, orchestration pattern, and model, with every stage gated by a numerical check against the reference code and a human approval. Their central result is that the simplest pattern, a two-agent author–reviewer loop whose limits are enforced by the orchestrator, settled a comparable number of files to a multi-agent parallel workflow at about one-third of the cost per file. They also claim that enforced limits are what keep agents inside their execution policy, since prompt-stated rules were exceeded in their experiments, and that deterministic tooling, not model choice, largely determined which files got translated. If this holds, the efficient default for scientific code translation is a cheap bounded loop, not expensive parallel agents.

What carries the argument. The load-bearing object is the bounded author–reviewer loop running over on-disk, human-owned state: a versioned directory tree (the Lab Notebook) holds the specification, plan, tools, agent log, and approval file, and agents may write only their own log while the plan and spec stay read-only. Each cycle has one author agent advance the plan and one reviewer agent check the result, with a summary of pending items carried into the next cycle; the orchestrator caps the number of iterations and tool calls, validates each tool call against an allowlist between model calls, and forces a blocker report after repeated failures, so the limits cannot be exceeded by the agent. Each stage ends at the verification boundary, where a file counts as verified only if a coverage probe shows the benchmark exercises it and the unperturbed file reproduces the reference benchmark value within a fixed tolerance, and only a human can record the approval that lets the next stage proceed. A gate script additionally limits how far agents can work ahead of human review. These pieces together are what make the fourteen runs comparable, auditable, and repeatable across orchestrators and models.

Core claim. On the paper's own terms, the discovery is an efficiency fact about agentic code translation with a mechanism attached. Fourteen runs of the same Fortran-to-C++ translation task, starting from the same commit and the same human-authored specification, plan, and tools, show that an author–reviewer loop with hard limits on iterations and tool calls matches the file-completion count of a multi-agent workflow while costing about a third as much per file settled; in a pair that fixed the orchestrator and the model, the loop cost about 40 percent of the multi-agent run for the same deliverable. The mechanism the authors identify is enforcement: agents whose iteration counts, tool calls, and shell commands are validated and capped by the orchestrator never exceeded their policy bounds, whereas agents governed only by prompt instructions did, one author phase reaching 67 iterations against a limit of 30. Parallel authoring did not pay, because each concurrent agent re-read the same background material, so the work finished was set by the serial integration step while the tokens read grew with fan-out. The authors also report that the cheapest-billed model was the least efficient per file because it made far more tool calls and retries, and that a deterministic dependency-ranking tool, not the model, drove which files the runs picked.

The premise it rests on. The comparison stands or falls on the numerical oracle: that a file passing the coverage probe and benchmark reproduction within tolerance is genuinely correct, and that the resulting 'settled' count is a true measure of progress — yet the paper's own precision-kinds case, reported in Section 4.5, shows a translation that is arguably wrong passing the full benchmark suite because the translated constants were never exercised.

If the paper is right (Pith's inferences, not the authors')

If the result holds, the default for large scientific code translation should be a bounded two-agent loop, not parallel multi-agent fan-out; concurrency pays only when the work and its context are independent.

Orchestrator-enforced execution policy (hard caps on iterations and tool calls, tool-call validation, an allowlisted shell) becomes a design requirement for reproducible agentic work, since prompt-stated rules were exceeded in the authors' runs.

Model selection should be based on measured tool-calling behavior and cost per file settled, not on list price: the cheapest-billed model in the study was the least efficient per file.

Deterministic tooling, such as dependency and fan-in ranking, can dominate model and orchestrator choice in deciding which files are worked on, so that layer is the main leverage point.

Specification gaps are the principal failure mode: files that do not fit the agentic specification should be left entirely to human review, as the precision-kinds episode shows.

A natural next experiment is to relax the enforced limits one at a time (iteration cap, tool-call cap, allowlist strictness) to isolate which bound carries the cost saving, and to test whether the finding transfers to other codebases and languages.

The precision-kinds episode implies the oracle certifies numerical agreement, not semantic faithfulness; adding type-exercising checks on translated constants would strengthen the verification boundary and would likely reclassify some 'settled' files.

The memory-note incident generalizes beyond this study: any orchestrator that keeps persistent memory outside version control can silently change behavior across runs, so pinning and archiving agent memory state would close a provenance gap the authors acknowledge.

The gate width (three completed groups allowed ahead of human approval) is a tunable knob that trades throughput against supervision load; varying it systematically would make the human-cost side of the workflow design quantitative.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

Agentic artificial intelligence systems can carry out a broad range of tasks in software engineering and scientific research, from writing and translating code to running workflows for data analysis and visualization. In scientific computing, the difficulty is verifying that agent-generated code is both correct and understandable to teams whose members bring different areas of expertise. We therefore argue that these systems are best used within collaborative team structures rather than as full automation. In the workflows we propose, domain experts write the specification and plan, and agents operate under a deterministic orchestration pattern to write the target code. Each stage ends with a numerical comparison against the reference code and requires human review and approval before the next begins. We evaluate these workflows on the translation of a large high-energy physics application from Fortran to C++, running the same task under different orchestrators, design patterns, and models. Across fourteen experiments, a simple author–reviewer loop with enforced limits completed a comparable number of files to a multi-agent workflow at about one-third of the cost per file.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-10-08

The authors' main claim, as the classifier picked it out 0.58

“We therefore argue that these systems are best used within collaborative team structures rather than as full automation.”

How the main claim is stated: asserted 0.68

What the abstract itself states, as probabilities: claims first 0.03 · states limitation 0.49 · human participants 0.64 · controlled comparison 0.71 · randomized assignment 0.03 · states quantitative result 0.98 · compares with prior results 0.90 · mentions code or data availability 0.04

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Agentic artificial intelligence systems can carry out a broad range of tasks in software engineering and scientific research, from writing and translating code to running workflows for data analysis and visualization. background 1.00 0.05 0.02 hedged possibility 0.54
In scientific computing, the difficulty is verifying that agent-generated code is both correct and understandable to teams whose members bring different areas of expertise. background 0.88 0.06 0.03 asserted 1.00
We therefore argue that these systems are best used within collaborative team structures rather than as full automation. interpretation 0.68 0.12 0.66 asserted 0.68
In the workflows we propose, domain experts write the specification and plan, and agents operate under a deterministic orchestration pattern to write the target code. method 0.93 0.42 0.16 asserted 0.99
Each stage ends with a numerical comparison against the reference code and requires human review and approval before the next begins. method 0.99 0.68 0.08 asserted 0.99
We evaluate these workflows on the translation of a large high-energy physics application from Fortran to C++, running the same task under different orchestrators, design patterns, and models. method 0.81 0.95 0.04 asserted 0.94
Across fourteen experiments, a simple author--reviewer loop with enforced limits completed a comparable number of files to a multi-agent workflow at about one-third of the cost per file. result 1.00 0.96 0.56 asserted 1.00

What kind of paper the classifier reports this is: empirical study 0.77 · evidence from observation or experiment 0.97

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-08: 1 request, 5,564 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Figures (8)
Figure 1 of the paper
Figure 1. Authoring responsibilities and the flow from human-authored inputs to accepted code. See Section
Figure 2 of the paper
Figure 2. Structure of the lab notebook for the MCFM case study. See Section
Figure 3 of the paper
Figure 3. One set of human-authored inputs, two orchestrators: a multi-agent workflow (top) and an author–reviewer loop (bottom). Unshaded nodes are sessions that
Figure 4 of the paper
Figure 4. One chat-completion iteration N of a single agent, the primitive inside both the CodeScribe author and reviewer. Reasoning is shown in the lighter shade, and up to ten tool calls execute per iteration. Section 2.4 describes the iteration mechanics. Budget exhaustion, which also ends the pass, is not drawn. Reload task template if changed Author: advance plan, emit STATUS + NEXT STEPS Orchestrator builds LoopSummary (in memory) Reviewer writes review_output.toml Orchestrator updates pending_items (in memory) exit (review skipped) exit loop log: inspection / crash-resume otherwise…
Figure 5 of the paper
Figure 5. One cycle of the CodeScribe author–reviewer loop. An author advances
Figure 6 of the paper
Figure 6. An excerpt of a CodeScribe run transcript (transformations
Figure 7 of the paper
Figure 7. Cost, throughput, and token accounting across the fourteen
Figure 8 of the paper
Figure 8. What the agent chose to work on and when, across the fourteen

Figures are the authors', reproduced from the paper.

Cited by 1 Pith paper

Reviewed papers on Pith that cite this one. The full citation record

  1. A Gated Spec-Driven Workflow: An Audit-Trail Study of Coding-Agent Work cs.SE · Nov 2026

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment