# 策展 · X (Twitter) 🔥🔥🔥

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 作者：Jason Zhou (@jasonzhou1993) · 平台：X (Twitter) · 日期：2026-06-20

> 原始來源：https://x.com/jasonzhou1993/status/2067937943545897143

## 中文摘要

# 到底什麼是 Loop Engineer？以及如何真正落實設定

昨天凌晨一點左右，我們的程式庫突然湧入了一堆 PR（Pull Request）。這並不是因為我們的團隊熬夜加班。

這些 PR 來自不同的 Agent 迴圈：Agent 自動發現問題、領取任務、驗證變更，並在沒有人手動下達指令的情況下開啟 PR。

我們在 @SuperDesignDev 還有一個 SEO 迴圈，每天能產出 20 到 40 篇高品質的網頁。這些網頁即使我完全不插手，也已經在為公司帶來流量了。

![這是一張手寫風格的流程圖，說明了 AI 代理（Agent）的觸發機制與運作方式。](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/6eef62f2ef928aff.png)

<details class="chart-data"><summary>展開畫面重點</summary><div class="me-note">畫面以手寫字體呈現了一個系統架構概念圖，主要內容如下：
1. 左側標示「You prompt agent」，並有一箭頭指向右側的「trigger agent」。
2. 右側的「trigger agent」上方有多個箭頭匯入，分別標註了觸發來源：
   - 「Cron job」（定時任務）
   - 「Agent」
   - 「Webhooks」
   - 「???」（代表其他未知的觸發方式）</div></details>

這就是我想談的轉變：Loop Engineering（迴圈工程）：

> 別再把 Agent 當成需要你手動下達 Prompt 的工具，開始設計一套能夠自行決定要做什麼、執行任務、驗證結果，並隨時間不斷改進的系統。

一個好的迴圈不只是產生輸出，它會建立一套回饋系統，讓系統運作得越久就越有價值。

我想解釋我們是如何設定這些機制，讓它們產生複利效應。

## Agent harness 有兩個嵌套層級

![這是一張展示工作流程架構的示意圖，包含編排、記憶管理與執行階段。](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/979bf2f9841ff11f.png)

<details class="chart-data"><summary>展開畫面重點</summary><div class="me-note">圖片為手繪風格的流程架構圖，背景為黑色。上方區塊列出了系統的核心組件：
- Orchestration/workflow（編排/工作流）
- State &amp; memory (Task)（狀態與記憶（任務））
- init / Work Verification（初始化/工作驗證）
- Skills（技能）
- ...（省略符號）

下方區塊標示為「Execution」（執行），並搭配一個像素風格的圖示與一個長方形的輸入框/狀態框。圖中透過箭頭線條標示了系統內部的循環與資料流向。</div></details>

「Agent harness」這個詞聽起來很模糊，因為它幾乎涵蓋了模型本身以外的所有東西。

但我發現將其拆分為兩個層級會更有幫助：Agent 迴圈（Agent loop）+ 外層迴圈（Outer loop）。

1. **Agent 迴圈：協助 Agent 妥善完成特定任務**

內層迴圈就是大家熟悉的 Agent 執行環境（runtime），例如 Claude Code、Codex 等。

你給 Agent 一個任務，它會讀取相關的 context、使用工具、執行工作、檢查結果，並持續運作直到任務完成。這也是目前大多數 Agent 優化集中的地方：更好的 context 與指令、skill 與工具定義、任務拆解、工具使用。

這一層試圖回答的問題是：

> 給定這個任務，我們該如何協助 Agent 可靠地完成它？

但這仍然依賴於某個人來決定「這是一個值得做的任務」。這就是外層迴圈發揮作用的地方。

2. **外層迴圈：決定接下來該做什麼**

外層迴圈圍繞著 Agent 執行環境，它負責處理以下事項：

- 什麼事件應該觸發 Agent
- 跨 session 應該保留哪些狀態
- 不同 Agent 如何共享資訊
- 如何監控成果
- 系統如何隨時間變得更好

這一層試圖回答的問題是：

> Agent 接下來應該做什麼，系統又該如何從結果中學習？

這就是我們所說的 Loop Engineering。Loop Engineer 不只是為 Agent 撰寫 Prompt，他們是在設計一個環境，讓 Agent 能夠持續進行以下步驟：

1. 發現值得處理的事項
2. 進行調查
3. 採取行動
4. 記錄發生了什麼
5. 驗證是否有效
6. 利用該結果決定下一步

Agent 迴圈協助 Agent 執行，而外層迴圈則協助系統進行決策、學習並產生複利。

## 當迴圈共享 artifact 與 log 時，就會產生複利

![這是一張展示產品成長、客戶支援、SEO 與廣告投放四個核心業務領域之營運流程與訊號回饋的邏輯架構圖。](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/956844f8eaa8732e.jpg)

