mlsanityData to 7 Oct 2026

MatClaw: An Autonomous Code-First LLM Agent for End-to-End Materials Exploration

arXiv 2604.02688 ↗First posted 3 Apr 2026cond-mat.mtrl-sci cs.SEcited by 4

On the map: LLM agents and tool use → Medical and scientific domain agents

Abstract (arXiv)

Existing LLM agents for computational materials science are constrained by pipeline-bounded architectures tied to specific simulation codes and by dependence on manually written tool functions that grow with task scope. We present MatClaw, a code-first agent that writes and executes Python directly, composing any installed domain library to orchestrate multi-code workflows on remote HPC clusters without predefined tool functions. To sustain coherent execution across multi-day workflows, MatClaw uses a four-layer memory architecture that prevents progressive context loss, and retrieval-augmented generation over domain source code that raises per-step API-call accuracy to ~99 %. Three end-to-end demonstrations on ferroelectric CuInP2S6 (machine-learning force field training via active learning, Curie temperature prediction, and heuristic parameter-space search) reveal that the agent handles code generation reliably but struggles with tacit domain knowledge. The missing knowledge, such as appropriate simulation timescales, equilibration protocols, and sampling strategies, is the kind that researchers accumulate through experience but rarely formalize. Two lightweight interventions, literature self-learning and expert-specified constraints, bridge these gaps, defining a guided autonomy model in which the researcher provides high-level domain knowledge while the agent handles workflow execution. Our results demonstrate that the gap between guided and fully autonomous computational materials research is narrower than ever before: LLMs already handle code generation and scientific interpretation reliably, and the rapid improvement in their capabilities will accelerate materials discovery beyond what manual workflows can achieve. All code and benchmarks are open-source.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Medical and scientific domain agents, one of 16 directions in LLM agents and tool use. Builds on 14 of its 31 references that are in the map. First posted on arXiv 3 Apr 2026.

Builds on

14 of 31 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025VASP Agent: An Agentic Framework for Autonomous First-principles Calculations22 Dec
  2. 2025El Agente: An Autonomous Agent for Quantum Chemistry5 May
  3. 2023Agent-based Learning of Materials Datasets from Scientific Literature18 Dec

Other references · 11

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  7. 2023ChemCrow: Augmenting large-language models with chemistry toolscited by 609
  8. 2017DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamicscited by 79
  9. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
  10. 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Treecited by 17
  11. 2025TopoMAS: Large Language Model Driven Topological Materials Multiagent Systemcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Toward Greater Autonomy in Materials Discovery Agents: Unifying Planning, Physics, and Scientists
  2. 2025GENIUS: An Agentic AI Framework for Autonomous Design and Execution of Simulation Protocols
  3. 2026A collaborative agent with two lightweight synergistic models for autonomous crystal materials research
  4. 2026Towards Agentic Intelligence for Materials Science
  5. 2026Can Coding Agents Reproduce Findings in Computational Materials Science?
  6. 2026ALKEMIE Agent: an autonomous platform for computational materials design
  7. 2024LLMatDesign: Autonomous Materials Discovery with Large Language Models
  8. 2026Evaluating a 4B open-weights local LLM for agentic DFT workflows: a literature reproducibility audit