Graph Engineering für KI-Agenten: Parallele Workflows und Verifikation

VideoAI LABSAnleitung

Graph Engineering löst lineare Schleifen (Loop Engineering) ab, indem Aufgaben auf mehrere parallel laufende Sub-Agenten verteilt werden. Der Kanal AI Labs erläutert die Struktur aus Knoten und Kanten, Risiken durch kaskadierende Fehler und konkrete Verifikationsstrategien mit Claude Code.
Beim Abspielen wird YouTube (youtube-nocookie.com) geladen.

Das Wichtigste

  1. Loop Engineering führt Schritte nacheinander aus; Graph Engineering teilt Aufgaben in Knoten (Nodes) und Kanten (Edges), sodass Sub-Agenten parallel in isolierten Kontexten arbeiten.
  2. Graphen steigern das Tempo und erlauben gezielte Modellauswahl pro Knoten, verbrauchen in Summe jedoch wesentlich mehr Tokens als lineare Loops.
  3. Ein Fehler in einem Zwischenknoten kann das Gesamtergebnis verfälschen; daher ist Verifikation der kritische Faktor in Agentengraphen.
  4. Modellwahl beim Review ist entscheidend: Haiku lieferte im Test viele Fehlalarme, während Opus den Kontext verstand und unnötige Korrekturschleifen verhinderte.
  5. Verifikations-Skills lassen sich mit dem Plugin skill-creator in Claude Code erstellen und in Standalone- oder Embedded-Varianten einbinden.
  6. Für visuelle Tests empfiehlt sich Chrome Headless Shell als ressourcenschonende Alternative zu vollwertigen Browser-Instanzen.

Warum das relevant ist

Wenn Entwickler komplexe Aufgaben an Agenten-Schwärme delegieren, führen einfache lineare Abläufe schnell zu Engpässen. Parallele Graphen erhöhen den Durchsatz massiv, scheitern in der Praxis aber oft an unbemerkten Fehlern in Zwischenschritten. Strukturierte Verifikationsmuster, isolierte Reviews und schlanke Toolings entscheiden darüber, ob Multi-Agenten-Systeme produktiv nutzbar sind.

Einordnung

Das Video arbeitet den praktischen Unterschied zwischen theoretischem Multi-Agenten-Hype und belastbarer Implementierung heraus. Besonders hervorzuheben ist die Warnung vor falschen Sparmaßnahmen: Der Einsatz billiger Modelle für Review-Nodes erzeugt Scheingenauigkeit und treibt den Token-Verbrauch durch unnötige Folgekorrekturen in die Höhe. Auch die Trennung von Kontexten via 'Second Opinion' adressiert ein bekanntes Problem von LLMs – die Bestätigung eigener Code-Entscheidungen bei der Selbstevaluation.

Transkript

