liliang-cn/cortexdb/cortexdb-memory-hermes
Claude Code and agent skill by liliang-cn/cortexdb
- community
Checking that the SKILL.md file is still in the repository.
Give a Python agent (such as Hermes Agent by Nous Research) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client PyPI package. Use when a Python agent needs to remember facts about a user across turns/sessions, recall them by meaning, store entities and relations, or answer multi-hop questions — and when the user mentions CortexDB, agent memory, long-term memory, RAG, knowledge graph, Hermes, or "remember this".
Install
npx vskill@latest install liliang-cn/cortexdb/cortexdb-memory-hermesSKILL.md
CortexDB memory for a Python agent (Hermes)
Wire CortexDB in as the memory layer for a Python agent. CortexDB is a pure-Go, single-file database; the Python agent talks to it over gRPC via the cortexdb-client package. Beyond vector/lexical recall, it gives the agent a real knowledge graph (RDF + SPARQL) — the thing most agent-memory layers lack.
When to use this
- The agent should remember user facts/preferences across turns or sessions.
- The agent should recall memories by meaning, not exact match.
- The agent needs entities + relations and multi-hop questions ("who, among the
people Alice knows, works on X").
- You're integrating with Hermes Agent (or any Python agent/framework).
Step 1 — Run the sidecar (once)
CortexDB runs as a local sidecar process, owning one SQLite file.
To enable vector/semantic recall, point it at any OpenAI-compatible embeddings endpoint (e.g. a local Ollama):
Step 2 — Install the client
Step 3 — The two core moves: remember + recall
Memory scopes isolate data: scope="user" (per user_id), scope="session" (per session_id), or scope="global". Use user for durable preferences and session for short-lived conversation state.
Step 4 — Knowledge instead of plain memory (RAG)
For documents the agent should retrieve from (not just per-user notes), use the knowledge service — it chunks, indexes, and (with an embedder) does GraphRAG:
Step 5 — The differentiator: a knowledge graph
Store entities and relations, then traverse them with SPARQL. This is what makes CortexDB more than a vector store for an agent.
Expose CortexDB as Hermes tools
Hermes runs Python and dispatches tools/subagents. Wrap the calls above as small tool functions the agent can call — remember(text), recall(query), relate(from, rel, to), ask_graph(sparql). Each is a 3-line wrapper over the client. A ready-to-import module is provided:
scripts/memory_tools.py—remember,recall,save_knowledge,
search_knowledge, relate, ask_graph, plus unified recall_context and remember_context, returning plain dicts/strings that drop straight into a tool-calling loop.
For automatic pre-turn recall and completed-turn synchronization, install the native Hermes MemoryProvider at plugins/hermes-cortexdb-memory and set memory.provider: cortexdb. A skill or MCP server exposes tools but does not by itself participate in Hermes' native memory lifecycle.
Install this skill into Hermes
Hermes adopts the agentskills.io standard; skills live under ~/.hermes/skills/ and activate as /skill-name.
Then in a Hermes session: /cortexdb-memory-hermes. Hermes also speaks MCP — if you prefer, run cortexdb-mcp-stdio and connect it as an MCP server instead of (or alongside) this skill.
Sub-clients (full surface)
client.knowledge, client.memory, client.graph (RDF/SPARQL/SHACL/inference/ ontology), client.graphrag, client.tools (generic dispatch, same shape as MCP), client.admin. Every RPC takes a proto.<Name>Request and returns the response message. Auth is a bearer token; pass token= to connect.
Notes & gotchas
- Zero-key default: without an embedder the sidecar uses lexical retrieval —
good enough to start, no credentials needed.
- One file, one process: the sidecar owns one SQLite file. Isolate multiple
users via memory scopes (above), not multiple files.
- Plaintext localhost: the bearer token rides plain gRPC; fine on localhost,
add TLS / a reverse proxy for cross-machine use.
- Package and docs: https://pypi.org/project/cortexdb-client/ ·
https://github.com/liliang-cn/cortexdb
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cortexdb-memory-hermes/SKILL.md
Popularity
- Repository stars
- 249
- Repository forks
- 3
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Oct 2026, 3 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/liliang-cn/cortexdb/cortexdb-memory-hermes)