New to CCM? This guide gets you running in 5 minutes.
Cognitive Codebase Matrix (CCM) is an intelligent bridge between your codebase and AI assistants:
- 🔍 Semantic Search - Find code by meaning, not just keywords
- 🧠 Graph Navigation - Understand code relationships
- 📍 Smart Context - Get relevant code at your cursor position
Option A: For AI Editors (Claude Desktop, Antigravity, Cursor)
npx @senoldogann/context-manager installOption B: For CLI Development
cargo build --release
./target/release/ccm-cli --helpEnsure Ollama is running:
ollama serve
ollama pull mxbai-embed-largeOptional production settings (recommended for server use):
# Restrict MCP access to allowed roots
CCM_ALLOWED_ROOTS=/Users/you/projects:/Users/you/sandbox
CCM_REQUIRE_ALLOWED_ROOTS=1
# Include data files in semantic search
CCM_EMBED_DATA_FILES=0npx @senoldogann/context-manager index --path .# Search for code
ccm-cli query --text "dependency injection"
# Find context at specific location
ccm-cli query --text "src/main.rs:42"
# Auto-reindex on changes
ccm-cli index --path . --watchOnce configured as MCP server:
"Search for the user authentication flow."
"Read the graph for
PaymentServiceand show me all callers."
"What does the
parseConfigfunction do?"
context-manager/
├── core/ # Rust engine (Vector DB + Graph)
├── mcp/ # MCP Server implementation
├── cli/ # Command-line interface
├── npm/ # Node.js wrapper for distribution
└── eval/ # Evaluation framework & golden tasks
# Build
cargo build --release
# Test
cargo test
# Lint
cargo fmt && cargo clippy- Full Documentation: README.md
- Evaluation Framework: eval/README.md
- Contributing: CONTRIBUTING.md