Skip to content

Engram 憶跡 2.0.0:從記得到做到,記憶與環境管家

Latest

Choose a tag to compare

@Sen-CaPoo Sen-CaPoo released this 21 Nov 08:47
f23b7ce
保留區:自動駕駛沒有執行的建議,連同原因與證據,可以採用或標成不需要 正體中文 The holding area: suggestions autopilot did not carry out, with the reason and evidence, ready to apply or mark as not needed English

從記得到做到:Claude Code 的記憶與環境管家

Engram 2.0 從「記憶同步」擴大為「記憶與環境管家」:重要的記憶在對的時候出現,踩過的坑變成護欄,整個 Claude Code 環境也有人照顧。升級是免費的。

重點功能

  • 記憶活化:你的糾正與偏好永遠留在索引裡(所有電腦都更新到 2.0.0 之後生效);送出訊息時,情境召回帶出最多 3 筆相關的記憶(只從全域、這台電腦與目前專案找,在你的電腦上計算);護欄在 Claude 送出 Bash 或 PowerShell 指令前擋下已知會出錯的寫法;記憶可以「畢業」成核心準則的一行、護欄提醒或環境設定。
  • 自動駕駛 2.0:只遵守你本人確認過的偏好;沒有執行的建議存進「保留區」,不再消失,可以採用或標成不需要;撞到用量上限或登入到期會停下來並通知你;新的「每週摘要」頁。
  • 環境管家:每天檢查這台電腦的 Claude Code 環境、比較兩台電腦的差異(只記名稱、版本、雜湊與耗時,不讀環境變數的值);幾台電腦可以共用同一份環境設定,同步來的設定要在這台核可才會套用;一台更新新版,其他台(用 git 安裝的)自動跟上。
  • 更安靜、更穩:背景存檔沒有變動就不動作;同步連續失敗會自我診斷並通知你;記憶庫每週自動打包;久沒用的專案自動休眠;疑似同一個專案會建議合併,自動駕駛不代你決定;混版期間共用的索引暫時照舊的排法(相容模式),兩台不會輪流改寫。

修正

  • 用 engram remember 寫的記憶,記憶多的時候可能被擠出索引、Claude 讀不到;現在糾正與偏好永遠列在索引裡。
  • 審核員沒有放行的建議不再只留在那一輪的紀錄裡,會存進保留區;自動駕駛不再誤退回你想要的寫入、不再拆分記憶。
  • 碰到 Claude 的用量上限時,自動駕駛不再一再呼叫失敗,而是停下來等重置。
  • 同步被疑似金鑰的檔案卡住時會自我診斷,並在失敗滿 1 小時時通知你。

升級時要知道

  • 自動駕駛不再拆分或精簡記憶,也只遵守你本人確認過的偏好:在 Claude Code 對話裡存的記憶、套用的整理一律記成「Claude 代為確認」,不會自動成為它的規則(同一個指令在你自己開的終端機執行才算本人確認),要在「自動駕駛」頁的偏好區塊按「這是我的偏好」。記憶畢業要寫進核心準則或變成護欄規則的內容,也只接受你本人確認過的,其他來源的會先等你確認。
  • 從其他電腦同步來的環境設定、技能與護欄的「擋下」規則,要在每台電腦核可一次才會生效;核可只能在管理介面或你自己的終端機做。
  • 新的預設:情境召回、環境健檢、自動更新開啟,護欄為「擋下」,環境設定同步為「只報告」,索引分層為「並行觀察」;自動駕駛維持你原本的設定。
  • 請讓所有電腦都更新到 2.0.0:新的索引規則(糾正與偏好永遠列出、專案索引自動縮短、索引分層)要等全部更新才啟用。這不是怕舊版會壞:只更新一台時不會遺失資料,共用的索引會進入「相容模式」、暫時維持舊的排法,兩台不會輪流改寫,舊版更新之後自動切換(engram status 會說明)。混版期間不要手動編輯記憶庫裡的 settings.json、release.json,以及 env/、guardrails/、holding/ 底下的檔案:舊版不認得它們,也不替它們檢查疑似金鑰。

升級方式

  1. 在 Engram 資料夾執行 git pull(用 ZIP 安裝的,下載新版 ZIP 覆蓋原資料夾)。
  2. 執行 engram update。
  3. 已經開著的 Claude Code 對話執行 /reload-plugins。

1.x 沒有自動更新,所以每一台還在 1.x 的電腦,從 1.x 升級的第一次都要手動更新(git pull、engram update);更新到 2.0.0 之後,用 git 安裝的電腦,另一台更新時會在每天檢查時自動跟上。

