topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Condensed Matter. The day in condensed matter: materials, phases and the measurements under them.
Kai: We're looking at the paper: "topas-editor and TopasAiD".
Title and authors: Kai: So, we're talking about this paper now called "topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data". It sounds like they’re building some kind of system to help people analyze diffraction data using artificial intelligence.
Mira: Right. The authors are John S. O. Evans, Oliver J. Wagstaff, Ivana R. Evans, Arnt Kern, and Alan A. Coelhohoc from Durham University and Bruker AXS SE in Karlsruhe and Brisbane respectively; it’s a collaboration between university researchers and big industry players in materials science right there
Lev: It’s interesting they're focusing on diffraction data specifically, which is the bread and butter for many of these materials studies, especially when you're looking at powder or single crystal data from sources like X-ray or neutron machines
Kai: So what’s the big idea here? Essentially, they are proposing two tools: topas-editor and Topilot. The main point is to let a large language model drive complex crystallographic tasks automatically using these tools
Mira: That sounds like they’re trying to bridge the gap between the highly specialized TOPAS software—which can do really rigorous structural analysis—and the general reasoning power of these large language models
The paper's summary: Kai: The authors explain that topas-editor is a Visual Studio Code extension designed for making INP files, which are these plain text files where you put all the TOPAS keywords and settings to describe the analysis you want to run on your data
Mira: And then they have Topilot, which is this set of rules, examples, and scripts that lets a large language model actually drive that TOPAS software
Lev: So instead of a human having to manually write out every single step for an analysis—from indexing the data all the way to refining the structure—the AI can handle it by using these tools
Kai: The goal is to let this combination automatically perform complex crystallographic analyses of powder, single crystal, and PDF data, giving you INP files and reports that you can check later
Mira: It’s about making the process much more hands-off, letting the AI do the heavy lifting across steps like indexing through structure solution to refinement with very little direct input from a human operator
The paper's improvements: Kai: They actually detail some specific improvements they made. One key thing is integrating topas-editor so you can rapidly create and edit those TOPAS input files right inside your familiar coding environment using full syntax highlighting
Mira: And Topilot gets its power from a transferable skill, which they call the topas-inp-writer skill that can be applied across all the different areas of TOPAS analysis
Lev: That means the AI isn't just guessing; it’s using these rules to guide it through complex crystallographic workflows and minimizing user intervention during those analyses
Kai: They also made sure Topilot is reliable by using hard-coded algorithms for really important decisions, like symmetry, while letting the generative AI handle the rest of the less certain parts
Mira: That way, it avoids guessing missing information—like experimental details—and instead it asks you for what it needs rather than just making assumptions about what's missing
Lev: And they improved how well the AI understands these files by using a browsable data tree within TOPAS understanding so the model knows where specific keywords might appear and how to interpret those names in equations
Conclusion: Kai: So to wrap it up, this paper on "topas-editor and TopasAiD: tools for AI-driven analysis of diffraction and total scattering data" shows how you can couple general reasoning with specialized software like TOPAS
Mira: It suggests that by providing the AI with these specific tools, you can automate complex crystallographic analyses of powder, single crystal, and PDF data from indexing to refinement
Lev: From an engineering standpoint, it’s about making sure the AI doesn't just run wild; they put in hard-coded rules for key decisions like symmetry so the results are more predictable on real hardware
Kai: It seems like this approach is really useful because it lets us use the power of these large language models to speed up analysis tasks that used to take a lot of manual effort
Mira: And it opens up possibilities for doing much more complex analyses than what's feasible with a standard graphical interface, because you can leverage the full functionality through INP files
Lev: It’s about making sure we actually get results that are usable on real hardware, not just theoretical outputs from an AI
Department of Chemistry, University Science Site, Lower Mountjoy, Durham University · Bruker AXS SE
cond-mat.mtrl-sci
Submitted: 2026-10-16
Updated: 2026-12-02
Comments: submitted to Journal of Applied Crystallography
Code: https://github.com/johnsoevans/topas-inp-writer
Project page: https://topas.webspace.durham.ac.uk/tutorial_menu
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 83/100
The gist: We describe topas-editor and TOPilot, which provide a powerful interface to the TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks.<ref:2610.23512#pg1…
Key concepts
- topas-editor
- A VS Code extension that helps users rapidly create and edit TOPAS input files (INP files). It provides features like full syntax highlighting and interactive tooltips, allowing generative AI to build complex input files directly within a familiar coding environment.
- TOPilot
- A set of rules, examples, and scripts enabling large language models to automate complex crystallographic tasks. TOPilot uses a transferable skill called 'topas-inp-writer' to drive AI through all stages of analysis, such as indexing and refinement.
- Generative AI in Crystallography
- The approach of combining the reasoning power of large language models with the rigorous modeling capabilities of TOPAS software. This allows AI to perform sophisticated analyses on diffraction and total scattering data without needing extensive manual intervention for every step.
- Topas-aware VS Code extension
- A specialized editor extension built specifically for the TOPAS software suite. It integrates AI capabilities by allowing users to create complex INP files in a coding environment that understands the specific syntax and needs of crystallographic modeling.
Terminology
Summary
We describe topas-editor and TOPilot, which provide a powerful interface to the TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks. p. 0 Together they can automatically perform complex crystallographic analyses of powder, single
crystal and PDF data, providing INP files and reports for the user to check. Abstract This paper describes topas-editor and TOPilot, which provide a powerful interface to the
TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks. Evans,a Arnt Kern,b and Alan A. Coelhoc
a Department of Chemistry, University Science Site, Lower Mountjoy, Durham University, South Road,
Durham, DH1 3LE, UK
b Bruker AXS SE, Östliche Rheinbrückenstraße 49, 76187 Karlsruhe, Germany
c 72 Cedar Street, Wynnum, 4178, Brisbane, Australia
Synopsis We describe topas-editor, a VS Code editor extension for creating INP files and interacting
with TOPAS, and TOPilot, a set of rules, examples and scripts that lets a large language model drive
TOPAS. General-purpose large
language models (LLMs) offer an alternative approach through their capacity for multi-step
problem solving and their ability to retrieve information from the literature, to make analysis
decisions based on prior findings and to perform repetitive tasks. Coupling these LLM
abilities with domain-specific crystallographic software, domain-specific rules and user input
when required provides a powerful analysis combination. Together they can automatically perform complex crystallographic analyses of powder, single
crystal and PDF data, providing INP files and reports for the user to check. Abstract This paper describes topas-editor and TOPilot, which provide a powerful interface to the
TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Integration of topas-editor allows for
rapid creation and editing of TOPAS input files
withTOPAS-aware VS Code extension designed for the rapid creation and editing of TOPAS input files.
This enables AI to create complex INP files directly within a familiar coding environment, leveragingfull syntax highlighting
and interactive tooltips. -
Development of TOPilot allows generative AI to drive complex crystallographic workflows by using
a transferable topas-inp-writer skill that can be applied in all TOPAS application areas.
This enables AI toautomatically perform complex crystallographic analyses of powder, single crystal and PDF data,
fromindexing through structure solution to refinement
with minimal user intervention. -
TOPilot's ability to weigh decisions against rules ensures reliability by using
hard-coded algorithms for important crystallographic decisions (e.g. symmetry)
while using generative AI for other tasks, ensuring that the system avoids guessing missing information and instead asks the user rather than guessingmissing information (e.g. experimental details).
-
The use of a browsable data tree within TOPAS understanding allows the model to know
where each keyword may appear and how to interpret names used in equations,
which enhances its ability to navigate the complexity of INP files accurately. -
The topas-inp-writer skill can be invoked via
Claude Code (or other interface) window
whenever a relevant prompt is issued, allowing AI to interact with the software suite directly througha unified environment for both AI and interactive work.
Abstract
This paper describes topas-editor and TopasAId, which provide a powerful interface to the TOPAS software suite and allow generative AI-driven automation of complex crystallographic tasks. topas-editor is a TOPAS-aware VS Code extension designed for the rapid creation and editing of TOPAS input files and for interacting with the software. It knows TOPAS syntax, has crystallographic-aware editing features and provides in-line user guidance via hover tips and automated links to reference manuals. TopasAId is a collection of Python routines and machine-accessible reference documents that allow AI-driven automated analysis in TOPAS. It uses a transferable topas-inp-writer skill that can be applied in all TOPAS application areas. We demonstrate the power and reliability of the approach using examples including: a complex Rietveld refinement with sample- and data-related complications; automatic analysis of multiple data sets; a pipeline from indexing through structure solution to refinement; automatic identification of the phases present in a sample; single crystal and powder diffraction analysis of incommensurate structures; and fitting PDF data. TopasAId can be used directly alongside topas-editor, via a stand-alone topasaid-wizard, or via command line interfaces or desktop apps from major AI providers. TopasAId was developed and tested using Claude large language models, but can be configured to use other cloud or local models. topas-editor and TopasAId are freely available.
Sources
- Hybrid DiffractGPT-Rietveld Refinement Framework for Automated X-ray Diffraction Analysis
- AI-Driven Structure Refinement of X-ray Diffraction
- Experimental Powder X-ray Diffraction Crystal Structure Determination with RealPXRD-Solver
- Fantastic Scientific Agents and How to Build Them: AgentBuild for Rietveld Refinement
- AutoXRD: Autonomous Large Language Model Agents and Comprehensive Evaluation for Powder X-Ray Diffraction Analysis
Related papers
- Multiple Layer-Selective Polar Charge Density Waves in 4
- Evidence for a textured polar state in strained SrTiO3
- Anharmonic enhancement of thermal conductivity in amorphous Ge 2 Sb 2 Te 5: A consistent picture from molecular dynamics and Wigner transport
- Unravelling the Role of Stacking Disorder on the Optoelectronic Properties of Zn3P2
- Origin of Reduced Coercive Field in ScAlN: Synergy of Structural Softening and Dynamic Atomic Correlations
- Humidity-modulated Ostwald Step Rule in FAPbI 3 Martensitic Transitions