← 返回
AI智能 中文

Loop

Run iterative agent loops until success criteria are met. Controlled autonomous iteration.
运行迭代智能体循环直至满足成功标准。受控的自主迭代。
ivangdavila
AI智能 clawhub v1.0.2 1 版本 99810.1 Key: 无需
★ 3
Stars
📥 2,042
下载
💾 88
安装
1
版本
#latest

概述

Data Storage

~/loop/
├── active.json         # Currently running loops
├── history/            # Completed loop logs
│   └── {loop-id}.json
└── learnings.md        # Cross-loop patterns

Create on first use: mkdir -p ~/loop/history

Scope

This skill:

  • ✅ Runs iterative attempts toward defined success criteria
  • ✅ Logs each iteration with learnings
  • ✅ Exits on success, max iterations, or unrecoverable error
  • ❌ NEVER makes Git commits automatically
  • ❌ NEVER deploys to production
  • ❌ NEVER modifies system configuration
  • ❌ NEVER runs indefinitely (max 10 iterations hard limit)

Quick Reference

TopicFile
-------------
Loop examplesexamples.md
Memory between iterationsmemory.md

Core Rules

1. Pattern

Task + Criteria → Execute → Verify → [Pass? Exit : Retry]

2. Required Setup

ElementRequiredExample
----------------------------
TaskYes"Fix failing tests"
Success criteriaYes"All tests pass"
Max iterationsDefault: 5Max: 10
Verify commandRecommendednpm test

3. When to Propose

  • Task has clear success criteria but uncertain path
  • Previous attempt failed but error is fixable
  • User says "keep trying until..."

NOT for: One-shot tasks, undefined goals, exploratory work

4. Each Iteration

  1. Fresh context — Only carry: task, criteria, count, learnings
  2. Execute — Attempt the task
  3. Verify — Check success criteria
  4. Record — Append to history: what worked, what failed
  5. Decide — Pass? Exit. Fail? Retry if under limit.

5. Stopping Conditions

  • ✅ Success criteria met
  • ❌ Max iterations reached
  • ⚠️ Unrecoverable error (missing dependency, permission denied)

6. On Failure

If max reached without success:

  • Summarize all attempts
  • Identify common failure pattern
  • Recommend manual intervention or different approach

7. Safety

  • Hard limit: 10 iterations maximum
  • No destructive actions without explicit per-action approval
  • Log everything to ~/loop/history/

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-28 22:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 213,006
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 711 📥 243,717
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,485