Knowledges 19 min

What is Graph Engineering?

I'd told myself I was done breaking down buzzwords like this, but lately the phrase Graph Engineering keeps popping up more and more... and as usual, people keep overhyping it... it's exhausting.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

I'd told myself I was done breaking down buzzwords like this, but over the past few weeks I keep seeing the phrase Graph Engineering pop up more and more in discussions about AI agents, coding agents and multi-agent systems... and as usual, people keep overhyping it... it's exhausting.

The name sounds pretty new. Pretty fancy. Pretty much smells like “a new engineering discipline invented last weekend” :))))

But before going any deeper, one thing needs to be crystal clear from the start: Graph Engineering is not new at all.

What is Graph Engineering?

Take the word “AI” out of the story and engineers have been designing systems as graphs for a very long time. Dependency graphs, state machines, workflow engines, dataflow systems, build systems, schedulers, distributed systems... they all share the same core idea:

One big job → split into many small units → define the relationships between them → manage state, dependencies, execution order and failure.

Put more simply:

  • A must finish before B
  • B and C can run in parallel
  • D only runs if C succeeds
  • If D fails, go back to B
  • If everything passes, move on to E
mermaidflowchart LR
  A["A"] --> B["B"]
  C["C"] -- "success" --> D["D"]
  D -- "fail" --> B
  B -- "pass" --> E["E"]
  D -- "pass" --> E
That's already a graph!
What is Graph Engineering?

Back in the day, a node in a graph could be a function, a compiler task, a database job, an HTTP request or a worker process. Now a node can be an AI agent that thinks for itself, uses tools, edits code, spawns subagents and runs for minutes or even hours.

That's where the new part really is. Not in the graph itself.

1/ Graph Engineering is yet another AI buzzword

I think it's easier to just call it what it is: Graph Engineering is a buzzword. No way to argue with thaaaaat.

What is Graph Engineering?

It stands next to a pretty familiar crew of siblings:

  • Prompt Engineering
  • Context Engineering
  • Harness Engineering
  • Loop Engineering

Looks just like the Pokémon evolution tree of AI engineering :))))

What is Graph Engineering?

Every few months we get a new term to describe a new layer of abstraction. And the question keeps getting bigger over time:

StageQuestion
In the beginningHow do I write prompts so the model answers better?
Stronger models, longer-running agentsWhat context should the model see?
After thatWhat tools does it get? What runtime? What sandbox? What memory? What permissions?
ThenHow do I make the agent run many rounds on its own, check itself and fix itself until the job is done?
And finallyIf one agent isn't enough, how do multiple agents, tools, evaluators and humans work together?

Ta-da. We now have… Graph Engineering. New name, but the engineering question behind it isn't new.

2/ But calling it a buzzword doesn't mean it's worthless

To be fair, a “buzzword” has its own purpose too, and here it's probably that it gets a lot of people to pay attention, get curious & start asking questions…

What is Graph Engineering?

In tech there are two very common reactions whenever a new buzzword shows up:

  • Type one: “This is the future! Anyone who doesn't learn it now will be left behind!”
  • Type two: “Nonsense. Another buzzword. Skip.”

I think both are a bit extreme. We need to be clear-headed enough to strike a balance. A term can be a buzzword and still describe a real engineering problem.

“Cloud”, “DevOps”, “Microservices”, “Serverless”, “Platform Engineering”... all had their phase of being hyped to the moon by marketing. But that doesn't mean the ideas behind them weren't useful. Same goes for Graph Engineering.

The question worth caring about isn't “Is Graph Engineering a brand-new discipline?” It's:

“Where exactly does graph thinking help us build more reliable AI systems?”

That's the question worth spending time on.

3/ I'm not an AI Researcher or an expert of any kind

Saying this upfront so nobody accuses me of showing off 😁 I'm a technical guy. A proper engineer by background. I've been coding since 2006 (well, not anymore, AI does all of it now, I give up 😂)

I'm not an AI Researcher, and I'm not an expert in multi-agent systems, distributed AI or anything that lofty. My job requires me to research, build and deploy these systems into real projects, so I've been forced to understand how they work. “Tinkerer” is probably the most accurate label, but anyway, I'm rambling again…