Vollständiges Transkript anzeigen (3.097 Wörter)
There's a new term going around called graph engineering, and everyone on X is talking about it. Before graphs, it was all loop engineering, where you hand the agent a goal, and it works toward it on its own. But with graphs, the work gets done faster and covers way more ground at once than a loop ever could. There's a huge problem with them, though. One error in a small part of the graph disturbs the entire output that comes back, and it's hard to track down because all you get at the end is the finished result. So Anthropic just released something that solves that exact problem and keeps your graphs working without failing. If you're new here, we're a software company, and this is our channel, AI Labs, where we show you how to optimize your business with AI. And if you don't have your own, you can use these skills to get paid by optimizing it for someone else. And in this video, we're going to go over graph engineering for anyone who doesn't know it and give you the exact fix Anthropic suggested. Before we explain graph engineering to you, you need to understand what loop engineering actually is. If you already know, you can skip this section. A loop is basically a working cycle you hand over to the agent. Instead of you prompting it through every single step yourself, you tell it the end goal it needs to reach, and it gets there on its own, adjusting as it goes. We've been using them heavily in our own workflows. We've already got a full video on loop engineering, too, where we went deeper into the different ways you can set them up. But loops are now turning into something called graphs. The problem with loops comes down to the way they're built. A loop does a piece of work, then a verification step kicks in to see if it's actually the way it should be. Once it passes, the next step starts. Everything runs in a straight line. So every step sits there waiting on the step before it, even when the two have nothing to do with each other. Graph engineering fixes exactly that. Instead of running in a straight line, a graph splits the main task into smaller parts, and each part gets its own agent. The first thing you get out of that is speed, because several agents cover the work at once, instead of one agent grinding through the whole thing. And splitting the work out like that brings the cost somewhat down, too, because you get to pick which model each one runs on. So you stop burning your most expensive model on the parts that never needed that much intelligence in the first place. But that's the cost per agent, not the cost overall. A graph burns way more tokens than a single agent ever will because you've got a whole set of them going at once instead of one. If you are using graphs, expect your limits to hit way sooner than you're used to, so you can't really set this up with the $20 plans of Claude Code and Codex. Now, if you've been using Claude Code, this probably isn't entirely new to you, because you've already seen a graph, which is the dynamic workflow. A dynamic workflow takes the task you hand over and fans it out across a set of sub-agents, which is basically what a graph does. Now, before we get into the shapes a graph can take, you need to know what actually makes one up. Every graph is built out of two things: nodes and edges. A node is basically a single job out of the bigger task you handed over, and it runs on its own. It is an agent that does a task in its own isolated context window and reports back. What ties all those separate jobs together is the edge. An edge controls how the data moves from one node to the next, so one agent's output lands with the right agent at the right point. So every node's got to be tied into the rest of the graph somehow. You can see that in a set of agents all reviewing the same piece of work. None of them ever wait on each other, but they all started from the same work, and every one of their reports feeds into the same place at the end. So that's what a graph is made of. Now, here are the shapes those pieces get arranged into. The first one's a shape we've already shown you on this channel, and we got the name wrong at the time. We called it a loop because this was before graph engineering was even a thing. But what we actually had was a graph that we were looping, and the shape of it was a diamond. One task at the top splits out into several sub-agents running side by side, then they all narrow back down into a single agent that pulls everything they found into one answer. Then there's the fan-in at a barrier graph, and that's the shape you want when one thing has to be judged from several angles at once. The fan-out part sends the same problem out to a set of agents, and each one looks at it through a different lens. Nothing moves forward until every one of those agents has reported back, and only then does it go and run their fixes. There are plenty of other shapes, too. But every one of these shapes rests on the same thing, and that's verification. If you don't set those checks up properly, every agent that comes after is just building on top of a mistake. But before we talk about verification, it would be great if you subscribed to the channel and hit the hype button. This small gesture of support goes a long way for us. Once you're running a whole fleet of agents, things go wrong in ways they never do with a single one. The biggest problem is just the amount of work. They're all going at the same time, so a huge pile of it comes back at once, and that's really hard to review at the end. The other problem is that you can't see what happened. When something goes wrong, you've got no way of telling what caused it. Now, all agents verify whatever they write whether you ask them to or not. If you're working with code, that just means the agent runs your tests and catches the errors that come back. But that only catches major errors. It still doesn't check how the code is written, and that's important because if Claude keeps writing it like this, it's going to cause problems in the future. There are a few built-in tools for this in Claude Code as well. The first is the verify skill, which takes the code from start to finish and confirms it actually behaves the way it's supposed to. The second is tool chaining, which is basically the agent running different tools to verify. Claude already knows to run the tools that check your work, so it reads the errors that come back and fixes them itself. It can work out your project's exact commands on its own, too. But writing them into your claude.md file saves it the trouble of figuring them out every single time. And the third is a code review skill, which checks the code against a set of standards. Not every agent ships with one, but you can just ask your agent to build you one if yours doesn't. But the verification that actually works best is the one you set up yourself, instead of leaning entirely on the built-in stuff. So the fastest way to build a skill that verifies your work is the skill-creator plugin in Claude Code. You can also use this Claude Code skill in Codex as well. You run the plugin command, search for skill-creator, and install it. From there, you've got two options. You can install it at the user scope, which means it's there no matter which folder you're working in, or you can install it just for the project you're working in right now. Since this is a skill you'll be using constantly, we went with the user scope. After that, you reload the plugins with the slash command and skill-creator's ready to be used. Now you tell it what you want built, and this is the part where you describe the kind of verification you're actually after. We mostly use a review skill for checking the finished work against what we asked for in the first place, and that matters way more in a graph because each agent only ever sees its own piece. This is what gives it a way to check that piece against the original requirements. But a skill is only ever as good as the model you run it on. When we were building the verification system for our community website's UI, we ran the reviewer on Haiku because it's cheap and the job looked simple enough. It came back with a long list of issues. Going off the number of findings alone, it looked like it had done a great job. Then we ran the exact same on Opus, and it flagged way fewer things. That looked like the worse result, right up until we read the reasoning. A lot of what Haiku had reported was stuff we'd left there on purpose, so most of the findings it made were completely unnecessary. Opus had worked that out from the code around it, which Haiku had missed it completely. So the cheap review hadn't saved us anything because now the review itself needed reviewing. Now put that inside a graph where a whole set of nodes are all checking their own work with that same skill. You'd have agents burning time and tokens fixing things that were never broken. And because it's happening across separate agents all at once, you'd have no way of telling which one started it. So the model you pick doesn't just decide the quality of the review; it decides the quality of the whole graph. The node that does the judging is the one place where saving tokens costs you everything. The other thing you've got to decide is how and when that skill gets invoked, and that splits them into three kinds. But before we go deep into the types, let's have a word by our sponsor. If you've ever pulled live data off the web, you know scraping is a genuine pain, where you end up fighting captchas and rate limits, wrestling with proxies, and patching layouts that break the moment you ship. So we reach for SerpApi, which solves all these problems so you can focus on building. It's one API call. You send a request and get back a clean JSON object with exactly the data you need with over 99.9% uptime and around a 1.2-second response. When you're building AI agents, you can point the Google search API at an agent that needs current information or use the Google Scholar API for peer-reviewed papers with full metadata, which is why so many production agents rely on it. Get started with 250 free credits using the link in the description or scan the QR code on screen. Thanks to SerpApi for sponsoring this video. The first kind is standalone, and that's the sort of skill that only runs when you actually do it yourself. A standalone skill is built to go deep on something that already exists, so it can properly go back over a finished output. That's why you don't want it firing after every single run. You'd be burning tokens on a heavy review of work that isn't even finished yet. One we've used before is the thermonuclear code review by Cursor. It fans out a set of agents and sends each one through the code from a different security angle. Every finding comes back in one place, so it can work through the fixes together. And that's exactly the kind of review you only run once the app's done. To build one of these, you're better off using skill-creator than just prompting it to do it because what comes back is tested, and that makes it easier to trust. You tell it in the prompt which area you want reviewed, and make sure you mention that the review should be comprehensive so it knows you're after a deep pass and not a quick one. But a standalone skill is no use to a node that's still working because you have to run it yourself. That's what embedded skills are for. An embedded skill fires automatically as part of the workflow you're already running without you asking for it. You could build one that kicks in whenever somebody asks for a new feature. It checks that every component being created follows the rules you laid out in the skill, and it won't let the implementation finish until it's been checked against those rules. You can build embedded skills yourself, but you can't take a pre-installed one and have them be invoked automatically like the verify skill we talked about earlier. The instructions those skills run on sit inside the product, and you don't get to touch them. To build your own, give skill-creator a prompt telling it to run verification steps after every feature implementation. So you tell it to test the feature from start to finish so it catches whether the new work broke anything that was already working. Claude then creates the skill for you, and because skill-creator generated it, it comes with references and scripts that skill-creator structured and tested as part of the process. Now, to verify a feature, Claude uses browser testing by default, where it checks the interface by opening a full Chrome browser, loading the page, and taking screenshots of it. And if you've wired up Puppeteer or Playwright, which are basically the tools most people use to drive a browser automatically, they do the same thing. But Chrome's famous for eating memory and running heavy, and for checking a page over and over inside a workflow, it's slow enough that it starts costing you real time. So there's a lighter way to do it called Chrome Headless Shell. It's basically a stripped-down version of the browser with all the extra parts ripped out. The agent still goes to the page and takes its screenshots the same way. It just gets through all of it way faster than a full Chrome does. You can build that straight into the verification skill you create. Then every feature the agent builds gets checked visually without you setting anything up each time. Aside from that, the skill we use the most in our own workflow is one called second opinion. And the reason is simple. The agent that built the thing is the worst possible one to review it. It's judging its own work off the same context it used to build it, so it just reviews based on that. A fresh Claude session hasn't seen any of that. It gives an unbiased review and gives you a straight answer. Now Claude does have a built-in advisor that does something along these lines, but it reads the chat you're currently in, so it inherits all that same context. Second opinion is for when you want the review without it. It works by starting another Claude session from inside the one you're already running, using the dash P flag. That's the flag that fires off a whole separate Claude Code session in the background by handing it a prompt to work on. There are a couple of things you need to know if you're going to use this, though. Since it's launching an entirely separate session, it takes a really long time to come back with an answer, and the model matters here more than anywhere else because the whole point is a smarter second read. So it's worth telling Claude explicitly to start that session on Opus. That gives every node in your graph a way to get its work checked by something that had no hand in doing it. But one skill can't cover everything, though. Once you're reviewing something properly, you're reviewing it from several different angles, and every angle has its own way of measuring. You can't stuff all review types into one skill, because that way agent will have too many directions to review and will ended up getting worse instead of better. So you build a separate skill for each angle and chain them together. Anthropic's own team works this way, too. They chain the code review skill together with the simplify skill and the verify skill, and all three of those now ship with Claude Code. On top of that, they run their own design skill, which checks the interface against the design.md file, which is basically the file that holds every design decision for the product. So that's a review coming from four directions instead of one. You'll end up in the same place with a stack of skills that each cover a different angle. But you can't just tell the agent to run all of them at once. What you need is one more skill sitting above the rest, which is basically an orchestrator skill whose only job is to run other skills. It spins up an agent for every review skill you've got and hands each one its skill. They all review at the same time in their own separate context windows. Then it pulls every finding back into one report that the fixing agents can work from. Then when you're building a graph, the only thing you have to say in the prompt is that it should use that one skill. Every node it spins up loads that single skill, and the whole review fans out underneath it on its own. Now we have curated a document containing all the ways you can set up verifications for graphs in detail. That doc along with all the skills shown in this video are available in AI Labs Pro, which is our community. So if you found value in what we do and want to support the channel, this is the best way to do it. The link's in the description.

