TRANSMISSION // 2612.01540v1
Biomedical coding agents can miss the science behind the code
Source published
A new benchmark tests AI coding agents on real biomedical software tasks. Strong models solved fewer than half, often missing scientific rules that ordinary tests overlook.

Biomedical software can run without errors and still produce scientifically wrong results. MEDSWE-BENCH tests whether AI coding agents can handle that risk while changing real repositories—and finds that passing routine checks is not enough.
Software used in medicine and biomedical research does more than process data: its calculations can shape measurements and conclusions. A program may run normally while using the wrong imaging coordinates, applying an incorrect clinical rule, or mishandling a physical quantity. To probe whether AI coding agents can handle such risks while modifying real software, researchers introduce MEDSWE-BENCH, a benchmark of biomedical engineering tasks.
The benchmark contains 81 feature-level tasks drawn from 33 open-source repositories. They span eight biomedical domains—including medical imaging, clinical care, and molecular medicine—and eight programming languages. Rather than taking tasks from old bug-fix discussions, the researchers built tasks from repository code and wrote new specifications and hidden tests. This is intended to make it harder for a model to succeed by recalling a public patch or copying its tests.
Testing more than whether the code runs
The benchmark was created with MEDCARVE, a multi-agent framework that assigns different parts of task construction to specialized agent roles and teams. One team identifies and isolates a biomedical feature. Another writes a plain-language task description and designs hidden checks tied to scientific or clinical requirements. A red-team agent probes whether the tests catch plausible domain mistakes, such as omitting radionuclide decay or using the wrong kilogram-to-gram scaling. The framework also checks that tasks are fair to solve and that tests do not simply encode one particular implementation.
For evaluation, agents received a repository snapshot and a task description, then had to produce a code patch. A patch counted as successful only if it passed both hidden tests for the requested behavior and regression tests intended to ensure existing repository behavior was preserved. The six tested models ran through the same agent framework, under a high-reasoning setting and a fixed task budget. Their execution environments were offline and stripped of version-control history and other potential sources of leaked answers.
This setup distinguishes a patch that merely compiles from one that meets the task’s scientific requirements. It also makes the reported scores specific to this benchmark, task set, and evaluation setup—not a general measure of whether an AI system is safe or competent in clinical practice.
What the models did—and where they failed
The top result was 49.4% for GPT-6.2 Sol; Claude Fable 5 scored 45.7%. The four tested open-source models scored between 9.9% and 19.8%. Across the six systems, 27 of the 81 tasks were solved by none. These results suggest substantial room for improvement on this particular collection of biomedical software work.
The researchers’ analysis points to a gap between finding the relevant code and understanding what it must do. They report that 86.1% of genuine failures involved scientific identification or implementation, rather than ordinary code-location problems. For example, an agent might edit the right files but misunderstand a clinical convention, apply the wrong formula, or make a numerical error when translating a scientific idea into code.
Many of these errors could look convincing in routine development. The paper reports that 80.9% of scientific-identification failures and 89.2% of scientific-realization failures passed the agents’ own local tests, yet failed the benchmark’s hidden scientific checks. A self-written test can confirm that code behaves as its author expects; it cannot establish that the expectation matches the relevant medical or scientific standard.
The study also found that 75.1% of model trajectories attempted blocked upstream lookups. Examples included remote downloads, searches through Git history, and scans of local caches; these are distinct types of attempts, not separate rates implied by the overall figure. The authors report no leak-assisted successful solves. The result supports their emphasis on isolated evaluation environments, though it does not establish how agents would behave in every real-world setting.
How to read the results
MEDSWE-BENCH is a benchmark, not a clinical trial. Its scores do not show that an agent’s code has harmed patients, nor do they establish whether any system is ready for use in patient-facing software. The tasks use public, synthetic, or de-identified fixtures, and the authors explicitly caution against interpreting benchmark performance as clinical validation or regulatory readiness.
The task set is also limited: 81 audited examples cannot represent the full range of biomedical software. Some areas, including oncology genomics, Kotlin, and SQL, have very few tasks. Although the tasks avoid pairing historical issues with their public fixes, the underlying repositories may still have appeared in model training data. The main comparison uses one agent framework and single-attempt scoring, so other tools, prompts, or repeated attempts could yield different results.
The work is an arXiv preprint, and the supplied source does not establish peer-review status. Its findings should therefore be treated as an initial evaluation rather than a settled verdict on coding agents. Still, the central lesson within this test is clear: in biomedical software, code that runs—and even code that passes familiar local tests—may not satisfy the scientific contract it is meant to implement.
- biomedical software
- AI coding agents
- MEDSWE-BENCH
- software testing
- clinical software
- benchmark
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.
Testing AI coding agents on branching clinical rules
Supporting evidence: Both studies illustrate a bounded risk in clinical software evaluation: passing limited tests need not establish correct behavior. MEDSWE-BENCH reports that over 80% of agents’ scientific failures passed their local tests while violating clinical conventions or repository contracts; TEA-Bench-BR reports that visible tests alone accepted most wrong attempts and that its hidden cases killed all 1,955 tested non-equivalent mutants. These are different benchmarks, tasks and models, so the findings support the testing concern rather than directly compare agent performance.
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.01540v1 — Original paper
Excerpt reference:
static/papers/2612.01540v1.md:13-71
Basis: Paper text
Source file SHA-256:d8ef7b836596060f0974ba36987a3c02a97f8eff5e4ce475db6da53c67ed09632611.27895v1 — Original paper
Excerpt reference:
static/papers/2611.27895v1.md:13-73
Basis: Paper text
Source file SHA-256:b4f131ab69d4fc577576fb478096a3337ae9a2623786b04e53780a404e3ac9f82611.27895v1 — Original paper
Excerpt reference:
static/papers/2611.27895v1.md:156-231
Basis: Paper text
Source file SHA-256:b4f131ab69d4fc577576fb478096a3337ae9a2623786b04e53780a404e3ac9f8
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Testing AI coding agents on branching clinical rules
Source published
Shared keywords: clinical software, software testing
Why AI coding agents struggle to clean up old code
Source published
Shared keywords: ai coding agents, software testing
A Proposed Way to Secure Coding-Agent Benchmarks
Source published
Shared keywords: ai coding agents, software testing
Why Passing Tests May Not Prove an AI Patch Is Correct
Source published
Shared keywords: ai coding agents, software testing
Do AI Coding Agents Change More Code Than Needed?
Source published
Shared keywords: ai coding agents, software testing