Claude Code plugin · knowledge & memory

把每次 session 變成可搜尋的個人知識庫 — 自動記錄、提煉、語意檢索

Cortex 是 Claude Code 的個人記憶層。每次 session 結束自動記錄 commits、發現與決策, 之後可提煉成精煉筆記、用中英混合語意搜尋檢索。Vault 是純 markdown + git 的 source of truth,vector store 只是可重建的衍生索引。適合想把工作記憶長期累積、跨 session 復用的人。

01 · SessionEnd hook
記錄
session 結束自動產出完整報告,存進 vault 的 Raw/。
02 · /cortex:distill
提煉
從 Raw 萃取踩坑知識、慣例與關鍵決策成 Notes。
03 · broadcast
融合
把新知識 compound 進相關既有頁面,llm-wiki 式。
04 · /cortex:query
檢索
中英混合語意搜尋,回答問題前先查 vault。
6 skills

自動觸發的技能

cortex-broadcastauto

一個 Raw 已 distill 後,要把它融合進相關既有頁面(「broadcast」「compound this into the vault」),或 distill 流程末段自動 dispatch。

broadcastprocess broadcast queue
cortex-distillauto

使用者要把 Raw session 記錄提煉成 Notes/Projects(「提煉」「整理 raw」「distill」)。

提煉這週的 rawdistill raw records
cortex-evolveauto

使用者要把知識存進 vault(「存到 cortex」「記一下」),或 session-suggest hook 建議存檔時。

存到 cortex記一下這個決策save to cortex
cortex-queryauto

使用者要查 vault(「查 cortex」「之前有記過」),或回答任何關於既有專案/內部工具的問題「前」,主動先搜尋。

查 cortex 有沒有 DSM 相關筆記之前有記過這個嗎what did I write about cortex-vec
cortex-takeoffauto

context 快滿要交接給下個 session(「交接」「takeoff」「交棒」)。產出不進 git、不索引的暫時 hand-off baton。

交接給下個 sessiontakeoff resumetakeoff done
using-cortexauto

session 開始或每個非瑣碎請求時無條件觸發 — 在猜測、追問或重新探索「前」,先確認 vault 是否已有相關記憶。

(session 開始自動觸發)
5 commands

Slash 指令

/cortex:broadcastRun broadcast on a distilled Raw — update related existing pages conversationally
/cortex:distillDistill raw session records into refined Notes and Projects
/cortex:evolveSave knowledge to the cortex vault (Notes or Projects) and update index
/cortex:genesisInitialize cortex vault — set up config, vault structure, and rebuild index
/cortex:takeoffCreate, resume, or clear a session hand-off baton for this repo
changelog

版本紀錄

看完整紀錄 →

0.23.02026-07-02
Removed — The remaining internal-tool-specific MCP output filters from the
0.22.02026-07-02
Removed — `cortex-weekly` skill, its `/cortex:weekly` command, and the
0.21.12026-06-30
Fixed — README: the cortex-vec install command used `$(claude plugin root cortex)`,