PlatformSmith
Book a demo Get started
← Blog

What is graph engineering?

A new name for an old problem: getting many AI agents to split up work, hand it between them and come back together. Where the term came from, how it fits with prompt and loop engineering, and how PlatformSmith runs a graph of coding agents.

· updated · 9 min read

Graph engineering is the practice of designing how many AI agents are organised, as an explicit structure of nodes, typed edges and shared state, instead of programming one agent’s behaviour cycle. A loop controls what a single agent does. A graph controls how many agents divide the work, pass it between them and come back together.

A work graph: one request, three service agents passing typed context, a barrier, and a human gate One request fans out to three agents: gateway, billing and ledger. Labelled edges carry a contract from gateway to billing and a schema from billing to ledger. All three branches converge on a barrier, then a single human approval, after which the change ships. one request gateway claude · merged billing claude · running ledger codex · queued contract schema BARRIER nobody builds ahead your approval parks up to 7 days ships every edge routed through the platform · recorded · replayable

Where the term came from

The name is a few months old. In mid-2026 Peter Steinberger asked on X whether people were “still talking loops or did we shift to graphs yet?”, and Hamel Husain answered with an article called Loop Engineering Is Dead. Enter Graph Engineering. It set off the usual round of rebuttals, explainers and videos.

The idea itself is older. LangChain’s own write-up, from July, calls graph engineering “the latest term to come out of X’s AI content factory” and points out that LangGraph has been building agents as graphs for three years. AutoGen and Google’s ADK work the same way, and most of the underlying patterns (chaining, routing, parallel work, orchestrator and workers) were laid out in Anthropic’s Building Effective Agents. So what arrived in July was mostly a word. It caught on because agents had started running unattended for hours, and the hard part had moved from what the model can do to how the system around it is designed.

Three layers, not three rivals

Prompt, loop and graph get talked about as if each replaces the last. They don’t. They stack, and each one controls a different unit of work.

ControlsThe question it answers
Prompt engineeringOne model responseWhat do I say?
Loop engineeringOne agent’s cycleWhat finds the work, does it, checks it and remembers it?
Graph engineeringHow many agents are organisedHow does work split up, move between agents and come back together?
Prompt, loop and graph as nested layers of control Three nested rectangles. The outermost is the graph, which controls the organisation of many agents. Inside it sits the loop, which controls one agent's behaviour cycle. Inside that sits the prompt, which controls a single model response. GRAPH many agents · nodes, typed edges, convergence LOOP one agent's cycle · trigger, goal, verify, memory PROMPT one model response
Each is a different unit of control, and none of them replaces the one inside it. A graph is made of loops the way a loop is made of prompts. Teams tend to adopt them in that order, and hit the limits of each in that order too.

A loop has a trigger, a goal it can check, the actions available to it, a verification step, and memory that carries between attempts. Running the cycle is easy. Knowing when to stop is the hard part. A graph adds declared nodes and typed edges over shared state, with one rule that matters more than the rest: context doesn’t cross from one node to another unless an edge carries it.

What a graph is actually made of

Five parts, and each is a place where multi-agent systems tend to break first.

An org graph and a work graph

Two structures run at the same time, and they’re easy to confuse. The org graph is stable: agents in named roles that stick around, usually one per service or domain. The work graph is short-lived: tasks that split, merge and disappear as the agents learn more.

The org graph and the work graph run at the same time Left: a stable org graph of four long-lived agents in named service roles, each connected through the platform rather than to each other. Right: an ephemeral work graph where one request decomposes into parallel branches, meets a barrier, passes a human approval gate, and ships. ORG GRAPH stable · outlives any one run Gateway Billing Ledger Web app PlatformSmith Agents never talk peer to peer. every edge is recorded and replayable. WORK GRAPH ephemeral · one per request one request merged running queued barrier your approval parks up to 7 days
Conflating the two is the common failure: a system built only on the org graph cannot re-plan, and one built only on the work graph has no stable roles to hold accountable.

