AI 課本 › 📺 Agents

會記憶的 Agents(第 1/2 段)

2026/05/23 · 28 分鐘 · 官方字幕實證
用 memory store 讓 Claude Managed Agents 跨 session 記住資訊,並預告 dreaming
💡 你可以怎麼用:如果你常要跟 AI 重複交代同樣的背景,可以把固定資訊(你的偏好、專案背景)整理成一份筆記,每次都讓它先讀。真的用到 Managed Agents 時,就依使用者或專案各開一個 memory store,不想被改動的資料設成 read only,也要定期到 console 檢查、修正它記下的內容。
看全部 39 條重點

🧑‍🏫 這支是 Anthropic 工程師 Kevin 開的實作課第一段,主題是怎麼讓 Claude 的 agent(能自己用工具完成任務的 AI 助手)「記得事情」。平常每開一次新對話,AI 都會從零開始。這段示範加上「記憶庫」之後,上次講過的事下次也找得回來,也先預告了會自動整理記憶的 dreaming 功能。

📘 術語
Claude Managed Agents(Claude 託管 agents 平台):之前的 workshop 介紹過,有 agent、environment、session 三個概念的平台
session(工作階段):用 agent 和 environment 建立;預設各 session 互相隔離,資訊不會傳遞
environment(環境):建立 session 時要指定 environment ID
memory store(記憶庫):類似檔案系統的持久儲存,附加到 session 上,讓 agent 跨 session 讀寫資訊
dream / dreaming(作夢(記憶整理)):背景非同步工作,分析 memory store 和過往 transcripts,做萃取、查核、整理、去重
transcript(對話紀錄):過往 session 以 transcript 形式提供給 dream 分析
harness(執行框架):dream 會在 memory store 和 transcripts 上跑 harness,萃取新資訊
deduplicate(去除重複):dream 會去除重複資訊,避免 memory store 無限膨脹
bootstrap script(初始化腳本):repository 附的腳本,會建立 agent、environment 和幾個過往 session 作為種子資料
console(主控台):網頁介面,可以查看 session、事件、memory store 內容,也能手動編輯或新增記憶
CLI(命令列介面):示範時用來建立 session、memory store、列出記憶檔案等
session container(session 容器):memory store 會以檔案系統的形式掛載到這裡
bash(bash 指令):模型可以用它探索掛載的 memory store 檔案系統
grep(grep 搜尋):模型用來在 memory store 中搜尋關鍵字,例如搜尋「CMA」
prompt parameter(prompt 參數):掛載 memory store 時,用來引導 agent 讀寫特定資訊
access field / read only(存取欄位/唯讀):預設是讀寫;設成 read only 時,agent 只能讀、不能更新 memory store
versioned(版本控管):每次修改記憶檔案都會產生新版本,並有對應的 endpoints
endpoint(API 端點):用來手動檢查 memory store,例如列出記憶檔案、處理版本
✏️ 小考一題

將 memory store 掛載到 session 時,access 欄位的預設值是什麼?

A. 沒有預設值,一定要手動指定B. 只能寫入(write only)C. 唯讀(read only)D. 讀寫(read/write)
看答案
答案:D。[09:10] 講者說 access 欄位預設是 read or write,可以改成 read only,改了之後 agent 就只能讀取、不能更新。
📺 看原片📚 在課本 App 讀
💛 覺得有幫助?支持一下台灣Pay 銀行轉帳 QRPayPal QR
課本免費、沒有廣告,支持與否都能照常讀 🐰

重點整理自 YouTube 影片字幕,每條附時間碼可跳回原片;🧑‍🏫/↳ 是 Claude 補充的白話,不是影片原話。