<details class="chart-data"><summary>展開畫面重點</summary><div class="me-note">圖片呈現了一個以「/signals」為核心的營運流程架構圖，包含四個主要區塊：

1. **Support（客戶支援）**：
   - 每 30 分鐘執行一次循環：回應支援票務（Respond support tickets）→ 記錄摩擦點與想法（Log frictions &amp; ideas）→ 監控效能（Monitor performance）。
   - 產生訊號：5 人詢問如何匯出（5 people asked how to export）。

2. **Product growth（產品成長）**：
   - 每 2 小時執行一次循環：分析產品數據與訊號（Product analytics + signal）→ 優先處理實驗（Prioritise experiments）→ 交付 PR（Deliver PR）。

3. **SEO（搜尋引擎優化）**：
   - 每天早上 9 點執行循環：分析數據（Analyse data）→ 研究主題（Research topics）→ 發布 SEO 頁面（Publish SEO pages）。
   - 產生訊號：/ai-wireframe-generator 獲得點擊但轉換率不佳（/ai-wireframe-generator get clicks but bad conversion）。

4. **Ads（廣告投放）**：
   - 每天早上 9 點執行循環：分析數據（Analyse data）→ 更新策略（Update strategy）→ 調整廣告活動（Adjust ads campaign）。
   - 產生訊號：/lovable-alternative CPC 表現良好（/lovable-alternative CPC is good）。

中心樞紐為「/signals」，匯集了來自各處的 Markdown 檔案（export_too_hidden.md、conversion_gap.md），並將這些訊號反饋至產品成長與廣告策略中。</div></details>

單一迴圈很有用，但真正有趣的是當多個迴圈可以互相學習時。

在我們公司，我們在支援（Support）、SEO、產品成長（Product growth）、廣告（Ads）等領域都有迴圈。每個迴圈都有自己的觸發條件、工作流程、工具與目標。

但它們都會寫入同一個共享的 artifact 系統。

例如，支援迴圈可能會注意到有五個人詢問如何匯出資料。

它會建立一個訊號（signal）：`/export-too-hidden.md`

```markdown
kind: signal
title: "Export gated behind Pro is a recurring friction / conversion point"
description: "Pricing friction, spawned (free, freq 5): users hit the export-is-Pro-only paywall (~769 hits/580 users), the cleanest Free->Pro trigger. Upgrade gate shipped."
category: friction
frequency: 6
segments: [free]
tags: [feedback, friction, pricing, export, conversion]

-----

# Detail
...


# Timeline
...
```

同時，SEO 迴圈可能會注意到某個頁面流量很高，但轉換率很差。

它會建立另一個訊號：`/conversion-gap-ai-wireframe-generator.md`

接著，產品成長迴圈可以同時讀取這兩個訊號以及產品分析資料。它可能會得出結論：匯出功能的問題比原始分析資料顯示的更嚴重；或者它可能會發現，透過特定 SEO 頁面進來的使用者，正遇到與支援團隊觀察到的相同的產品阻礙。

廣告迴圈可能會發現某個關鍵字點擊率很高，但缺乏對應的自然搜尋內容。這可以直接回饋給 SEO 迴圈。

這就是讓系統產生複利的原因。這些迴圈不再是孤立的自動化程式。

它們是在一個共享的知識庫上運作，這個知識庫記錄了企業正在學習的一切。

# 共享日誌（Brian）

![這是一張展示專案檔案結構規劃的示意圖，將檔案分為 Artifacts、Loop contract 與 LOGS.md 三大類別。](https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/bc7b1aea43f4f8a5.jpg)

<details class="chart-data"><summary>展開畫面重點</summary><div class="me-note">圖片呈現了一個名為「File structure」的檔案結構規劃，內容包含三個主要區塊：

1. **Artifacts**（紅褐色區塊）：
   - Docs/
   - Signals/
   - Tasks/
   - Contents/
   - campaign/
   - ...

2. **Loop contract**（綠色區塊，外框包覆）：
   - Goal
   - Workflow
   - Task
   - Timeline

3. **LOGS.md**（純文字）：
   - LOGS.md

該圖表以手寫風格呈現，旨在定義專案中不同檔案類型的歸屬與架構邏輯。</div></details>

Artifact 系統是讓迴圈產生複利的共享記憶層。我通常將其分為三個部分，例如：

```markdown
/artifacts
  /signals
  /tickets
  /tasks
  /docs

/loops
  /support
    README.md

LOG.md
```

## 1. Artifacts

Artifacts 是持久性的工作成果或知識。它們是迴圈讀取與寫入的物件。例如訊號（signals）、文件（docs）。

每一種 artifact 類型都應該具備：

- 明確定義什麼是、什麼不是該類型
- 一致的 schema
- 生命週期規則

