[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:cortexdb":3},"\u003Ch1>CortexDB\u003C\u002Fh1>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Fv2\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Fv2.svg\" alt=\"Go Reference\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Factions\u002Fworkflows\u002Fci.yml\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fcodecov.io\u002Fgh\u002Fliliang-cn\u002Fcortexdb\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fcodecov.io\u002Fgh\u002Fliliang-cn\u002Fcortexdb\u002Fbranch\u002Fmain\u002Fgraph\u002Fbadge.svg\" alt=\"codecov\" \u002F>\u003C\u002Fa> \u003Ca href=\"https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg\" alt=\"License: MIT\" \u002F>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>AI memory and a knowledge graph in one SQLite file. Pure Go, no service to run, works without an embedding model.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fliliang-cn\u002Fcortexdb\u002FHEAD\u002Fdocs\u002Fassets\u002Fimg\u002Flive-view-dark-1600.webp\" alt=\"The CortexDB live view\" \u002F>\u003C\u002Fp>\n\u003Ch2>Install\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>\u003C\u002Fth>\n\u003Cth>\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Go library\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>go get github.com\u002Fliliang-cn\u002Fcortexdb\u002Fv2\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Claude Code\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>\u002Fplugin marketplace add liliang-cn\u002Fcortexdb\u003C\u002Fcode>, then \u003Ccode>\u002Fplugin install cortexdb@cortexdb\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Codex\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>codex plugin marketplace add liliang-cn\u002Fcortexdb &amp;&amp; codex plugin add cortexdb@cortexdb\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Claude Code mod (optional)\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>\u002Fplugin install cortexdb-live@cortexdb\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>DeepSeek Harness\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>dsh plugin --profile web add \"github:liliang-cn\u002Fcortexdb#semver:^2&amp;path:\u002Fplugins\u002Fdsh-cortexdb-memory\"\u003C\u002Fcode> (\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Fblob\u002FHEAD\u002Fplugins\u002Fdsh-cortexdb-memory\u002FREADME.md\" rel=\"nofollow ugc noopener\">guide\u003C\u002Fa>)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Obsidian\u003C\u002Ftd>\n\u003Ctd>unzip a release's \u003Ccode>cortexdb-obsidian.zip\u003C\u002Fcode> into \u003Ccode>&lt;vault&gt;\u002F.obsidian\u002Fplugins\u002F\u003C\u002Fcode> (\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Fblob\u002FHEAD\u002Fplugins\u002Fobsidian-cortexdb\u002FREADME.md\" rel=\"nofollow ugc noopener\">guide\u003C\u002Fa>)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Shared-brain server\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>go install github.com\u002Fliliang-cn\u002Fcortexdb\u002Fv2\u002Fcmd\u002Fcortexdb-grpc@latest\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Clients\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>cargo add cortexdb-client\u003C\u002Fcode> · \u003Ccode>pip install cortexdb-client\u003C\u002Fcode> · \u003Ccode>npm install cortexdb-client\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2>Use\u003C\u002Fh2>\n\u003Cpre>\u003Ccode class=\"language-go\">db, _ := cortexdb.Open(cortexdb.DefaultConfig(\"brain.db\"))\ndefer db.Close()\nbrain := db.KnowledgeMemory()\n_, _ = brain.Remember(ctx, cortexdb.KnowledgeMemoryRememberRequest{MemoryID: \"alice-tabs\", UserID: \"alice\", Scope: \"user\", Content: \"Alice prefers tabs.\"})\nrec, _ := brain.Recall(ctx, cortexdb.KnowledgeMemoryRecallRequest{Query: \"what does Alice prefer?\", UserID: \"alice\"})\nfmt.Println(rec.ContextPack.Text)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The plugin gives Claude Code and Codex one global brain at \u003Ccode>~\u002F.cortexdb\u002Fcortexdb.db\u003C\u002Fcode>, \u003Ccode>\u002Fremember\u003C\u002Fcode>, \u003Ccode>\u002Frecall\u003C\u002Fcode> and an auto-recall hook. A session starts with an index of what the brain knows about its project, an agent about to open a file is told what happened to it before, and a session's durable facts are captured with \u003Ccode>&lt;private&gt;\u003C\u002Fcode> text and credentials kept out. Point several agents or machines at one \u003Ccode>cortexdb-grpc\u003C\u002Fcode> and they share the same memory and graph.\u003C\u002Fp>\n\u003Cp>In Codex, review and trust the plugin hooks in \u003Ccode>\u002Fhooks\u003C\u002Fcode> to activate automatic\nrecall. See the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fliliang-cn\u002Fcortexdb\u002Fblob\u002FHEAD\u002Fplugins\u002Fcortexdb\u002FREADME.md\" rel=\"nofollow ugc noopener\">plugin guide\u003C\u002Fa> for setup and\n\u003Ccode>cortexdb-mcp --doctor --self-test\u003C\u002Fcode> diagnostics (v2.119.0+).\u003C\u002Fp>\n\u003Ch2>Claude Code mod\u003C\u002Fh2>\n\u003Cp>\u003Ccode>cortexdb-live\u003C\u002Fcode> is an optional \u003Ca href=\"https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmods\u002Foverview\" rel=\"nofollow ugc noopener\">mod\u003C\u002Fa> that runs inside Claude Code on top of the \u003Ccode>cortexdb\u003C\u002Fcode> plugin. Install it after the plugin:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002Fplugin install cortexdb-live@cortexdb\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The mod calls three of the plugin's tools itself, and a hook gets no permission prompt, so allow them once in \u003Ccode>~\u002F.claude\u002Fsettings.json\u003C\u002Fcode> (not needed in bypass mode):\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-json\">\"permissions\": {\n  \"allow\": [\n    \"mcp__plugin_cortexdb_cortexdb__knowledge_memory_recall\",\n    \"mcp__plugin_cortexdb_cortexdb__graph_statistics\",\n    \"mcp__plugin_cortexdb_cortexdb__memory_save\"\n  ]\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Without them the status line names the missing rules.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Planned recall.\u003C\u002Fstrong> Before the brain is searched, haiku turns each prompt into keywords in Chinese and English, aliases, entity names and a retrieval mode. A bare \"ok\" or \"go ahead\" searches nothing. The band above the prompt shows what was recalled; expand it to see the plan and every hit. Hide lasts until the next recall; \u003Ccode>\u002Fcortexdb-show\u003C\u002Fcode> brings the hidden one back.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Status line.\u003C\u002Fstrong> Which brain the session uses, its node count and how long the last recall took, or why the brain can't be reached.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Capture.\u003C\u002Fstrong> 90 seconds after a session goes idle, haiku distils the new part of the\u003C\u002Fli>\n\u003C\u002Ful>\n",1793926091183]