Claude Code plugin · self-compounding memory
Cortex is a personal memory layer for Claude Code. Every session automatically records commits, findings, and decisions, which can later be distilled into refined notes and retrieved with mixed-language semantic search. The vault is plain markdown + git as the source of truth; the vector store is just a rebuildable derived index. Built for anyone who wants working memory to compound across sessions instead of resetting every time.
Hybrid retrieval (BM25 + vector) — mixed-language queries hit the right passage directly, without you remembering which file it's in.
Cortex writes straight into Obsidian vault format — this is the shape wikilinks actually grow into. Try dragging a node.
After a Raw has been distilled, to fuse it into related existing pages ("broadcast", "compound this into the vault"), or auto-dispatched at the end of the distill flow.
When the user wants to distill Raw session records into Notes/Projects ("提煉", "整理 raw", "distill").
When the user wants to save knowledge to the vault ("存到 cortex", "記一下"), or when the session-suggest hook recommends saving.
When the user wants to search the vault ("查 cortex", "之前有記過"), or proactively before answering any question about existing projects or internal tooling.
When context is running low and work needs to hand off to the next session ("交接", "takeoff", "交棒"). Produces a temporary hand-off baton that's never committed or indexed.
Triggers unconditionally at session start or on any non-trivial request — checks whether the vault already has relevant memory before guessing, asking, or re-exploring.