相容性:實測 Claude Code 2.1.329、2.1.330,更早的版本未測試。情境召回與護欄靠外掛的 mod,mod 沒有載入時,情境召回改由指令型 hook 接手,護欄只能在對話開頭列出提醒。需要 Node.js 22 以上、Windows 11。

完整內容見 CHANGELOG。


From remembering to doing: the memory and environment steward for Claude Code

Engram 2.0 grows from "memory sync" into a "memory and environment steward": the right memories show up at the right time, command pitfalls you've hit become guardrails, and the whole Claude Code environment gets looked after. The upgrade is free.

Highlights

  • Memory that shows up when needed: your corrections and preferences always stay in the index (once every computer is on 2.0.0); when you send a message, context recall brings up to 3 relevant memories (searched only among global memories, this computer's, and the current project's, computed on your computer); guardrails block known-bad command patterns before Claude sends a Bash or PowerShell command; memories can "graduate" into one line in the core rules, a guardrail reminder, or an environment setting.
  • Autopilot 2.0: it follows only the preferences you confirmed yourself; suggestions it didn't carry out go to the Holding area instead of vanishing, where you can apply them or mark them not needed; it stops and notifies you when it hits a usage limit or its sign-in expires; and there's a new Weekly digest page.
  • Environment steward: every day it checks this computer's Claude Code environment and compares computers (it records names, versions, hashes, and timings, and never the values of environment variables); several computers can share one environment profile, and what syncs in takes effect only after you approve it on this computer; update one computer and the others (installed with git) follow on their own.
  • Quieter and steadier: the background save does nothing when nothing changed; sync diagnoses itself when it keeps failing and notifies you; the vault is packed automatically every week; projects nobody uses go dormant; projects that look like the same one get a merge suggestion that autopilot never decides for you; while versions are mixed, the shared indexes are temporarily written the old way (compatibility mode) so computers don't rewrite each other's.

Fixes

  • Memories written with engram remember could be pushed out of the index when you had many, so Claude never read them; corrections and preferences are now always listed.
  • Suggestions the reviewer didn't approve no longer stay only in that run's record; they go to the holding area. Autopilot no longer sends back writes you wanted, and no longer splits memories.
  • When Claude's usage limit is reached, autopilot no longer keeps calling and failing; it stops and waits for the reset.
  • When a file held back as a possible secret blocks sync, sync now diagnoses itself and notifies you after an hour of failures.

What to know when you upgrade

  • Autopilot no longer splits or condenses memories, and it follows only the preferences you confirmed yourself: memories saved and tidy-ups applied inside a Claude Code conversation are always recorded as "confirmed on your behalf by Claude" and don't automatically become its rules (the same command counts as yours only when you run it in a terminal you opened yourself); select This is my preference in the preferences block on the Autopilot page. A line that memory graduation wants to put into the core rules, or a guardrail rule it wants to add, is likewise accepted only from content you confirmed yourself; other sources wait for you first.
  • Environment settings, skills, and "block" guardrail rules that sync from another computer take effect only after you approve them on each computer; approval works only in the dashboard or in your own terminal.
  • New defaults: context recall, environment check, and automatic updates are on; guardrails are set to block; environment sync is report only; index layers are set to observe; autopilot keeps whatever you had set.
  • Please update every computer to 2.0.0: the new index rules (corrections and preferences always listed, project indexes shortened automatically, index layers) start only once all of them are updated. It isn't that the old version would break: with only one updated, nothing is lost, and the shared indexes go into "compatibility mode" and stay the old way so the computers don't rewrite each other's, then switch by themselves once the older computers are updated (engram status explains it). While versions are mixed, don't edit by hand settings.json, release.json, or the files under env/, guardrails/, and holding/ in the vault: the older version doesn't recognize them or check them for possible secrets.

How to upgrade

  1. Run git pull in your Engram folder (if you installed from a ZIP, download the new ZIP and overwrite the folder).
  2. Run engram update.
  3. In a Claude Code conversation that is already open, run /reload-plugins.

1.x has no automatic updates, so every computer still on 1.x needs one manual update (git pull, then engram update) for this first upgrade; once it is on 2.0.0, computers installed with git catch up on their own during the daily check after another computer updates.

Compatibility: tested with Claude Code 2.1.329 and 2.1.330; earlier versions are untested. Context recall and guardrails run through the plugin's mod; when the mod isn't loaded, context recall is taken over by a command hook and guardrails can only list reminders at the start of a conversation. Requires Node.js 22 or later and Windows 11.

Full notes: CHANGELOG.