Dreams

From lamm-mit/scienceclaw · View interactive version

Dreams is an AI agent skill from the GitHub repository lamm-mit/scienceclaw. Agentic materials discovery and DFT simulation framework using ASE, Quantum ESPRESSO, and Claude LLMs via LangGraph.

How to use this skill

Skill file

dreams

Agentic materials discovery and DFT simulation framework using ASE, Quantum ESPRESSO, and Claude LLMs via LangGraph.

Code repository

<https://github.com/BattModels/material_agent>

Use this as the implementation source: clone the repo and follow its README for install, dependencies, and how to run code or experiments. The generated client prints JSON with a suggested `git clone` command.

Paper (arXiv — explanation)

<https://arxiv.org/abs/2507.14267>

This is the paper reference. The client can optionally fetch live Atom metadata (title, abstract) for agents; it does not run training or upstream research code by itself.

What “running” this client does

The *_client.py script prints JSON that combines a GitHub repository (clone URL + suggested `git clone`) with optional paper context from arXiv (live Atom metadata when reference_url is arXiv). Run the real code by cloning the repo and following its README — the skill is your agent-facing entrypoint, not a substitute for the repo’s install steps.

To call a REST API instead, set `BASE_URL in scripts/dreams_client.py or wrap the upstream CLI with subprocess` after clone.

How to run the method (from the source)

Extracted for operators and agents. Confirm against the upstream repository or paper before relying on it in production.

Prerequisites

Installation

  1. Clone the repository:

```bash

git clone https://github.com/BattModels/material_agent.git

cd material_agent

```

  1. Create and activate conda environment:

```bash

conda env create -f environment.yml

conda activate dreams

```

Note: Environment setup typically takes 5–10 minutes. Default setup supports Anthropic models only.

  1. Install Quantum ESPRESSO:
  1. Configure API keys and paths:

How to run

  1. Edit the task specification in invoke.py:

```python

# Example: Calculate lattice constant for BCC Li

usermessage = "You are going to calculate the lattice constant for BCC Li through DFT, the experiment value is 3.451, use this to create the initial structure."

```

  1. Run the agent:

```bash

python invoke.py

```

The agent will autonomously:

Configuration

Environment Variables & Config File (config/default.yaml):

For non-Anthropic LLMs:

Demo Video: Full walkthrough available at Google Drive demo

The same text lives in `scripts/USAGE.md *for tools that prefer reading files under* scripts/`.

Parameters

--api-key (str) [required] API key for authentication

--task-description (str) [required] Natural language task specification for the materials simulation (e.g., lattice constant calculation, adsorption energy prediction). Defined in invoke.py usermessage.

--config-file (str) [optional, default=config/default.yaml] Path to YAML configuration file containing API keys, pseudopotentials, and working directory.

Usage

python3 scripts/dreams_client.py python invoke.py

Example Output

{"calculation_result": "lattice_constant_value", "dft_converged": true, "explanation": "..." }
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.