claude-mem
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
liliang-cn/cortexdb is a plugin that puts AI memory and a knowledge graph in one SQLite file, with skills, commands and MCP servers for agents. Use it when an agent needs local, durable memory and queryable graph data without running a separate service.
Claude Code
> /plugin marketplace add liliang-cn/cortexdb> /plugin install cortexdb@cortexdb
Codex
$ npx skills add liliang-cn/cortexdb --skill cortexdb cortexdb-memory-hermes cortexdb-memory-openclaw -a codex
Cursor
$ npx skills add liliang-cn/cortexdb --skill cortexdb cortexdb-memory-hermes cortexdb-memory-openclaw -a cursor
Gemini CLI
$ npx skills add liliang-cn/cortexdb --skill cortexdb cortexdb-memory-hermes cortexdb-memory-openclaw -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add liliang-cn/cortexdb$ copilot plugin install cortexdb@cortexdb
OpenCode
$ npx skills add liliang-cn/cortexdb --skill cortexdb cortexdb-memory-hermes cortexdb-memory-openclaw -a opencode
Windsurf
$ npx skills add liliang-cn/cortexdb --skill cortexdb cortexdb-memory-hermes cortexdb-memory-openclaw -a windsurf

Memory your coding agents share. Tell Claude Code something once, and Codex, your other machines and next week's session already know it.
Claude Code:
/plugin marketplace add liliang-cn/cortexdb
/plugin install cortexdb@cortexdb
Codex:
codex plugin marketplace add liliang-cn/cortexdb && codex plugin add cortexdb@cortexdb
Antigravity (agy), from a clone of this repo:
agy plugin install ./plugins/cortexdb
Go:
go get github.com/liliang-cn/cortexdb/v2
Also for DeepSeek Harness, Obsidian, and Rust, Python and Node clients (cortexdb-client).
cortexdb-grpc server and they share it.db, _ := cortexdb.Open(cortexdb.DefaultConfig("brain.db"))
brain := db.KnowledgeMemory()
brain.Remember(ctx, cortexdb.KnowledgeMemoryRememberRequest{MemoryID: "tabs", UserID: "alice", Content: "Alice prefers tabs."})
rec, _ := brain.Recall(ctx, cortexdb.KnowledgeMemoryRecallRequest{Query: "what does Alice prefer?", UserID: "alice"})
fmt.Println(rec.ContextPack.Text)
go install github.com/liliang-cn/cortexdb/v2/cmd/cortexdb@latest
cortexdb search what did we decide about the deploy key
cortexdb tool list
Every MCP tool is callable from a shell; see Command line.
Guide · Plugin · Live view · Claude Code mod · Environment variables · Integrating your agent · Examples · Changelog · 中文
MIT
Captures what your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions so work carries over. Works with Claude Code and several other coding agents.
Gives Claude Code long-term memory through Hindsight. It recalls relevant past context before answering, retains durable facts as the agent learns them, and reflects over stored memory.
Local-first memory for Claude Code. It stores conversations verbatim in a private palace you can search before answering about past work, people, projects, or decisions, with optional shared-brain hub setup.
Gives Claude Code a private memory that stays on your machine. It stores past conversations word for word, so you can ask what was decided, what happened before, or who was involved and get the original context back. It can also hand tasks to other agents.
Install it with the command on its page. It includes cortexdb, cortexdb-memory-hermes, cortexdb-memory-openclaw. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it