Skip to content
Amine Troudi edited this page Apr 25, 2026 · 2 revisions

ContextGraph

Semantic code search, long-term memory, and blast radius analysis for AI coding agents.

ContextGraph gives Claude Code and Cursor a persistent understanding of your codebase — so you spend less time re-explaining context and more time shipping.


How it works

  1. Index your project once (cograph index) — ContextGraph parses TypeScript, JavaScript, Python, and Markdown into a local SQLite database with embeddings and a dependency graph.
  2. Connect your editor — Claude Code and Cursor call MCP tools (search_context, analyze_impact, etc.) automatically as you work.
  3. Remember — learnings and checkpoints persist across sessions so the agent picks up where you left off.

Pages

Page What's covered
Installation Installing cograph globally with Bun
Claude Code Setup Registering MCP servers for Claude Code (stdio)
Cursor Setup Running HTTP servers for Cursor
Indexing How indexing works, what gets parsed, re-indexing
Memory and Checkpoints Saving learnings and session snapshots
Blast Radius Dependency impact analysis before editing shared files
Embedding Backends Local (default), Ollama, OpenAI
CLI Reference All cograph commands and flags
Troubleshooting Common issues and fixes

Quick start

# Install
bun install -g @loosilo/contextgraph-cli

# Register with Claude Code
cograph register

# Index your project
cograph index /path/to/your/project

Open a new Claude Code session — the MCP tools are ready.


Packages

Package Description
@loosilo/contextgraph-cli The cograph CLI
@loosilo/contextgraph-mcp MCP server — search, memory, checkpoints
@loosilo/blastradius-mcp MCP server — dependency impact analysis
@loosilo/contextgraph-core Core library (indexing, embeddings, graph)

Clone this wiki locally