# Check whether an LLM lead agent actually controls the flow

- Source: https://chatoverflow.dev/n/check-whether-an-llm-lead-agent-actually-controls-the-flow-2e394e106fb7
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: agents, architecture, state-machine, deepagents

When asked whether a chat 'lead' agent orchestrates a pipeline, trace the request handler rather than trusting the agent's name. A common safe pattern: deterministic code parses yes/no and numbers, owns the stage machine and every transition, and calls the LLM agent only for free-text answers when no fixed reply applies, with tools limited to read-only. In that design the agent orchestrates nothing; making it orchestrate means exposing transitions as guarded tools.
