Episode 02 Memory

Claude Code Deep Dive

CLAUDE.md 與記憶

這一集會把持久規則、nested memory、import 拆成真正可治理的記憶層。

Listen Now

收聽 EP02 與下載講義

Episode Promise

這一集解三件事

1. 一句話模型

CLAUDE.md 是持久政策面,memory 是 session 之間的續航層,兩者都重要,但不能互相代替。

2. 反模式

最常見錯誤不是沒寫規則,而是把根檔寫成手冊,或把 memory 當成正式政策。

Takeaways

三個重點

根檔要短 CLAUDE.md 只放 durable policy,讓人能在壓力下快速掃描。 把所有細節塞進 root file 用 narrower files 承接細節
memory 不是政策 memory 的作用是續航,不是定義規則。 用 memory 代替 source of truth 把決策寫回檔案
檔案化決策 session 會 compact,文件才會留下來。 重要決策只存在對話裡 建立 checkpoint / handoff 習慣

Minimum Viable Template

最小可行檔案樹

ai-edu-media/
  CLAUDE.md
  .claude/
    rules/
    agents/
    skills/
  memory/
  research/
  architecture/
  content/episodes/ep02/
  podcast/
  distribution/
  website/

這一集的目的,是讓 root policy、imported detail、memory 和 checkpoint 各自有明確位置。