M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

Agent loop

Concept

Control cycle in which an AI agent plans, calls tools, observes the result and repeats until the goal is reached or it must hand over to a human.

✦ CONCEPTAgent loopM365.FM
Title graphic: Agent loop (Concept)

Relationships

Agent loop is closely related to AI agent, Model Context Protocol (MCP), Human in the loop, Azure Logic Apps and Agent harness.

Agent loop is one of the topics of Tore Nestenius, Rafsan Huseynov and Tiago Costa.

Description

The agent loop, also called the agentic loop or Agent-Schleife, is the control cycle in which an AI agent plans a step, calls a tool, observes the result and repeats until the goal is reached or the work must be handed to a human. It is the core working pattern of an AI agent, and it is what separates an agent from a single model call: the model does not only produce one answer but keeps deciding what to do next based on what happened in the previous step.

The loop is typically described as a sequence of recurring stages. The episode "Microsoft AI Agent Harness - Simply Explained" says the Microsoft AI Agent operates through a process known as the agent loop and that it follows a ReAct pattern, where the model continuously reasons, takes action by invoking a tool, observes the outcome, and repeats this cycle. According to that episode, this iterative approach lets the agent adapt and respond to varying situations, which strengthens its problem-solving capabilities. The Agent harness is the software layer that runs this loop and supplies tools, permissions and limits, so the two concepts are closely related.

A second description comes from the Dynamics 365 context. The episode "Dynamics 365 Agents - Simply Explained" frames the basic agent process as: notice, understand, act, check, and hand over. The agent notices a defined event such as a new message or lead, understands the situation using information and rules it is permitted to access, performs allowed actions, checks whether the result remains within its boundaries, and hands the work to a person when judgment or approval is needed. The same episode contrasts Copilot, described as an assistant sitting beside a user, with an agent, described as a specialized team member with a narrow job description, specific permissions and clear rules.

The loop also appears in runtime and workflow topics. In "Microsoft AI Agent Runtimes: Beyond Enterprise Chatbots", a runtime agent uses an orchestration and workflow engine to coordinate the agent loop, which includes getting the user's input, calling models, using tools, updating state, and making decisions. The episode says the agent can handle multi-step tasks and branching workflows, and can ask for human approval when needed. This connects the loop to Human in the loop, the point at which the cycle pauses and a person decides.

Azure Logic Apps is the other recurring link. In "Azure Logic Apps for Multi-Agent AI Orchestration", the agent loop is listed among effective orchestration strategies: workflows think and act in cycles until they reach a goal. The same episode lists integration with enterprise systems through connectors and support for both human and autonomous execution, and it advises identifying where human input is needed and building those checkpoints into the orchestration. "Build Enterprise Automation with Azure Logic Apps" describes the agent loop feature as allowing a workflow to check progress and make decisions until it reaches a goal, alongside loops, parallel branches and conditional logic.

The Model Context Protocol (MCP) is related as one way to expose tools that the loop can call. In practice, decisions around an agent loop concern which tools the agent may invoke, what state is kept between iterations, what boundaries the agent checks its results against, and where the loop must stop and hand over to a person. The episodes treat these as design choices of the surrounding harness or orchestration layer rather than of the model itself.

Overview compiled with AI from M365.FM episodes and the facts on this page. You can improve it with the edit button below.

TypeConcept
KindArchitecture
Also known asAgentic loop, Agent-Schleife

Sessions on this topic (3)

Event sessions on Agent loop:

Key points about Agent loop

Key points about Agent loop from the episodes, each with its source episode:

Episodes about Agent loop

Episodes in which Agent loop is discussed:

Timeline of episodes about Agent loop

Articles about Agent loop (1)

Articles in which Agent loop is a topic:

Frequently asked questions

Questions marked with AI were written with AI from the facts on this page.

What is an agent loop? (AI)

It is the control cycle in which an AI agent plans a step, calls a tool, observes the result and repeats until the goal is reached or it hands over to a human. The episode "Microsoft AI Agent Harness - Simply Explained" describes it as following a ReAct pattern of reasoning, acting through a tool and observing the outcome.

How does the agent loop relate to human oversight? (AI)

The loop can pause for a person when judgment or approval is needed. "Dynamics 365 Agents - Simply Explained" describes the cycle as notice, understand, act, check, and hand over, and "Azure Logic Apps for Multi-Agent AI Orchestration" advises designing human checkpoints into the orchestration.

Where does Azure Logic Apps fit into the agent loop? (AI)

Azure Logic Apps offers an agent loop feature that lets a workflow check progress and make decisions until it reaches a goal, as described in "Build Enterprise Automation with Azure Logic Apps". It can also connect agents to enterprise systems through connectors.

How does AI change Azure Logic Apps integrations?

Integration has been deterministic: when this happens, do that. With AI in the integration layer, workflows can use agent loops to handle unexpected situations and move toward self-healing integrations. · From the episode: AI Turns Integration into an Organism as a Service — How Azure Logic Apps Are…

What is an agent loop cascade?

It is one of the failure scenarios discussed, where automated agents trigger one another in repeating loops. It shows how unmanaged automation can spiral without human involvement. · From the episode: Stop AI Agents from Breaking Microsoft 365 Governance

Relationship map of Agent loop: linked topics

Related topics in brief

Topics linked to Agent loop, each briefly explained:

All relationships of Agent loop, grouped by type of relationship:

Related to

All 5 topics related to Agent loop:

People working on this topic

All 3 people who work on Agent loop:

Glossary

Community wiki

Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.

Experts and companies for this topic

Community members with expertise in Agent loop:

Experts on related topics

Experts on topics related to Agent loop, each with the topic that connects them:

Sources

Maintained by Mirko Peters (Microsoft MVP) · Last updated: