What can AI coding agents actually do in science today?
They can reliably reproduce published results when given data and code. In the largest systematic evaluation of its kind—221 tasks across four social science disciplines—Claude Code reproduced a large share of findings, substantially outperforming Codex [2]. Both agents also performed strongly on a reasoning task that required identifying the underlying research question from a paper's methods description alone [2]. This means a scientist can hand an agent a dataset and a methods section and get back a working analysis that matches the original paper's conclusions.
They can also match or exceed human methodological diversity. In a study where 20 independent executions of Claude Code and Codex analyzed immigration and social policy data, Codex matched the diversity of human analysts' approaches, and Claude Code produced nearly three times as many distinct methodological specifications [1]. The agents' effect estimates remained broadly aligned with the human consensus, and no agent model exactly matched any human model—meaning they brought genuinely new analytical perspectives, not just mimicry [1].
For scientific software development, agents can act as domain-aware collaborators rather than generic code generators. Over twenty months of practice at a university research software engineering center, a platform called LLMoxie was built to encode scientific Python conventions, domain knowledge, and project lifecycle management into a plugin system [3]. This shifted agents from producing code that ignored scientific library conventions to generating auditable, reproducible software that respected community norms [3].
Where do they still fall short?
End-to-end autonomous research remains out of reach. On ResearchClawBench—a benchmark of 40 tasks from 10 scientific domains, each grounded in a real published paper—the strongest autonomous agent, Claude Code, averaged only 21.5 out of 100, and the best large language model tested scored 26.5 [4]. Error analysis showed that failures concentrated in three areas: experimental protocol mismatch, evidence mismatch, and missing scientific core [4]. In plain terms, agents struggle to design experiments that match the paper's intent, to correctly interpret evidence, and to grasp the central scientific question.
They are vulnerable to interpretative bias, not estimation bias. In a striking finding, when researchers gave Claude Code an explicit confirmatory prompt—essentially telling it to find evidence supporting a particular view—the agent flipped its verdicts from 10% to 90% support for that view, while leaving its statistical coefficient distribution essentially unchanged [1]. The bias operated through rule omission (dropping a methodological rule that would have contradicted the desired conclusion) rather than rule softening [1]. This means an agent can produce the same numbers but tell completely different stories depending on how it is prompted to interpret them.
They fail on complex system design and optimization. On ProjDevBench, a benchmark of 20 programming problems across 8 categories, six coding agents achieved an overall acceptance rate of only 27.38% [6]. While they handled basic functionality and data structures, they struggled with complex system architecture design, time complexity optimization, and resource management [6]. For scientific computing, this means agents can write simple analysis scripts but not yet build sophisticated simulation pipelines or optimize high-performance code.
What are the risks, and how should scientists respond?
The risks go beyond coding errors. A 2026 analysis identifies several dangers: poor policy decisions based on erroneous or biased AI outputs, responsibility gaps when no human can explain how an agent reached a conclusion, deskilling of researchers who rely too heavily on automation, and AI-generated knowledge that is unverifiable by or incomprehensible to humans [8]. The authors argue that institutions should train researchers in AI literacy, bias identification, and output verification, and that research teams may benefit from designating an AI validator or AI guarantor role to oversee the integrity of AI-assisted contributions [8].
Practical guidelines exist to mitigate these risks. Ten simple rules for AI-assisted coding in science emphasize maintaining human agency in coding decisions, establishing robust validation procedures, and preserving domain expertise [5]. Key themes include problem preparation and understanding, managing context and interaction, testing and validation, and iterative code quality assurance [5]. The message is clear: AI agents are tools, not replacements for scientific judgment.
Memory and provenance tools can help. A local-first, event-sourced memory layer called projectmem records development as an append-only log of typed events—issues, attempts, fixes, decisions—and warns an agent before it repeats a previously failed fix or edits a known-fragile file [7]. This turns memory into governance: it does not just answer the agent's questions but acts on its next action, and the immutable log provides a provenance trail for reproducible, auditable AI-assisted development [7]. Such tools are essential for scientific work where reproducibility and auditability are paramount.
About These Sources
This answer is built on 8 studies (1 peer-reviewed, 7 preprints) — published from 2025 to 2026, 8 from 2024 or later — selected as the most relevant from 14 studies that passed quality screening, drawn from 54 papers retrieved from a database of over 500 million.
Sources used in this answer
AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerable
In 20 independent executions on immigration and social policy data, Claude Code produced nearly three times as many methodological specifications as human analysts, but a confirmatory prompt flipped its verdicts from 10% to 90% support without changing its coefficient distribution—showing bias operates at the interpretation layer, not the estimation layer.
AI Coding Agents Can Reproduce Social Science Findings
On a benchmark of 221 tasks across four social science disciplines, Claude Code reproduced a large share of findings, substantially outperforming Codex; both agents also performed strongly on a reasoning task requiring identification of underlying research questions.
LLMoxie: Exploring Agentic AI for Scientific Software Development
Over twenty months at a university research software engineering center, the LLMoxie platform and RSE-Plugins ecosystem shifted AI coding agents from generic code generators into domain-aware collaborators that respect scientific Python conventions and produce auditable provenance.
ResearchClawBench: A Benchmark for End-to-End Autonomous Scientific Research
On a benchmark of 40 tasks from 10 scientific domains, the strongest autonomous agent (Claude Code) averaged 21.5 out of 100, and the best LLM scored 26.5; failures concentrated in experimental protocol mismatch, evidence mismatch, and missing scientific core.
Ten Simple Rules for AI-Assisted Coding in Science
Ten practical rules for AI-assisted coding in science emphasize maintaining human agency, robust validation procedures, and domain expertise to ensure code meets standards of reliability, reproducibility, and scientific validity.
ProjDevBench: Benchmarking AI Coding Agents on End-to-End Project Development
On a benchmark of 20 programming problems across 8 categories, six coding agents achieved an overall acceptance rate of only 27.38%, handling basic functionality but struggling with complex system design, time complexity optimization, and resource management.
PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents
projectmem is a local-first, event-sourced memory layer that records development as an append-only log and warns agents before repeating failed fixes, serving as both memory and governance for reproducible AI-assisted development.
Benefits and Risks of Using AI Agents in Research.
A 2026 analysis identifies risks of AI agents in research including poor policy decisions from biased outputs, responsibility gaps, deskilling, and unverifiable knowledge; recommends training in AI literacy and designating an AI validator role.
