编程

Loop Engineering

试用

Loop Engineering AI programming paradigm guide. Covers the core concepts of transitioning from single prompt calls to autonomous loop systems, key components, loop patterns, configuration examples

它能做什么

Loop Engineering AI programming paradigm guide. Covers the core concepts of transitioning from single prompt calls to autonomous loop systems, key components, loop patterns, configuration examples, and anti-patterns.

技能文档

Loop Engineering

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 Cases

Use when users need to learn about "Loop Engineering", "AI loop systems", "autonomous Agent design", "/loop", "/goal", "AI programming paradigms", or "system architect".

Core Concepts

Transition from single prompt calls to continuous loop systems:

ParadigmHow It WorksDeveloper Role
Prompt EngineeringManually enter prompts, model executes once, human judges resultsPrompt Engineer
Harness EngineeringBuild a constrained environment for a single Agent with pre-checks/fixes/hooks, still requires human triggeringHarness Engineer
Loop EngineeringManage multi-Agent sequencing, decision-making, and autonomous loops, self-driven over long periods across many roundsSystem Architect / Loop Engineer

Key Components

ComponentPurposeReference
AutomationsTrigger tasks by time/event, support periodic execution and archivingSee config-examples
WorktreesManage task state and context, maintain memory and state persistence across roundsSee config-examples
SkillsEncapsulate reusable task capabilities as skill modules for the loop system to invokeSee patterns
Plugins/ConnectorsExtend system capabilities, interact with external tools or servicesSee integration
Sub-agentsSmall specialized Agents for division of labor, supporting parallel multi-Agent task executionSee patterns / config-examples
External Memory & Feedback LoopsAchieve self-assessment and correction through mechanisms like logs, tests, and type checkingSee anti-patterns

/loop and /goal Primitives

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)

Quick Start

  1. Define the goal: Do you want scheduled patrols, or are you pursuing a verifiable objective? Use /loop for the former, /goal for the latter.
  2. Choose a pattern: Browse common loop patterns to find a design that matches your scenario.
  3. Configure components: Refer to configuration examples to build the loop skeleton.
  4. Avoid pitfalls: Read anti-patterns to prevent issues in your design early on.
  5. Platform integration: Refer to platform integration to connect with your actual toolchain.

Design Principles

  • Goal definition: Specify verifiable completion conditions to prevent Agents from falling into meaningless loops
  • Feedback mechanisms: Enable Agents to self-assess through tests, validation, logs, and other mechanisms
  • State management: Use Worktrees to maintain cross-round context and memory
  • Modularity: Encapsulate reusable capabilities as Skills and Plugins
  • Division of labor: Reasonably partition Sub-agent responsibilities, parallelize to improve efficiency
  • Graceful termination: Set timeouts, max rounds, and abnormal exit conditions

File Navigation

FileContentWho It's For
patterns.md8 common loop patterns + selection guideNeed to quickly find a matching pattern
config-examples.mdAutomation / Worktree / Sub-agent configuration examplesStarting to build a loop system
anti-patterns.mdCommon mistakes + correction strategiesTroubleshooting or preventing issues
integration.mdOpenClaw / TaskFlow and other platform integrationConnecting to actual toolchains

相关技能

Design the engineered loop for a medium/large (semi-)autonomous AI-coding task by decomposing it into gated sub-loops, emitted as a runnable .loop/ runbook. Use-when: "design an agent loop", "set up an autonomous / self-running agent workflow", "$loop-constructor". It DESIGNS the loop; it does NOT execute it.

1 次安装

Use when an AI coding agent needs bounded development loops, persistent project-local Docs/ state, context budgeting, environment escalation rules, safe stop...

作者 EnglandTong

Autonomous task loop engine — self-verifying, goal-driven, human-out-of-loop. Triggered by: loop, team-loop, 迭代研发, 迭代. Human sets a quantifiable goal (e.g.,...

1 星标

Design an engineered gated loop for a medium/large (semi-)autonomous AI-coding task executed with the Codex CLI (single-agent, `codex exec`), emitted as a runnable .loop/ runbook. Use-when: "design an agent loop for codex", "$loop-constructor-codex". It DESIGNS the loop; it does NOT execute it.

Loops (loops.so). Use this skill for ANY Loops request — reading, creating, updating, and deleting data. Whenever a task involves Loops, use this skill inste...

8 次安装

Improve important deliverables by looping them through multiple isolated AI reviewers, each evaluating from a different angle, until all reviewers give full...

2 次安装1 星标