Graphs and teams
When one loop isn't enough, the patterns are planners, sub-agents, agent teams, kanban boards and "graph engineering".
At Layer 4, loops orchestrate other loops. The motivation is usually one of three:
- Context isolation. A sub-agent explores a codebase or runs a noisy tool and returns a summary, so the main agent's context stays clean. Google's subagents in Gemini CLI were introduced with exactly this argument: specialized instructions and tools, isolated contexts, no accumulation of intermediate results.
- Parallelism. Several agents work at once on independent parts.
- Specialisation. Planner, implementer, reviewer and tester each get a narrower job.
The shapes in the wild
A lead agent spawns workers and collects results. Codex spawns parallel sub-agents with a configurable thread cap; Antigravity runs async background sub-agents and hands control back to you immediately (Antigravity I/O deep dive, Morph comparison).
Hermes points users to kanban for many independent tasks with dependencies or handoffs; a single card can carry its own --goal and keep iterating (docs). Each card is a goal loop and the board is the orchestrator.
Google's Antigravity Teamwork runs autonomous agent teams on long-horizon challenges for hours or days (Google). The Antigravity CLI's /boost runs deeper multi-agent reasoning loops (Antigravity CLI reference).
A fixed pipeline of specialised loops. See Maker/checker.
"Graph engineering"
In July 2026 Peter Steinberger asked on X whether the field had moved "from loops to graphs". The post reportedly drew millions of views and a wave of "graph engineering" articles (Towards Data Science, Louis Bouchard, Zero Future Tech). Hamel Husain's response, "Loop Engineering Is Dead", was widely read as a joke (WiLine). contested
The sober take, shared by most commentators:
- A loop is a graph with one node that points back at itself. Graphs contain loops; they don't replace them (Analytics Vidhya).
- Loop engineering is about making one agent reliable; graph engineering is about coordinating many. They're different layers, not successive eras.
- It's not new. AutoGen, Google's ADK and LangGraph supported multi-agent graphs well before the term trended (Data Engineer Things). Some argue the shape of the agent graph matters less than the infrastructure underneath it (iii.dev).
What gets harder with more loops
- Shared state. Who owns the truth when five agents edit the same repo? Worktrees help for files; nothing standard exists for goals.
- Silent failures between agents. An arXiv study of multi-agent systems documents messages that get "silently delivered" across channel boundaries but never acted on.
- Ping-pong. The most-cited cost horror story is two agents in a four-agent setup sending requests back and forth for 264 hours (AI agent cost horror stories). anecdotal
- Supervision. Claude Code's Agent View, a single screen showing every session and which need input, exists because people lost track (Cobus Greyling).
Ambient loops
Heartbeats, /loop, routines and cron. These are agents that wake themselves up, and they're what makes an agent feel "always on".
Loops across environments
How today's harnesses implement goal loops, scheduled loops and multi-agent setups. They converged on a common design and diverge in the details that matter.