正在打开每日关注
正在打开每日关注
以契约、触发器、验证器和记忆构建可持续运行的 Agent 工作循环。
How to run your whole workday on loops instead of prompts 📁 loop-engineering ┃ ┣📁 Contract ┃ ┣📁 /claude-md ┃ ┣📁 /house-rules ┃ ┣📁 /tone-and-scope ┃ ┗📁 /stop-conditions ┃ ┣📁 Loop Types ┃ ┣📁 /turn-based ┃ ┣📁 /goal-based ┃ ┣📁 /time-based ┃ ┣📁 /proactive ┃ ┗📁 /auto-mode ┃ ┣📁 Triggers ┃ ┣📁 /schedule ┃ ┣📁 /on-file-change ┃ ┣📁 /on-pr-open ┃ ┣📁 /on-ci-fail ┃ ┣📁 /on-new-issue ┃ ┗📁 /manual-kickoff ┃ ┣📁 Verifiers ┃ ┣📁 /verifier-md ┃ ┣📁 /adversarial-reviewer ┃ ┣📁 /fresh-context-grader ┃ ┣📁 /test-runner ┃ ┣📁 /lighthouse-check ┃ ┗📁 /diff-sanity ┃ ┣📁 Skills ┃ ┣📁 /skill-creator ┃ ┣📁 /self-check ┃ ┣📁 /research-sweep ┃ ┣📁 /refactor-pass ┃ ┣📁 /doc-sync ┃ ┗📁 /skill-scout ┃ ┣📁 Graph Shapes ┃ ┣📁 /chain ┃ ┣📁 /diamond ┃ ┣📁 /router ┃ ┣📁 /cycle ┃ ┗📁 /merge-verify ┃ ┣📁 Isolation ┃ ┣📁 /git-worktrees ┃ ┣📁 /sandbox-run ┃ ┣📁 /branch-per-loop ┃ ┗📁 /blast-radius ┃ ┣📁 Budget ┃ ┣📁 /turn-cap ┃ ┣📁 /model-routing ┃ ┣📁 /cheap-model-first ┃ ┣📁 /token-report ┃ ┗📁 /cost-per-run ┃ ┣📁 Memory ┃ ┣📁 /company-brain ┃ ┣📁 /past-runs ┃ ┣📁 /decisions-log ┃ ┣📁 /known-failures ┃ ┗📁 /context-handoff ┃ ┣📁 Hooks ┃ ┣📁 /pre-commit ┃ ┣📁 /post-run ┃ ┣📁 /on-error ┃ ┗📁 /notify-me ┃ ┣📁 Daily Loops ┃ ┣📁 /ci-babysitter ┃ ┣📁 /pr-triage ┃ ┣📁 /inbox-sweep ┃ ┣📁 /bug-hunt ┃ ┣📁 /dependency-watch ┃ ┗📁 /morning-report ┃ ┗📁 Ops ┣📁 /run-sh ┣📁 /loop-registry ┣📁 /failure-postmortem ┣📁 /pilot-before-scale ┗📁 /weekly-review
是什么 这条推文把“让 Agent 完成一天工作”抽象为 loop-engineering:不再把每次工作寄托在一条长提示词上,而是把契约、触发器、执行循环、验证器、记忆、预算和运维组织成可复用目录。它更像一张方法论或系统蓝图,而不是一个已展示实现的仓库或产品。
核心设计 其隐含链路是“触发→按目标或时间运行→在隔离环境中执行→测试、对抗审查与差异检查→记录结果并交接上下文→满足停止条件或通知人”。chain、diamond、router、cycle 等图形对应串行、分支、路由与迭代;cheap-model-first、turn-cap、cost-per-run 则把成本纳入控制面。
关键洞察 价值在于把 Agent 从一次性问答升级为可观测、可验证、可暂停的工作流。CI 失败、PR、Issue、文件变化等事件能成为持续改进入口,past-runs、known-failures 和 decisions-log 让系统形成组织记忆。最值得借鉴的是把停止条件、验证责任和 blast radius 在设计阶段显式化。
边界与风险 目录不等于可运行架构,推文没有说明状态存储、权限模型、重试幂等、回滚、人审门槛或多循环冲突处理;自动验证也可能漏报或误报。实际落地应先用单一场景做 pilot,定义成功指标和最大成本,再扩展到日常运营。