Links und Tools aus diesem Beitrag

Zusammenfassung von KI erstellt (Gemini 3.8 Flash, 27. September 2026). Sie kann Fehler enthalten – maßgeblich ist die Originalquelle.

Inhaltlich ähnlich, ermittelt über die KI-Suche.

  • X-Post:rvaniaaa

    Graph Engineering für KI-Agenten: Parallele Workflows statt linearer Ketten

    rvaniaaa argumentiert, dass die Leistungsbremse moderner Multi-Agenten-Systeme nicht in den Sprachmodellen liegt, sondern in ihrer geometrischen Struktur. Statt Agenten sequenziell nacheinander auszuführen, empfiehlt der Autor den Wechsel zu Graph-Architekturen mit strikter Trennung von Aufgaben und Kontexten.

    2940Lesezeichen233.478Aufrufe

    KI & AI· Anleitung

  • Video

    Video:Greg Isenberg

    Graph Engineering: Workflows für KI-Agenten strukturieren

    Greg Isenberg erläutert das Konzept des Graph Engineering als übergeordnete Stufe nach Prompt- und Context-Engineering. Statt komplexe Aufgaben in einem einzelnen Chat-Prompt abzuhandeln, wird der Prozess in Teilschritte, parallele Aufgaben, Prüfinstanzen und menschliche Freigaben unterteilt. Neben der Abgrenzung von Knowledge Graphs und Agent Graphs zeigt er konkrete Workflows sowie Umsetzungsstufen von manuellen Schritten bis zur Automatisierung mit LangGraph oder n8n.

    KI & AI· Vortrag

  • X-Post:codila

    Graph Engineering: Multi-Agenten-Systeme und dynamische Workflows

    Codila verweist auf einen kostenlosen zweistündigen Google-Kurs zum Thema Graph Engineering für Multi-Agenten-Systeme und erläutert in einem Leitfaden, wie sich lineare Agenten-Ketten durch vernetzte, parallele Graphen ersetzen lassen. Anhand von Dynamic Workflows in Claude Code v2.1.154+ wird demonstriert, wie Hunderte Agenten parallel arbeiten, ohne den Chat-Kontext zu überlasten.

    6799Lesezeichen465.379Aufrufe

    KI & AI· Anleitung

  • X-Post:Mahax

    Graph Engineering: Warum Agenten-Workflows ohne Graphen scheitern

    Mahax zitiert Andrej Karpathy mit der Aussage, dass Prompting verschwinden und nur Graphen-Strukturen übrig bleiben werden. In einem verlinkten Leitfaden erklärt Mahax die Grundlagen des Graph Engineering mit Claude sowie Methoden zur Parallelisierung von AI-Workflows.

    2352Lesezeichen240.822Aufrufe

    KI & AI· Meinung

  • X-Post:Codez

    Graph Engineering für Agenten: Roadmap für parallele Workflows in Claude Code

    Ein X-Post von Codez zitiert Boris Cherny, den Entwickler von Claude Code, mit der Aussage, dass agentenbasierte Systeme künftig über Graphen und Schleifen statt über einfaches Prompting gebaut werden. Der Beitrag verweist auf einen Leitfaden zur Strukturierung komplexer Multi-Agenten-Architekturen.

    5446Lesezeichen549.183Aufrufe

    KI & AI· Sammlung

  • X-Post:Kirill

    Vom Agenten-Loop zum Graph Engineering: Deterministische KI-Architekturen

    Kirill beschreibt den Architekturwandel im Agenten-Design weg von fehleranfälligen Einzelschleifen (Loop Engineering) hin zu Graph Engineering. Der Erfolg komplexer KI-Systeme hänge nicht von der Modellgröße oder einer höheren Agentenzahl ab, sondern von deterministischer Strukturierung durch Knoten, Kanten, Verifizierer und Wissensgraphen.

    27.340Lesezeichen2,7 Mio.Aufrufe

    KI & AI· Meinung

Lassen Sie uns über Ihr Projekt sprechen

Standorte

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Wien
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Dieser Inhalt wurde teilweise mithilfe von KI erstellt.