# Plan and run chemistry experiments with an LLM agent

Carnegie Mellon's Coscientist used GPT-4 with search, code and lab automation to plan and run real reactions.

Organisation: Carnegie Mellon University (Gomes group); Emerald Cloud Lab
Status: Research (published in Nature)
Place: United States
Categories: Science & discovery
Built with: ChatGPT / OpenAI models
Try it with: Claude, ChatGPT / OpenAI models, Gemini, Grok
Time to try: 1 hour to plan

## Why it matters

Automating experiment design and execution can speed up chemistry for medicines and materials, and makes methods more reproducible.

## How it works

Its search covers the internet and documentation. It was shown on six tasks, including optimising palladium-catalysed cross-coupling reactions (Nature, 2023). The code is on GitHub.

## Who it's for

Chemists, lab managers and research engineers.

## The prompt

```
Act as a lab-planning assistant for a qualified chemist. Goal: [reaction or measurement goal]. Equipment available: [list]. Safety constraints: [list].

1. Propose 3 candidate procedures, with reagents, amounts, conditions and the literature basis for each (cite only sources you have actually retrieved; otherwise mark [CITATION NEEDED]).
2. For the best one, write a step-by-step protocol and the hazards and controls for every step.
3. Write a dry-run script for [liquid handler or lab API] that only prints the actions it would take.
4. List the measurements to record and how you would decide the next round of conditions.

Do not suggest anything that needs equipment or permits I have not listed. Exclude controlled substances, explosives and chemical-weapon precursors. Check every reagent against its safety data sheet. Do not execute anything.
```

## Caveats

For qualified labs only.

## Sources

Both sources are Carnegie Mellon's own work: its peer-reviewed Nature paper and its open-source code. No independent evaluation was found.

1. Nature: Coscientist; GPT-4; tools; six tasks; cross-coupling optimisation. Autonomous chemical research with large language models (https://www.nature.com/articles/s41586-023-06792-0)
2. GitHub (Gomes group): Project code repository. gomesgroup/coscientist (https://github.com/gomesgroup/coscientist)

Fact-checked: 16 Oct 2026

Page: https://escapevelocitysociety.com/picks/cmu-coscientist-chemistry

See Selected Projects: https://escapevelocitysociety.com/picks.md
