cortex-graph-search

cortex-graph-search is a skill for Claude Code, Codex, Cursor from synpulse8-opensource/pulse8-ai-cortex-knowledge-vault. It costs 43 tokens per session (493 once invoked), scanned A, original, Apache-2.0.

A guide to Cortex's knowledge graph and QMD search system. The graph connects notes and other records with typed links, while QMD supports keyword, meaning-based, and combined search.

In plain words
What is it for?
Use it to inspect graph statistics and links, rebuild the graph, understand search behavior, or retrieve connected context around matching notes.
Why use it?
It explains how search results can be enriched with related notes and how the vault's graph and search index are stored and updated.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault/cortex-graph-search
Any agent
npx skills add synpulse8-opensource/pulse8-ai-cortex-knowledge-vault --skill cortex-graph-search
Clone the repo
git clone --depth 1 https://github.com/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault

Made for: Claude Code, Codex, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cortex-graph-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault/cortex-graph-search.svg)](https://agentmods.dev/skills/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault/cortex-graph-search)
Your own site
<a href="https://agentmods.dev/skills/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault/cortex-graph-search"><img src="https://agentmods.dev/badge/skills/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault/cortex-graph-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00493
Opus 5 $0.00022 $0.00246
Sonnet 5 $0.00009 $0.00099
Haiku 4.5 $0.00004 $0.00049

Measured 5d ago against content hash 1c0473755943, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cortex-graph-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/cortex-graph-search/SKILL.md · 56 lines

What it actually says

Knowledge graph

  • Storage: cortex/graph/store.py — NetworkX DiGraph, persisted to {vault}/.cortex/graph.json.
  • Models: cortex/vault/models.pyNodeType, EdgeType, GraphNode, GraphEdge.
  • Rebuild: cortex/graph/builder.py scans vault markdown and wikilinks.

Node types

note, tag, agent, session, daily, feedback (from path prefix or frontmatter type).

Edge types

links_to, authored_by, contradicts, derived_from, supersedes, memory_of, tagged_with.

API surface

  • REST: POST/GET/DELETE /api/v1/links, GET /api/v1/graph/stats
  • MCP: vault_link, vault_context (expands neighbors from search hits)
  • Module: cortex/search/qmd.py — wraps QMD CLI for keyword, semantic, and hybrid modes.
  • Debounce: After vault_write, QmdDebounce schedules index refresh (cortex/search/debounce.py).
  • Modes: keyword, semantic, hybrid (default hybrid in many call sites).

vault_context flow

  1. Run search with query
  2. Take top notes
  3. Expand graph neighbors up to max_depth
  4. Return combined context for agents

VaultWatcher sync

cortex/vault/watcher.py updates graph on file changes so disk edits stay consistent without full rebuild.

Debugging

  • Empty search: check QMD index / vault path / CORTEX_VAULT_PATH
  • Missing edges: run graph rebuild or trigger watcher; verify wikilink targets exist under allowed folders
  • Stats: GET /api/v1/graph/stats
  • Vault paths: cortex-vault
  • MCP tools: cortex-mcp
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 56 lines · 43 tokens per session scan A 1c0473755943

Subscribe to this mod's changes

cortex-graph-search is a skill published in the GitHub repository synpulse8-opensource/pulse8-ai-cortex-knowledge-vault (14 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 493 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

rag-knowledge

Work with the RAG knowledge base — ingest documents, run semantic search, manage collections, or add a sync source/connector (Google Drive, S3). Use when populating or debugging the knowledge base, tuning retrieval, or adding a new document source. This project uses {{ cookiecutter.vectorstore }} + {{…

vstorm-co/full-stack-ai-agent-template · 76 tokens

local-rag-core-maintainer

Maintain and verify the local-rag-core project. Use when working in this repository on code changes, documentation changes, MCP integration, pack lifecycle, backup or restore guidance, release readiness, GitHub publication, or operational verification.

linkwut-create/local-rag-core · 52 tokens

research-add

Standard flow for adding a new research paper to MemRAG — upload, wait for wiki ingestion, verify output. Use when onboarding a new paper into the knowledge base.

minh2004pd/chatbotfullpipeline · 37 tokens

docker-reset

Full Qdrant data reset — run when embedding dimension changes or data is corrupted. Destroys all vector data.

minh2004pd/chatbotfullpipeline · 27 tokens

llm-wiki

The foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources…

Ar9av/obsidian-wiki · 113 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens