~/wiki

Loops Paradigm

Mis à jour le 2025-01-05Confiance : high
loopsagent-controliterationverificationgoal-orientedstate-machinesautonomycoding-agentsorchestrationoutcome-first-promptinghuman-checkpointsbounded-autonomythread-hygieneindustry-consensusclaude-code-retrospectivelangchain-rubricsmeasurable-outcomesauto-modeverification-criteria

Dominant agent control methodology emphasizing goal-oriented iteration over one-shot prompting. Agents receive clear goals, verification criteria, and iteration structure rather than single-attempt instructions. Has become the industry consensus approach for coding agents and complex task orchestration as of June 2026.

Core Principles

Goal-Oriented Structure: Agents are given explicit goals rather than step-by-step instructions, allowing autonomous path-finding within defined boundaries.

Verification Criteria: Each iteration includes clear success/failure conditions and measurable outcomes for objective assessment.

Bounded Autonomy: Human checkpoints remain essential outside easily verifiable domains, preventing runaway execution.

Thread Hygiene: Management of context accumulation across iterations to prevent performance degradation from overlong execution threads.

Industry Adoption

The loops paradigm has gained widespread adoption across major platforms:

  • Claude Code: Implemented auto-mode with retrospective analysis and verification routines
  • LangChain OSS: Developed evaluation rubrics for loop-based agent workflows
  • OpenAI Codex: Emphasized outcome-first prompting and approve-for-me defaults

Design Patterns

State Machines Over Naive Loops: Advanced implementations use state machine architectures rather than simple iteration, providing better control flow and error handling.

Measurable Outcomes: Emphasis on concrete, verifiable success criteria rather than subjective quality assessments.

Orchestration Focus: Agent ergonomics improvements around verification, observability, and workflow management.

Criticisms and Limitations

Despite widespread adoption, practitioners have identified important caveats:

  • Risk of over-reliance on loops without proper human oversight
  • Performance degradation in overlong execution threads
  • Need for domain-specific verification strategies
  • Importance of bounded autonomy to prevent harmful autonomous actions

Infrastructure Support

The paradigm has driven infrastructure developments:

  • Observability dashboards for agent execution monitoring
  • Isolated, inspectable environments for safe iteration
  • Multiplayer canvas editing for collaborative agent workflows
  • Sandboxing solutions for contained execution environments

See also