@Xudong07452910: 开源项目推荐:loop-engineering —— 让你的 AI 编码 Agent 拥有自循环与智能编排能力的实用框架 loop-engineering 是目前很火的概念,该项目提供了实用模式、启动器和 CLI 工具,帮助开发者设计系统…

X AI KOLs Timeline 工具

摘要

loop-engineering 是一个开源框架,为 AI 编码代理(如 Claude Code、Codex、Cursor)提供自循环和智能编排能力,包含 7 个生产级循环模式、实用 CLI 工具和五大数据块设计,帮助开发者从手动提示转向系统化自动化。

开源项目推荐:loop-engineering —— 让你的 AI 编码 Agent 拥有自循环与智能编排能力的实用框架 loop-engineering 是目前很火的概念,该项目提供了实用模式、启动器和 CLI 工具,帮助开发者设计系统来提示和编排 AI 编码代理(如 Claude Code、Cursor、Grok、Codex 等)。 受 Addy Osmani 和 Boris Cherny(Claude Code 负责人)理念启发,让 Agent 从“被动响应提示”转向“主动循环”完成目标,实现可持续的自动化。 核心亮点: 1. 7 个生产级循环模式(如 Daily Triage、PR Babysitter、Issue Triage),支持 L1(仅报告)→ L2(辅助)→ L3(无人值守)渐进 rollout 2. 实用 CLI 工具:loop-init(快速启动项目)、loop-audit(评估循环就绪度)、loop-cost(估算 token 消耗) 3. 五大数据块设计:自动化/调度、工作树、技能、插件/连接器、子代理 + 内存/状态 4. 内置 checklist、failure modes、anti-patterns 和 MCP 集成 5. 支持 Claude Code、Cursor、Codex 、Grok等多平台,强调工程化与可控性 该项目深入“循环工程”,让你的 AI 编码 Agent 系统更自主、可控、可持续。特别适合使用 Claude Code、Codex 等 AI 编码代理的开发者、DevOps 工程师和想从手动提示转型为系统设计师的团队。 https://github.com/cobusgreyling/loop-engineering… #AIAgent #ClaudeCode #LoopEngineering #AI工具 #开源项目 #codex
查看原文
查看缓存全文

缓存时间: 2026/06/22 07:39

开源项目推荐:loop-engineering —— 让你的 AI 编码 Agent 拥有自循环与智能编排能力的实用框架

loop-engineering 是目前很火的概念,该项目提供了实用模式、启动器和 CLI 工具,帮助开发者设计系统来提示和编排 AI 编码代理(如 Claude Code、Cursor、Grok、Codex 等)。

受 Addy Osmani 和 Boris Cherny(Claude Code 负责人)理念启发,让 Agent 从“被动响应提示”转向“主动循环”完成目标,实现可持续的自动化。

核心亮点:

  1. 7 个生产级循环模式(如 Daily Triage、PR Babysitter、Issue Triage),支持 L1(仅报告)→ L2(辅助)→ L3(无人值守)渐进 rollout
  2. 实用 CLI 工具:loop-init(快速启动项目)、loop-audit(评估循环就绪度)、loop-cost(估算 token 消耗)
  3. 五大数据块设计:自动化/调度、工作树、技能、插件/连接器、子代理 + 内存/状态
  4. 内置 checklist、failure modes、anti-patterns 和 MCP 集成
  5. 支持 Claude Code、Cursor、Codex 、Grok等多平台,强调工程化与可控性

该项目深入“循环工程”,让你的 AI 编码 Agent 系统更自主、可控、可持续。特别适合使用 Claude Code、Codex 等 AI 编码代理的开发者、DevOps 工程师和想从手动提示转型为系统设计师的团队。

https://github.com/cobusgreyling/loop-engineering… #AIAgent #ClaudeCode #LoopEngineering #AI工具 #开源项目 #codex


cobusgreyling/loop-engineering

Source: https://github.com/cobusgreyling/loop-engineering

Loop Engineering

Explore the Showcase

GitHub stars loop-audit dogfood loop-audit npm loop-init npm loop-cost npm MIT Pages

Loop Engineering

Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead.

For developers using Grok, Claude Code, Codex, Cursor, and other AI coding agents.

A loop is a recursive goal: you define a purpose and the AI iterates (often with sub-agents, verification, and external state) until the goal is complete or the loop decides to hand off to you.

Loop Engineering — Design the system that prompts your agents

→ Interactive showcase + pattern picker
→ Loop Engineering essay (Substack)
Canonical essay by Addy Osmani

Contents

Quick Links

Start hereDescription
Loop Engineering essayThe concept, primitives, and Grok mapping — read this first
Pattern PickerWhich loop to run first — start here if unsure
Primitives MatrixGrok vs Claude Code vs Codex — bookmark this
Loop Design ChecklistShip readiness rubric
Patterns7 production patterns + interactive picker
StartersClone-and-run kits (Grok, Claude Code, Codex)
loop-auditLoop Readiness Score CLI (v1.4 + activity detection) — npx @cobusgreyling/loop-audit . --suggest
loop-initScaffold starters + budget/run-log (v1.2) — npx @cobusgreyling/loop-init . --pattern daily-triage --tool grok
loop-costToken spend estimator — npx @cobusgreyling/loop-cost
StoriesReal wins and honest failures

Why This Matters

Peter Steinberger:

“You shouldn’t be prompting coding agents anymore. You should be designing loops that prompt your agents.”

Boris Cherny (Head of Claude Code at Anthropic):

“I don’t prompt Claude anymore. I have loops running that prompt Claude and figuring out what to do. My job is to write loops.”

The leverage point has moved from crafting individual prompts to designing the control systems that orchestrate agents over time.

The Five Building Blocks + Memory

PrimitiveJob in the Loop
Automations / SchedulingDiscovery + triage on a cadence
WorktreesSafe parallel execution
SkillsPersistent project knowledge
Plugins & ConnectorsReach into your real tools (MCP)
Sub-agentsMaker / checker split
+ Memory / StateDurable spine outside any conversation

Full detail: docs/primitives.md · Cross-tool matrix: docs/primitives-matrix.md

Visual Overview

The Five Building Blocks + Memory — Loop Engineering

Anatomy of a Loop (Mermaid)

flowchart LR
    A[Schedule / Automation] --> B[Triage Skill]
    B --> C[Read + Write STATE / Memory]
    C --> D[Isolated Worktree]
    D --> E[Implementer Sub-agent]
    E --> F[Verifier Sub-agent<br/>tests + gates]
    F --> G[MCP / Git / Tickets]
    G --> H{Human Gate?}
    H -->|safe / allowlisted| I[Commit / PR / Action]
    H -->|risky / ambiguous| J[Escalate to human<br/>with full context]
    I --> A
    J --> A

This reference repo now runs its own validate-patterns + audit workflows on every push/PR (see .github/workflows/). We also added LOOP.md describing the loops that will maintain it.

Patterns

PatternCadenceStarterWeek 1Token cost
Daily Triage1d–2hminimal-loopL1 reportLow
PR Babysitter5–15mpr-babysitterL1 watchHigh
CI Sweeper5–15mci-sweeperL2 cautiousVery high
Dependency Sweeper6h–1ddependency-sweeperL2 patch-onlyMedium
Changelog Drafter1d or tagchangelog-drafterL1 draftLow
Post-Merge Cleanup1d–6hpost-merge-cleanupL1 off-peakLow
Issue Triage2h–1dissue-triageL1 propose-onlyLow

Not sure which to pick? Try the interactive picker or pattern-picker.

Machine-readable index: patterns/registry.yaml (7 patterns)

Getting Started (5 minutes)

# 1. Scaffold a starter (or copy manually — see starters/)
npx @cobusgreyling/loop-init . --pattern daily-triage --tool grok

# 2. Estimate token spend for your cadence
npx @cobusgreyling/loop-cost --pattern daily-triage --level L1

# 3. Audit readiness (budget + run-log now scored)
npx @cobusgreyling/loop-audit . --suggest

# 4. See scores climb: empty → L1 → L2
bash scripts/before-after-demo.sh

# 5. Start report-only (Grok example)
/loop 1d Run loop-triage. Update STATE.md. No auto-fix in week one.

All three CLIs publish to npm from tagged releases — see docs/RELEASE.md. No clone required.

Develop from source (monorepo contributors):

cd tools/loop-init && npm ci && npm test && node dist/cli.js /path/to/project --pattern daily-triage --tool grok
cd tools/loop-audit && npm ci && npm test && node dist/cli.js /path/to/project --suggest
cd tools/loop-cost && npm ci && npm test && node dist/cli.js --pattern ci-sweeper --cadence 15m

Phased rollout: L1 report → L2 assisted fixes → L3 unattended — see loop-design-checklist.

Examples by Tool

Operating & Safety

Caveats

Loop engineering amplifies judgment — both good and bad.

  • Token costs can explode with sub-agents and long-running loops.
  • Verification is still on you. Unattended loops make unattended mistakes.
  • Comprehension debt grows faster unless you read what the loop ships.
  • Two people can run the same loop and get opposite results. The loop doesn’t know. You do.

Addy Osmani:

“Build the loop. But build it like someone who intends to stay the engineer, not just the person who presses go.”

Contributing

Share production patterns, tool mappings, and failure stories. See CONTRIBUTING.md, adopters, and GitHub Discussions.

Sources

License

MIT


Practical, tool-aware reference for loop engineering — patterns you can clone, checklists you can ship against, and stories that include what broke.

Essay · Showcase · Cobus Greyling

相似文章

@QingQ77: Loops 提供 100 个精心策划的 AI 驱动自动化循环模板,覆盖软件开发、数据科学、内容创作、产品运营、学习管理等领域。 https://github.com/jwangkun/loops 让 AI 助手自己反复"干→查→修→再干"…

X AI KOLs Timeline

Loops 是一个包含 100 个 AI 驱动自动化循环模板的开源项目,覆盖软件开发、数据科学、内容创作等领域,支持 Claude Code、Cursor、Trae 等 AI 编程助手,通过“执行→检查→修复→重复”的闭环模式实现自主任务完成。

@cellinlab: https://x.com/cellinlab/status/2064144608242679822

X AI KOLs Timeline

这篇文章介绍了 Loop Engineering 的概念——不再直接给 AI agent 写 prompt,而是设计一个系统(loop)来递归地让 agent 迭代工作,直到任务完成。文章详细对比了 Claude Code 和 Codex 在 automations、worktrees、skills、sub-agents 等五个构建块上的实现,认为这可能是未来与 coding agent 协作的趋势,但仍需警惕 token 成本和 AI slop 问题。