Large-scale facilities increasingly face analysis and reporting latency as a limiting step in scientific throughput, particularly for structural studies that require iterative reduction, integration, refinement and validation. To improve the time to result and analysis efficiency, NeuDiff Agent is introduced as a governed, tool-using AI workflow for TOPAZ at the Spallation Neutron Source. NeuDiff Agent takes instrument data through reduction, integration, refinement and validation to a validated crystal structure and a publication-ready CIF. NeuDiff Agent coordinates established crystallographic tools under explicit governance by restricting actions to allowlisted tools, enforcing fail-closed verification gates at key workflow boundaries, and capturing complete provenance for inspection, auditing and controlled replay. The present benchmark is limited to structural crystallography for periodic structures; magnetic structure analysis and incommensurate or superspace refinement are outside the scope of the current workflow. Performance is assessed using a fixed prompt protocol and repeated end-to-end runs with two large language model backends, with user and machine time partitioned and intervention burden and recovery behaviors quantified under gating. In a reference-case benchmark, NeuDiff Agent reduces wall time from 435 min (manual) to 86.5 min (4.6–5.0 times faster) while producing a validated CIF with no checkCIF level A or B alerts. These results establish a practical route to deploy agentic AI in facility crystallography while preserving traceability and publication-facing validation requirements.
User interface functions of NeuDiff Agent. (a) Browser-based application implemented using NOVA on Trame. (b) Tabular rendering of structured artifacts, including reduction configuration files. (c) Dialog interface for questions, diagnostics and tool-backed actions. (d) Structure figure generation and rendering from refinement and validation outputs.
Z. Xiao, L. Zhang, G. Zhang, X. Wang, NeuDiff Agent: a governed AI workflow for single-crystal neutron crystallography, Journal of Applied Crystallography, 59 (4), 2026 (DOI: 10.1107/S1600576726004474)