Edges that carry context on purpose

Because context only moves along an edge, every piece of information one agent gave another is a recorded transfer you can replay later. That’s what makes a graph auditable. Without it you have a group chat with a shared history nobody can reconstruct.

Places where branches meet

Parallel branches have to meet somewhere. Without an explicit barrier, one agent builds against a contract another branch is still negotiating, and the problem turns up late as a merge conflict or a broken integration. With a barrier it turns up early, as a wait.

A stop condition the system checks

This one comes from loop engineering and gets worse with more agents. A run that stops because it ran out of tokens didn’t finish, it gave up. Finishing needs a check the system performs, such as tests, a review step or a person’s decision. A model saying it’s done doesn’t count.

State that lasts

Multi-agent work runs for hours or days and waits on people. The structure has to survive a restart, a retry and someone going home for the weekend, without repeating a step that already changed something.

Why coding agents make this harder

Coding agents raise the stakes on all five. Their work touches real repositories, and a change to one service often forces changes to three others. A duplicated step can mean a duplicated migration. And the human decision in the middle of a run is usually a sign-off that someone will be asked about later.

That’s why a framework is usually not enough by itself. It gives you nodes, edges and state. What teams end up building around it is durable execution across a human decision, a record of what each agent did, and somewhere realistic for the agents to run. Those are platform problems more than framework problems.

How PlatformSmith runs a graph

Each part of a graph maps to something that ships in PlatformSmith today:

Part of the graphHow PlatformSmith does it
Org graphA playbook names its participants up front: one agent per service, each running the coding agent that team already uses (Claude Code or Codex).
Work graphWork items carry their own dependency graph, so the breakdown of a change is a structure the system can follow instead of a checklist someone keeps up to date.
EdgesAgents never talk to each other directly. Every message goes through the platform, which is what makes the conversation something you can replay afterwards.
Meeting pointsBarriers hold the group until the services agree on their contract, so nobody builds against a shape that’s about to change.
Stop conditionApproval gates are explicit steps. A run waits at one for up to seven days and carries on from where it stopped.
Lasting stateThe order of work runs on a durable workflow engine with retries and exactly-once steps, so a flaky step never turns into a duplicate change.

The agents themselves run inside your own container image, against the real service in your environment, on your infrastructure.

If you’re thinking about graphs because you want a whole delivery system built out of agents, we wrote about that separately in What is an agentic software factory? A factory is what you get when you point a graph like this at the entire software lifecycle.

Frequently asked questions

What is graph engineering?

Graph engineering is the practice of designing how many AI agents are organised, as an explicit structure of nodes, typed edges and shared state, instead of programming one agent's behaviour cycle. A loop controls what a single agent does. A graph controls how many agents divide the work, pass it between them and converge.

What is the difference between loop engineering and graph engineering?

A loop controls one agent's cycle: how it finds work, does it, checks it and remembers it. A graph controls how many agents are organised: which nodes exist, which edges carry context between them, and where parallel branches meet. They stack rather than compete. Every node in a graph is still a loop.

Why is orchestrating multiple coding agents hard?

Three problems only show up once there is more than one agent. Context doesn't move between agents unless something carries it. Parallel branches need explicit meeting points, or they build against contracts that are still changing. And a run that waits on a human decision has to survive hours or days without repeating steps that already had side effects.

Do I need a framework for graph engineering?

A framework gives you the building blocks: nodes, edges and state. What most teams end up missing is everything around them, such as durable execution across a human decision, a record of what each agent did, and running against real services instead of a sandbox. Those are platform problems more than framework problems.

Which coding agents does PlatformSmith orchestrate?

Claude Code and Codex. You can mix them in the same run, with Claude Code on one service and Codex on another.

Where does the code run?

In your own cloud or data centre. Agents work inside your own container image against the real service, and one outbound connection is the whole network requirement.

Sources

See it run on your own stack.

Agents on your infrastructure, gates where you put them, a record of every run.

Get started Book a demo