Twelve quick tips for AI-assisted coding in science

Abstract

While AI coding tools have demonstrated potential to accelerate software development, their use in scientific computing raises critical questions about code quality and scientific validity. In this paper, we provide twelve practical tips for AI-assisted coding that balance the capabilities of AI with the demands of scientific and methodological rigor. We address how AI can be leveraged strategically throughout the development cycle with four key themes: problem preparation and understanding, managing context and interaction, testing and validation, and code quality assurance and iterative improvement. These principles serve to emphasize maintaining human agency in coding decisions, establishing robust validation procedures, and preserving the domain expertise essential for methodologically sound research. These tips are intended to help researchers harness AI’s transformative potential for faster software development while ensuring that their code meets the standards of reliability, reproducibility, and scientific validity that research integrity demands.

Citation

Bridgeford, E. W., Campbell, I., Chen, Z., Lin, Z., Ritz, H., Vandekerckhove, J., & Poldrack, R. A. (2026). Twelve quick tips for AI-assisted coding in science. PLOS Computational Biology, 22, e1014428.

Bibtex

@article{bridgeford_etal:2026:assisted,
    title   = {{T}welve quick tips for {A}{I}-assisted coding in science},
    author  = {Bridgeford, Eric W. and Campbell, Iain and Chen, Zijiao and Lin, Zhicheng and Ritz, Harrison and Vandekerckhove, Joachim and Poldrack, Russell A.},
    year    = {2026},
    journal = {PLOS Computational Biology},
    volume  = {22},
    pages   = {e1014428},
    doi     = {10.1371/journal.pcbi.1014428}
}