Loop and graph engineering, explained for people who don't code

Loop engineering means an AI agent works on a schedule with no one typing. Graph engineering means one job is split across several agents, then checked and merged. The five levels of AI work in plain words, and what a VibeKit agent already does at each one.

By Brian Boisjoli 7 min read agentsloop-engineeringgraph-engineeringgetting-started

Short answer: loop engineering is setting up an AI agent so it works on a schedule, with no one typing. Graph engineering is splitting one big job across several agents that work at the same time, then checking and merging what they made. Both are ways to get more out of AI without sitting in a chat window all day, and you can use the first one today without writing any code.

We build VibeKit, where every app comes with its own AI agent. The VibeKit facts below come from our own code as of November 2026.

The five levels of AI work

People who build with AI have started describing the work as five levels. Each one wraps around the one before it, like rings in a tree:

  1. Prompt. What you type. "Make me a booking page for my dog walking business."
  2. Context. What the AI knows when it reads your words: your past decisions, your business, what it already built. A great prompt with no context still gets a generic answer.
  3. Harness. The tools and checks around the AI. Tools let it act (edit files, publish a site, take a screenshot). Checks catch it when it is wrong.
  4. Loop. The agent runs again and again on its own, on a schedule or when something happens, and nobody has to start it.
  5. Graph. One job is split into parts. Several agents work on the parts at once, another one checks them, and the results are merged.

The first two levels are about talking to the AI well. The last three are about building a system around it. That is the shift these terms describe: from "say the right thing" to "set up the right machine."

What a loop looks like if you don't code

A loop is an agent with a calendar. Instead of you asking every morning, you ask once and it keeps going.

Some loops a non-coder might want:

The hard part of a loop is not starting it. It is what happens when no one is watching. Three things matter:

If you are a developer and want the deeper version, our earlier post Loop engineering, explained by someone who runs the loop in production covers the operating lessons.

What a graph looks like, and when it is worth it

A graph is a kitchen instead of a cook. One cook makes the whole meal in order. A kitchen gives the sauce, the grill and the dessert to different people at the same time, and the head chef tastes each plate before it goes out.

For AI, that means one agent researches while another writes and a third builds, and a checker reviews their work before it is merged into one result. Done well, a big job finishes faster and a second agent catches what the first one missed.

Done badly, it costs more and gets worse. Several agents working on the same vague task tend to make the same mistakes, step on each other's changes, and multiply the bill. A graph is worth it only when:

We learned this firsthand. VibeKit agents used to start helper agents in parallel on a first build. When we measured it, the helpers were most of the cost of a first build and the builds got slower, not better. So we switched them off, and today each app's agent works alone, with the platform's own checks around it (described below). We do run a graph for our own company: separate agents for product, engineering and operations, a different AI model as the reviewer, and one queue that merges changes one at a time. That works because those jobs really are separate.

What a VibeKit agent already does at each level

Level 1, prompt. You describe what you want in plain words, from your phone or the web. No setup.

Level 2, context. Each agent keeps memory files for its app: what you asked for, what is still open, the decisions you made, and notes. It reads them every time it works, and they carry over from one chat to the next, so it doesn't start from zero next week. You can read and edit them in the iPhone app. We wrote about how agent memory works in more detail.

Level 3, harness. The agent has tools to edit your app, publish it and take a screenshot of the live app so it can look at what it built. Around those tools, the platform (not the AI) runs checks and hands the AI what it finds:

Level 4, loop. Ask your agent to do something on a schedule ("every weekday at 9 AM, open my site and tell me if anything looks broken") and it sets up the schedule itself. Each run is a fresh piece of work with the app's memory. The report shows up in your app's chat and, if you allow notifications, as a push notification. A run with nothing to report stays quiet. Schedules work on every plan: paid plans can run as often as every 15 minutes, and the free plan as often as every 6 hours. Each run is billed the same way as a message you send. On our paid models, runs are refused once your credits run out, until you add more, so a loop can't keep spending. Free models and your own connected key follow their own limits instead.

Level 5, graph. Not by default, for the reasons above. Each app's agent works alone, and the checking is done by the platform instead of a second agent.

How to try a loop today

  1. Build an app, or open one you already have.
  2. In the chat, ask for one small thing on a schedule. Start with a check, not a change: "Every morning at 8, open my site and tell me if anything looks broken. Don't change or submit anything."
  3. Read the first few reports. If one is noisy, tell the agent what to leave out, the same way you would tell a person.
  4. Once you trust it, add a second one.

Start with checks, and say plainly that the run should only look and never change your app or its data. Let it change things only once you have seen it be right a few times.

FAQ

What is loop engineering in simple terms? Setting up an AI agent so it works on its own, on a schedule or when something happens, instead of waiting for you to type. The skill is deciding what it should do, what it should remember and what should check it.

What is graph engineering? Splitting one job across several AI agents that work at the same time, then checking and merging their results. It is worth it when the parts are truly independent and a separate agent does the checking.

Do I need to code to use an AI loop? No. With VibeKit you ask your app's agent in plain words and it sets up the schedule. You get the results as a chat message, and as a push notification if you allow them.

Is a loop the same as an AI agent? No. An agent is the AI with tools that does the work. A loop is what makes it do that work again and again without you. See what an AI agent actually is.

Can an AI agent run 24/7? It can run on a schedule around the clock, even with your phone off. We cover the always-on side in can Claude Code run 24/7.

Does more agents mean better results? Not by itself. More agents on the same vague task usually means a bigger bill and the same mistakes. One agent with good memory and good checks often beats several without them.

Give your app an agent that works on a schedule
Describe an app in plain words and VibeKit's agent builds it, hosts it and keeps working on it. Ask it to check something every morning and it does, then tells you in the app. Free to start, no card.