The way I usually approach a buzzword is pretty simple:

  1. Buzzword
  2. Peel off the marketing layer
  3. What's the underlying principle?
  4. Has computer science already solved this problem?
  5. What are the trade-offs?
  6. How do I bring it into a real project?

Once you get down to the principles layer, a lot of things naturally become less scary.

We fear what we don't understand, right? 😁

“Graph Engineering” sounds like you have to learn a whole new field. But peel it back and we run into these “old friends” again:

  • node
  • edge
  • state
  • dependency
  • branching
  • parallelism
  • loop
  • retry
  • checkpoint
  • validation
  • failure handling

All of them are plain old engineering terms!

4/ So what is Graph Engineering?

If I had to define it in the simplest way possible, I'd say:

Graph Engineering is designing how multiple units of work, such as agents, tools, deterministic code, evaluators and humans, coordinate with each other as a graph with clear state, rules and failure boundaries.

(Sounds like the nodes in n8n, huh? And picturing it that way is actually right! n8n is Graph Engineering too, hehe)

A basic graph can look like this:

Diagram of a basic graph

There are three core components to understand first:

ComponentMeaning
NodeWho/what is doing the work
EdgeWhere to go after this step
StateWhat information is carried along during the run

Understand these three and you've basically got most of the mindset. The rest is the “engineering” that makes them run well in the real world.

5/ Node: who is doing the work?

A node is a unit of execution in the graph. A node can be dead simple: read_file(), or call API, or run tests.

But in agentic systems, a node can be far more complex:

textCoding Agent
    ↓
inspect repository
    ↓
reason
    ↓
edit 12 files
    ↓
run tests
    ↓
fix bugs
    ↓
result output

In other words, a node can itself contain a complete loop. A lot of people think Graph Engineering replaces Loop Engineering. It actually makes more sense to look at it like this:

A node in a graph can contain a loop

A node can even be a subgraph. So a graph doesn't necessarily replace a loop. A graph can hold a loop right inside it.

Example of a coding workflow:

Example coding workflow with a Coding Agent Loop

Here the Coding Agent Loop can run dozens of steps internally on its own. The outer graph only cares about the contract:

  • What's the input?
  • What's the output?
  • How is pass/fail decided?
  • What is it allowed to do?
  • Where does it go when it's done?

This is a very powerful pattern. It's also exactly the pattern I've been using to build workflows for AgentKit from day one, though honestly, back then I had no clue what it was even called =))

6/ Edge: where to next?

If a node is “who does the work”, an edge is:

What happens after this node finishes?

The simplest edge is sequential: A → B → C, e.g. Research → Draft → Review. But in practice we need more shapes than that.

Types of edges in a graph
(Looks like a Git workflow, huh!)
In other words: a simple loop is just a graph with a cycle.

That's why I don't like framing like “Loop Engineering is dead, you're still not doing Graph Engineering?”. Sounds great to the ear, but technically it's a bit of… “clickbait herding” 😆

7/ State: what gets remembered and passed through the graph?

In my opinion this is the hardest part of building a real graph. A diagram looks gorgeous (early AgentKit/ClaudeKit was literally just this 😂):

textPlanner → Coder → Reviewer

Locked section: 8/ Contracts: the super important part (which I only learned much later)

Locked section: 9/ Evaluators and deterministic gates

Locked section: 10/ Retry, checkpoints and failure boundaries

Locked section: 11/ Real-world example: building a feature with a coding-agent graph

Locked section: 12/ But good Graph Engineering doesn't mean the more agents the better

Locked section: 13/ What's really worth learning isn't the word “graph”

Locked section: State management

Locked section: The remaining principles

Locked section: 14/ Why is it only trending now?

Locked section: 1. Agents are finally capable enough to be a reliable node

Locked section: 2. A single agent starts hitting coordination limits

Locked section: 3. Parallel agents are becoming more economically worthwhile (tokens)

Locked section: 4. Builders need more control over agents

Locked section: 5. We're moving from “model engineering” to “system engineering”

Locked section: 15/ [Hot take corner] Graph Engineering might be where software engineers get their edge back

Locked section: 16/ Key takeaways

The rest is for Knowledges members

Plus 16 more sections (about 13 min) for members

You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.