Auto-indexing for claude-context-mcp. Keeps your codebase index fresh on session start, after git operations, and on session end. Includes /insights skill for promoting memsearch patterns to auto-memory.
ctx)Auto-indexing CLI and Claude Code plugin for @zilliz/claude-context-mcp. Keeps your codebase index fresh automatically.
claude-context-mcp provides semantic code search via Milvus, but it only indexes when explicitly told to. After git pulls, code edits, or branch switches, the index goes stale and search results become incomplete.
.mcp.json > ~/.claude.json > ~/.context/.env)npm install -g claude-context-cli
This installs both claude-context-cli and the shorter ctx alias.
/plugin marketplace add chrisfentiman/claudesplace
/plugin install claude-context-cli
git clone https://github.com/chrisfentiman/claude-context-cli.git
cd claude-context-cli
npm install
npm run build
# Index a codebase (incremental)
ctx index [path]
# Index only if stale (new commits or dirty files changed)
ctx index --if-stale [path]
# Force full re-index
ctx index --force [path]
# Check index status
ctx status [path]
# Semantic search
ctx search "authentication middleware" [path]
ctx search "database connection" -n 5 [path]
# Clear index
ctx clear [path]
If running from source, use npx ts-node cli.ts or node dist/cli.js after npm run build.
Configuration is resolved by walking the same sources as claude-context-mcp, in priority order:
process.env (highest).mcp.json (project-level, claude-context server env).claude/.mcp.json~/.claude.json (user-level MCP config)~/.context/.env (claude-context global config)| Variable | Default | Description |
|---|---|---|
EMBEDDING_PROVIDER | Ollama | Ollama, OpenAI, Gemini, VoyageAI |
EMBEDDING_MODEL | Provider-specific | Model name |
OLLAMA_HOST | http://127.0.0.1:11434 | Ollama server URL |
OLLAMA_MODEL | nomic-embed-text | Ollama model (overrides EMBEDDING_MODEL) |
MILVUS_ADDRESS | 127.0.0.1:19530 | Milvus server address |
MILVUS_TOKEN | -- | Milvus/Zilliz Cloud auth token |
OPENAI_API_KEY | -- | Required for OpenAI provider |
OPENAI_BASE_URL | https://api.openai.com/v1 | Custom OpenAI-compatible endpoint |
GEMINI_API_KEY | -- | Required for Gemini provider |
GEMINI_BASE_URL | -- | Custom Gemini endpoint |
VOYAGEAI_API_KEY | -- | Required for VoyageAI provider |
The CLI tracks index state in .claude/context/last-index.json:
--if-stale, compares current git state against saved state@zilliz/claude-context-core handles file-level diffingWhen installed as a Claude Code plugin, three hooks fire automatically:
| Hook | Event | Behavior |
|---|---|---|
SessionStart | Session opens | index --if-stale (async) |
PostToolUse | After Bash commands | Re-index after git pull/merge/checkout/rebase (async) |
SessionEnd | Session closes | index --if-stale (async) |
All hooks are async and non-blocking.
claude-context-mcp configured as an MCP servergit checkout -b feat/something)git commit -m 'feat: add something')git push origin feat/something)Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub chrisfentiman/claudesplace --plugin claude-context-cliEnhanced memory hooks and skills for memsearch. Better summarization (observations over actions), improved recall (multi-query + reranking), and an insights skill for promoting patterns to auto-memory.
A powerful code indexing tool with multi-platform support
Optimized file search, semantic indexing, and persistent memory for Claude Code — with optional sync to a self-hosted web dashboard
Precise local semantic code search via MCP. Indexes your codebase with Go AST parsing, embeds with Ollama or LM Studio, and exposes vector search to Claude through an MCP server — no cloud, no npm.
Lightning-fast semantic code search with auto-indexing. Automatically manages sgrep watch during Claude sessions.
AST-based semantic code search via the ccc CLI. Bundles the ccc skill so coding agents handle init, indexing, and search automatically.
Persistent project memory for AI coding agents — semantic search, AST-aware chunking, dependency graphs, and conversation history