Skip to content

Using AI Tools with CASTEP

AI coding assistants have become part of everyday research. This policy explains how you can use them productively while keeping the CASTEP intellectual property (IP) safe. AI tools have a nasty habit of ingesting code and then using it as part of their training set. This constitutes a breach of the CASTEP license.

01 Why this matters

There are many useful AI coding assistants, such as ChatGPT, GitHub Copilot, Claude, Gemini etc. These tools are genuinely useful, whether you are learning the code, writing analysis scripts, or developing new routines, and we have no wish to discourage their sensible use.

At the same time, you must remember that CASTEP source code is NOT OPEN SOURCE. It is not yours, and you are not allowed to disseminate the code. The big risk with modern AI tools is that confidential code is silently transmitted to — and then added to the training set of — an external provider. This policy is designed to let you benefit from AI without ever crossing that line.

The guiding principle is simple: an AI may help you use CASTEP but it must NEVER be allowed to ingest the CASTEP source code.

02 AI as a “third party”

Your License Agreement prohibits sharing and distribution of CASTEP. An AI provider is a third party. When you copy CASTEP source code into an AI tool, you are technically transferring confidential information to a third-party provider. Operators of AI services, model APIs, hosted development tools and code-completion assistants sit outside your research group. Hence disclosure to them is disclosure to a third party.

Whether or not a given use is acceptable depends entirely on which tool you use and how it is configured, as set out in the next section.

03 When AI use is acceptable

You may use AI tools in connection with CASTEP for your own work provided you always treat the CASTEP source code as confidential. As a rule of thumb, AI usage is acceptable only when all of the following are true:

  • You use the tool exclusively in an environment — such as a self-hosted deployment or an explicitly configured business/enterprise offering — where the terms of service guarantee that the provider and third parties cannot use your submitted source code for model training, product improvement, or fine-tuning. Note: Even standard professional tiers often require you to explicitly opt out of data sharing.

  • You ensure that the privacy, confidentiality, no-training and data-retention settings of the provider apply by default or are actively switched on and suit your intended use. You must check this regularly as the T&C of your AI provider may change and new settings may appear and defaults may change.

  • You do not submit CASTEP source code to any free-of-charge, consumer-tier or non-authenticated AI service that offers no commitment against training on your inputs.

The practical test: before sending anything related to CASTEP to an AI tool, ask yourself: “Has this provider committed that my inputs will not be retained or used for training — and does the provider use those settings by default and have I switched those settings on?”.

04 What you must never do

Two limits are absolute and apply regardless of the tool:

No training, no model-building, no clones

You must not use CASTEP source code to train, fine-tune or build any AI model, code model or dataset, or to help create software that reproduces CASTEP or any material part of it. Using AI to clone CASTEP is a serious breach of the license agreement.

No confidential code to public AI

You must not feed CASTEP source code into a public, free or consumer-tier model, or an inappropriately configured business/enterprise-tier model — for example to “explain” or “refactor” — as this discloses CASTEP IP to a third party and may add CASTEP code to future training data.

Good news: your results are not restricted

To be clear, none of this restricts the use of CASTEP outputs or your simulation results — as long as that usage does not disclose CASTEP source code. You are free to analyse and publish your scientific results as usual.

05 Allowed vs. prohibited — at a glance

Permitted

Using AI to help write submission or post-processing scripts.

  • Asking AI to analyse or interpret CASTEP simulation outputs.

  • Brainstorming methods, algorithms or workflow ideas in general terms.

  • Code assistance, debugging, compilation, optimization and modifications using a self-hosted or business/enterprise tool with no-training settings enabled.

  • Letting a model that already “knows” how to use CASTEP help you operate it

Prohibited

  • Pasting entire CASTEP source files or your modifications into a public or free model to “explain” or “refactor” them.

  • Using CASTEP source code to train, fine-tune or build any AI model or a functional equivalent of CASTEP.

  • Sharing public repository access or login credentials with an AI tool.

There is a difference between an AI knowing how to use CASTEP — which is helpful — and an AI possessing the CASTEP source code, which is not permitted.

06 If something goes wrong

Reporting a confidentiality incident

If you become aware that CASTEP IP may have been disclosed to an AI tool in a way that conflicts with your obligations, please stop the relevant use immediately, notify us without undue delay, and take reasonable steps to contain and mitigate the situation. An inadvertent, minor lapse that you remedy promptly is viewed very differently from a sustained problem.

We may, on reasonable request, ask you to confirm which AI tool you use with CASTEP and how it is configured — including its data-retention, confidentiality and no-training settings, and the identity of the provider, to the extent known to you. Keeping a brief note of the tools and settings you use makes this straightforward.

These guidelines are provided for general orientation only. They reflect the confidentiality and third-party-access obligations that apply under the CASTEP License Agreement, but they do not amend it and do not constitute legal advice. In the event of any inconsistency, the terms of your License Agreement prevail.