arXiv:2611.07947cs.AINov 2026

Manuscript Offprint

arXiv:2611.07947

ChemE-as-Code: An Open-Source Platform for Agentic AI in Chemical Engineering

Artur M. Schweidtmann

Abstract

ChemE-as-Code provides an open-source environment in which AI agents built on large language models (LLMs) can carry out chemical engineering work and engineers can check it. Its calculation tools range from catalysis through process simulation to plant layout, HAZOP and life cycle assessment, and skills tell a general-purpose agent how to use them. Engineering files are linked, machine-readable and versioned in Git; calculations run outside the LLM, each value records its origin, and automated checks report inconsistencies and out-of-date results by file and line. In an illustrative ammonia case, agents developed a written task into a preliminary basic-engineering package (simulation files, P&IDs, layout, HAZOP, datasheets, relief) for USD 224 of API cost in the design sessions. Planted faults and engineering changes show that the checks find what their rules cover and miss the rest, so they guide human review rather than replace it. No independent engineer has reviewed the design.

Keywords: agentic AI, large language models, Plant-as-Code, process design, P&ID

1 Introduction

Generative artificial intelligence (AI) is expected to reshape chemical engineering [1, 2]. AI agents, its newest form, can go beyond answering questions: they can use tools, edit files and iterate on their own results [3, 4]. Engineering work can thus increasingly be proposed, executed and revised by computational agents. In the past years, software development has shown what this opens up. AI assistants have sped up well-defined programming tasks [5], and the length of tasks that agents complete on their own keeps growing [6]. Software teams can use agents in this way because their work already lives in versioned text files that automated tests can check. We expect chemical process engineering to benefit in the same way once its work takes the same form.

That form is harder to reach in chemical engineering than in software. A plant is described by many coupled documents: process models, specifications, process flow diagrams (PFDs), piping and instrumentation diagrams (P&IDs), equipment data, layouts, safety studies and environmental inventories. P&IDs are the central reference documents of a plant over its life cycle [7–9] and are still created largely by hand [7, 10]. The documents depend on each other, but the dependencies are rarely recorded. This means that a change in one place, such as a higher design capacity, silently invalidates numbers elsewhere: in the simulation, the drawings, the equipment data, the layout, the safety analysis and the inventory [11]. Nothing tells the engineer which of them. Much process information also still sits in documents that must be digitized before a change can be assessed [12]. Integrated information models, exchange standards and digital threads address parts of this problem [13–16]. They let tools exchange data. They do not record, for a whole project and at every revision, which results are still consistent with each other, which are out of date, and who has reviewed what.

AI agents make this problem larger. They produce more proposals and revisions than people can read, and their output can look plausible but still be invalid. Earlier generators of flowsheets and P&IDs, from rule-based systems [10, 17, 18] to learned models [19–21], have a related limit: they produce part of a design without the decisions behind it and outside the engineering workflow. As agents propose faster, verification increasingly sets the pace of engineering [22].

A further question is how agents should be organized. Our earlier review proposed teams of specialized agents, one per discipline, mirroring an engineering organization [4]. Here we take a different route. Domain knowledge sits in skills and tools, and one general-purpose agent loads what a task needs. A skill is a short instruction file that tells the agent how to perform an engineering task; a tool is a program that performs a calculation or a check. This keeps the engineering knowledge in files that engineers can read, test and version, independently of a particular agent or model, and it reduces the need for coordination between discipline-specific agents, a reported source of failure in multi-agent systems [23]. Separate sessions are still used where independence helps, as in review. Which option works better is an open question that needs a controlled comparison.

The acceleration that AI agents promise depends on the engineering environment in which they work. We present ChemE-as-Code, an open-source platform that provides such an environment. It implements the Plant-as-Code perspective of Schweidtmann and Demeyer [22] and extends it from process and plant design to process chemistry, simulation, techno-economic assessment (TEA) and life cycle assessment (LCA); the name stands for treating chemical engineering work as code. Early industrial pilots on individual projects have pointed to substantially faster design iterations [22], and ChemE-as-Code makes the approach open, broad and testable. The platform rests on two foundations. First, a plant is one Git repository of linked, machine-readable files, from the design basis (the requirements the plant must meet: product, capacity, feed, site and utilities) to the life cycle inventory. Every revision is checked by programs, and the checks and calculations behind each value are kept with it; we call this record the evidence of a revision. Second, an open set of calculation tools and agent skills spans the scales of chemical engineering, from catalysis and reaction kinetics to plant layout and LCA (Figure 1). Agents and engineers work through the same files and command line, and in the proposed workflow a person reviews the evidence before a revision is accepted. We argue that the innovation lies in this combination of capable agents with an engineering environment designed for them. Models will change quickly, but we expect the way agents interact with engineering files, tools, evidence and reviewers to remain relevant.

We ask three questions. RQ1 (representation): can a process project be represented as linked, machine-readable files across disciplines that agents and people edit? RQ2 (verification): do automated checks find inconsistencies, out-of-date results and affected files when the design changes, where do they fall short, and can generated files be regenerated reproducibly? RQ3 (agent-enabled engineering): can a general-purpose agent carry out interconnected engineering tasks with these skills and tools, at what cost and with which limitations? The paper contributes a paradigm for AI-accelerated, human-directed Chemical Engineering-as-Code, described as five shifts in how engineering work is organized (Section 3); the open-source platform that implements it (Section 4); and an end-to-end demonstration on a natural-gas ammonia plant with an evaluation of what the checks find and miss (Section 5). The case shows that the workflow runs. It does not establish the quality of the design or a productivity gain, which remains our hypothesis.

Figure

Figure 1: ChemE-as-Code across engineering scales. One general-purpose AI agent selects, by task, the skills (instruction files) and the calculation tools of a scale, from chemistry and thermodynamics through process and equipment design to plant layout, safety, cost and environmental assessment. Engineers (green) set objectives, decide and, in the proposed workflow, approve revisions. All work goes into one shared, versioned plant repository in Git. Its files refer to each other by equipment and line tags, each calculated value records its inputs, and each value records where it came from, so that a change at one scale can be traced to the files it affects at other scales. The domain knowledge lives in the skills and tools, not in several specialized agents. Concept adapted from Rupprecht et al. [4].

References (81)