想用持久記憶又唔混淆舊任務,就要分開「永久 context」(CLAUDE.md、Project instructions) 同「一次性 session 內容」,每轉任務就主動 reset 記憶界限,例如用 /clear 指令 [4]。 要將記憶當做「專注嘅筆記簿」而唔係「archive」——淨係記低 code 或者 instructions 睇唔到、同埋真係會重用嘅嘢先得 [7]。

Create a landscape editorial hero image for this Studio Global article: Searching with cited sources for How do I use the persistent Memory feature without it confusing past tasks?. Article summary: To use persistent Memory without it confusing past tasks, the key is to **separate what is remembered (enduring context) from what is handled per-task (session-specific context)**, and to actively reset or scope your mem. Topic tags: general, general web, user generated. Style: premium digital editorial illustration, source-backed research mood, clean composition, high detail, modern web publication hero. Use reference image context only for broad subject, composition, and topical grounding; do not copy the exact image. Avoid: logos, brand marks, copyrighted characters, real person likenesses, fake screenshots, UI text, readable text, watermarks, charts with fake numbers, clickbait thumbnails
Claude 嗰啲持久記憶功能——CLAUDE.md 檔案、auto memory、chat memory、同埋 Projects——確實好幫手,可以跨 session keep 住 context。但係搞唔好嘅話,上個禮拜前端 debug 嘅 notes 撈埋今日 database schema 設計入面,成件事就會炒晒車。如果你嘅 AI 開始「撈亂晒啲 project」,你就要睇清楚以下呢 5 招「記憶衛生」技巧喇。
Claude 嘅記憶功能好似 CLAUDE.md 同 auto memory,原本就係設計嚟俾你跨 session 嘅 context 或者累積 notes 。問題係呢啲系統唔會自動幫你分開唔同嘅 Project。如果你由得啲記憶越積越多——上次嘅 debug session、你唔小心講過嘅喜好、舊 Project 嘅細節——最後就會撈埋晒一堆唔關事嘅 context,變成過時或者矛盾嘅指引,用落新任務就出事。
Context 互染主要有兩個途徑:
CLAUDE.md 檔案 (Claude Code): 親手為每個 Project 寫低持久 instructions。呢啲檔案可以幫 Claude 有一個穩定、刻意嘅 context 去引導行為 。Auto memory 最好係搭配 CLAUDE.md 一齊用,等 Claude 可以由你嘅更正中學習,但又唔會令 auto memory 變成唯一嘅真相來源
。
一個 Claude Project 對應一種固定輸出: 專家 Sawan K. 建議,每個你成日要嘅輸出類型開一個獨立 Project,唔好一個大主題一個 Project 。每個 Project 嘅 Instructions 寫 400–800 字,內容包埋語氣、禁用字、格式、同 2–3 個好嘅輸出例子,咁就每個 Project 嘅 context 都清清楚楚
。
淨係記低code 或者 instructions 睇唔到、同埋真係會喺以後嘅 session 用得著嘅嘢:例如一個確認咗嘅 style preference、一個成日重複嘅 workflow habits、或者一個 build command 。千祈唔好成個 session logs 咁 dump 晒入去,又或者一次過嘅 decisions 同長氣 notes。
Claude Code 嘅 auto memory 會記低 build commands、debugging insights、architecture notes、code style preferences、同 workflow habits 。如果佢開始記得太雜,你可以叫 Claude「忘記某個具體事實」,或者喺 Settings 直接清空 entries。
開新任務嘅時候,直接 prompt:
「唔好理之前關於 [old project] 嘅任何記憶。淨係用呢個 conversation 同我嘅 [project name] instructions 做 context。」
Claude 嘅 chat memory 同 chat search 功能本身會喺你問起或者繼續之前嘅工作時,參考 previous conversations 。相關設定可以喺 Settings > Capabilities > Preferences 管理
。
Claude Code 就用 Project 專用嘅 CLAUDE.md 檔案做持久嘅 project instructions 。Claude chat 就用獨立 Projects 做重複輸出,每個 Project 俾佢自己嘅 Instructions
。咁樣就做到「隔離記憶容器」,防止跨 Project 嘅 context 模糊。
/clear 將持久記憶當做一本「刻意整理嘅筆記簿」而唔係「自動 archive」,你就可以盡享跨 session context 嘅好處,而唔會俾過時或者矛盾嘅 advice 搞亂你而家做緊嘅工作。
Studio Global AI
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
想用持久記憶又唔混淆舊任務,就要分開「永久 context」(CLAUDE.md、Project instructions) 同「一次性 session 內容」,每轉任務就主動 reset 記憶界限,例如用 /clear 指令 [4]。
想用持久記憶又唔混淆舊任務,就要分開「永久 context」(CLAUDE.md、Project instructions) 同「一次性 session 內容」,每轉任務就主動 reset 記憶界限,例如用 /clear 指令 [4]。 要將記憶當做「專注嘅筆記簿」而唔係「archive」——淨係記低 code 或者 instructions 睇唔到、同埋真係會重用嘅嘢先得 [7]。
Loading comments...
Comments
0 comments