例如，一個「訊號」不只是隨手寫的筆記，它是針對值得關注事項的結構化記錄。

```markdown
---
type: signal
status: open
priority: high
sources:
  - support-ticket-124
  - support-ticket-131
created_at: 2026-06-19
---

# Export is too difficult to discover

## Observation
Multiple users have asked how to export their work.

## Evidence
Five related support tickets in the past week.

## Possible causes
- Export action is visually hidden
- Users expect export in another part of the UI
- Export terminology is unclear

## Suggested next action
Run a product investigation and test a clearer export entry point.

## Timeline
Log what happened to this artifact overtime

```

Artifacts 的好處在於它們不會被困在單一 Agent 的 session 中。任何迴圈都可以隨時讀取、更新、連結或根據這些資訊採取行動。

## 2. 迴圈合約（Loop contracts）

每個迴圈都應該有一份合約。這通常是該迴圈領域資料夾中的一個 `README.md`。

例如：`support-loop/README.md`。合約說明了：

- 迴圈的目標
- 應遵循的工作流程
- 待辦佇列（Backlog queue）
- 重要事件的時間軸

例如：

```markdown
---
kind: domain
domain: support
status: active
goal: Triage the support inbox, reply or escalate, and surface product or growth signals.
cadence: Hourly
tags: [support, domain]
---

# Support — inbox triage

This domain owns the support-triage workflow.

Its outputs live in the global artifact stores:

- One record per conversation → `/tickets`
- Deduplicated feedback and friction themes → `/signals`
- Engineering bugs → `/tasks`
- Run history → this file’s `## Timeline`

## Trigger

Runs hourly.

Prompt:

"Pull tickets from the past hour. Triage and handle them according to the support-triage skill."

## Workflow

1. Fetch new and newly active conversations.
2. Review tickets that need follow-up.
3. Investigate issues with the available tools.
4. Reply directly when confidence and permissions are sufficient.
5. Draft a response when human approval is required.
6. Create or update the ticket artifact.
7. Roll recurring friction into an existing signal rather than creating duplicates.
8. Create a task for clear engineering bugs.
9. Add one concise line to the timeline.

## Dedupe rules

- Returning conversation: match the external conversation ID.
- Returning customer: match email.
- Recurring feedback: increment the frequency of an existing signal.
- Never create a new signal when the theme already exists.


## Timeline

2026-06-19 — Triaged 4 new conversations. Resolved 2. Created 1 ticket,
updated the export-discoverability signal, and created 1 engineering task.
```

每一個新的 Agent session 都能讀取這份合約，並理解該迴圈試圖達成的目標。

## 3. 全域日誌（Global logs）

最後，維護一份全域的 `LOGS.md` 或工作日誌。

這很有用，因為工作並不總是能整齊地包含在單一迴圈內。你可能會手動調查一個想法、審查 Agent 的輸出、做出決策，並要求另一個 Agent 採取行動。全域日誌捕捉了這種跨領域的 context。

一個簡單的模式就很有效：

- 在進行重大工作前，Agent 會讀取最近的五到十條記錄。
- 在重大工作完成後，Agent 會新增一份簡潔的摘要。
- 記錄應連結到相關的 artifact。

例如：

```markdown
## 2026-06-19 · Support pattern found: export discoverability is now a product issue · #support #signal #product 
What: Hourly triage found three more users asking how to export their work. Updated the existing `export-too-hidden` signal rather than creating duplicates; frequency is now 8. Created an ENG task to test a clearer export entry point. Two customer replies are awaiting approval. 
Refs: [[FB-12 export-too-hidden]], [[ENG-41 improve-export-discoverability]], [[SUP-103]], [[SUP-119]], [[SUP-124]].
```

這讓每個迴圈都能以輕量級的方式了解整個企業正在發生的事情。

## 讓 AI 經營業務

在 @SuperDesignDev，我們的團隊正在建立一個迴圈網路，以完全 AI 原生的方式擴展業務。它們共同構成了一個持續改進的作業系統。

這就是 Loop Engineering。

而擅長此道的團隊，不僅僅是因為使用 Agent 而行動得更快，他們還會因為系統在睡眠時也能持續學習，而產生更快的複利效應。

我整理了一份「Loop Engineer 設定模板」，其中包含了我們嘗試過的許多實踐：artifact 結構、迴圈合約、日誌、skill 以及程式庫 harness 檢查清單。

你可以將其複製到你自己的儲存庫中，並使用 Claude Code 或 Codex 來建構你的第一個迴圈：https://github.com/JayZeeDesign/loop-engineer-template

我們將持續分享我們在 @SuperDesignDev 進行 AI 原生營運的實驗，如果你有興趣，歡迎追蹤後續更新。

## 標籤

Agent, Loop Engineering, 自動化, 教學資源, SuperDesignDev
