9 Understanding the agentic loop
This chapter covers
- Peeling back the three agentic loop layers
- Looping with a deep research agent
- Multi-agent orchestration loops
- Building collaborative agentic loops
Way back in chapter 1, we explored the core agentic loop pattern, which we referred to as the SPAL (sense-plan-act-learn) process loop. In this chapter, we look beyond the internal agent loop to looping patterns that extend outside the agent. These patterns are used to formulate long-horizon, goal-driven agents, such as those involved in deep research or, more collectively, in what’s called the agent collaboration workflow.
Using agentic looping to empower agents introduces new levels of command and control in both single- and multi-agent systems. This chapter explores the three layers of the agent loop. These range from the internal loop (SPAL) we already know about to long-horizon goal execution to meta-guided looping in multi-agent systems. Along the way, we look at practical applications of each layer and how you can introduce these patterns into your agentic workflows.
9.1 Peeling back the three agentic loop layers
The internal loop (SPAL) is the first, or core, layer of an agent. This loop allows an agent to iterate, discover, reason, and execute tasks to complete goals. But two more agentic loop layers can extend the work of the agent: layer 2, the task loop, and layer 3, the meta loop.