CleanShot 2026-04-08 at 08.36.54@2x.png

structure|1️⃣ 三级笔记、思想框架

核心论点

Simon Willison 提出 designing agentic loops(设计 agent 循环)是 AI 时代一项关键的新技能。Coding agent 的本质是「在循环中运行工具以达成目标」的暴力搜索器——只要你能把问题还原为一个清晰的目标和一组可迭代的工具,agent 就能暴力破解出有效方案。

My preferred definition of an LLM agent is something that runs tools in a loop to achieve a goal. The art of using them well is to carefully design the tools and loop for them to use.


一、YOLO Mode:放手让 agent 跑的艺术与风险

YOLO mode 的三大风险

  1. 恶意 shell 命令删除/损坏重要文件
  2. 数据窃取攻击(源代码、环境变量中的 secrets)
  3. 机器被当作攻击跳板(DDoS、伪装来源)

三种应对策略

  1. 安全沙箱:Docker / Apple container,限制文件、secrets、网络访问
  2. 用别人的电脑(Simon 最推荐):GitHub Codespaces、Code Interpreter、Codex Cloud——出了事是别人的机器在烧 CPU
  3. 冒险上路:多数人的实际选择,靠运气和人工兜底

Anthropic 官方建议 Safe YOLO mode:在无网络容器中用 --dangerously-skip-permissions,锁定可访问的 trusted hosts 白名单防止代码外泄。


二、为循环挑选正确的工具


三、颁发最小权限的凭证


四、什么时候该设计 agentic loop?

The value you can get from coding agents and other LLM coding tools is massively amplified by a good, cleanly passing test suite.


五、这仍是一个非常新的领域


思想框架总结

Simon 提出的 agentic loop 设计框架可以概括为四步:

  1. 解锁 YOLO mode:找到安全(enough)的方式让 agent 自主运行
  2. 选对工具:为 agent 配备正确的 shell 命令 / CLI 工具 / AGENTS.md 指引
  3. 最小权限凭证:只给 agent 完成任务所需的最小访问权限和预算
  4. 匹配正确问题:有清晰成功标准 + 需要反复试错的问题,才值得设计 agentic loop

贯穿全文的底层逻辑:agent = 暴力搜索器,你的工作不是写代码,而是设计搜索空间(工具 + 循环 + 安全边界),让 agent 在其中高效地暴力求解。

concepts|2️⃣ 关键概念、概念网络

一、 核心概念解析 (Core Concepts)

二、 概念网络 (Concept Network)

agentic reading|3️⃣ 费曼 x3