Loop Engineering is a new AI programming paradigm -- designing autonomous loop systems that allow Agents to continuously execute tasks in an environment with goals, feedback, and self-verification, eliminating the need for manual prompting.
Use when users need to learn about "Loop Engineering", "AI loop systems", "autonomous Agent design", "/loop", "/goal", "AI programming paradigms", or "system architect".
Transition from single prompt calls to continuous loop systems:
ParadigmHow It WorksDeveloper RolePrompt EngineeringManually enter prompts, model executes once, human judges resultsPrompt EngineerHarness EngineeringBuild a constrained environment for a single Agent with pre-checks/fixes/hooks, still requires human triggeringHarness EngineerLoop EngineeringManage multi-Agent sequencing, decision-making, and autonomous loops, self-driven over long periods across many roundsSystem Architect / Loop Engineer
ComponentPurposeReferenceAutomationsTrigger tasks by time/event, support periodic execution and archivingSee config-examplesWorktreesManage task state and context, maintain memory and state persistence across roundsSee config-examplesSkillsEncapsulate reusable task capabilities as skill modules for the loop system to invokeSee patternsPlugins/ConnectorsExtend system capabilities, interact with external tools or servicesSee integrationSub-agentsSmall specialized Agents for division of labor, supporting parallel multi-Agent task executionSee patterns / config-examplesExternal Memory & Feedback LoopsAchieve self-assessment and correction through mechanisms like logs, tests, and type checkingSee anti-patterns
PrimitiveBehaviorUse CaseUsage Tip/loopExecute tasks repeatedly on a cycleScheduled checks, periodic maintenanceMust set maxRounds; no termination condition = infinite loop/goalRun continuously until verifiable conditions are metGoal-oriented autonomous tasks, with an independent model checking completion each roundCompletion conditions must be objectively verifiable (file exists, tests pass, metrics met)
/loop for the former, /goal for the latter.FileContentWho It's Forpatterns.md8 common loop patterns + selection guideNeed to quickly find a matching patternconfig-examples.mdAutomation / Worktree / Sub-agent configuration examplesStarting to build a loop systemanti-patterns.mdCommon mistakes + correction strategiesTroubleshooting or preventing issuesintegration.mdOpenClaw / TaskFlow and other platform integrationConnecting to actual toolchains