Thanks to visit codestin.com
Credit goes to cortexes.pages.dev

Claude Code plugin · self-compounding memory

Knowledge doesn't sit. It compounds.

Cortexes 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 search when a request actually points back at prior work. The vault is plain markdown + git as the source of truth; the vector store is just a rebuildable derived index, and search keeps working from a local BM25 index when no embedding key is set. Built for anyone who wants working memory to compound across sessions instead of resetting every time.

01 · SessionEnd hook
Capture
Every session ends with a full report, saved to the vault’s Raw/.
02 · /cortexes:distill
Distill
Extract hard-won lessons, conventions, and key decisions into Notes.
03 · broadcast
Fuse
Compound new knowledge into related existing pages, llm-wiki style.
04 · /cortexes:query
Recall
Mixed-language semantic search, run when a request points back at prior work.
03 · broadcast

Notes don't wait to be asked.
They rewrite themselves.

When a session surfaces something that touches an existing page, broadcast fuses it in place — new sections, corrected assumptions, sharpened caveats. The vault edits itself the way a wiki does, not the way a folder does.

Notes/Nginx/ssl-renewal.mdbroadcast · today
## SSL certificate management
Certs expire every 90 days, auto-renewed via certbot.
## Reload gotchas
Always run `nginx -t` before `nginx -s reload` —
a bad config makes reload fail silently (incident 2026-07-05).
## Common errors
This note just rewrote itself from a new session
cortex-vec search

Ask, don't dig

Hybrid retrieval (BM25 + vector) — mixed-language queries hit the right passage directly, without you remembering which file it's in.

cortex-vec search "nginx reload fails silently"
Notes/Nginx/ssl-renewal.md0.91
...always run nginx -t before reload — a bad config makes reload fail silently...
Raw/2026/07/05/session.md0.78
...nginx reload at 3am didn't take effect, traced to a leftover server block in config...
obsidian-native

Your vault is a living graph,
not a filing cabinet.

Cortexes writes straight into Obsidian vault format — this is the shape wikilinks actually grow into. Try dragging a node.

drag nodes · hover to highlight links
Notes Projects Raw
6 skills

Skills that trigger themselves

cortex-query

When the user explicitly asks to search the vault ("查 cortex", "之前有記過", "/cortexes:query"), or when using-cortex routes a request here after one of its four signals. Not for general or merely difficult questions.

check cortex for nginx noteshave I written about this beforewhat did I write about cortex-vec
cortex-broadcast

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.

broadcastprocess broadcast queue
cortex-distill

When the user wants to distill Raw session records into Notes/Projects ("提煉", "整理 raw", "distill").

distill this week's rawdistill raw records
cortex-evolve

When the user wants to save knowledge to the vault ("存到 cortex", "記一下"), or when the session-suggest hook recommends saving.

save to cortexnote this decision downremember this
cortex-takeoff · using-cortex

When context is running low and work needs to hand off to a later session ("交接", "takeoff", "交棒"). Produces temporary hand-off batons — one per work line — that are never committed or indexed. Four signals only — an explicit request, a reference to earlier work ("上次的", "之前那個", "we discussed"), a topic SessionStart actually listed, or resuming a session. Routes those to cortex-query, answers directly otherwise, and stays off once the user picks "直接開始工作".

reference

Commands & history

6 slash commands

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

changelog

2.0.02026-09-01
Added — **`/cortexes:query` is a real command.** The docs, the marketplace entry
1.3.22026-08-06
Added — `PRIVACY.md` (and `PRIVACY.zh-TW.md`), documenting every data flow in
1.3.12026-08-05
Added — `cortex-vec` is published to PyPI. A `publish-cortex-vec` workflow
Full history →