By Helweg
Semantically search your local codebase, trace function call graphs, find symbol definitions, and analyze PR impact — all from within Claude Code.
Trace callers, callees, or paths using the call graph
Find where a symbol is defined in the codebase
Find code using hybrid approach (semantic + grep)
Index the codebase for semantic search
Quickly find likely code locations without returning full code
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 claimnpx claudepluginhub helweg/opencode-codebase-index --plugin codebase-indexBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Stop grepping for concepts. Start searching for meaning.
opencode-codebase-index brings semantic understanding to your OpenCode, Pi, Codex, and MCP-compatible workflows. Instead of guessing function names or grepping for keywords, ask your codebase questions in plain English.
check_creds.tree-sitter and usearch. Incremental updates take milliseconds.Install the plugin
npm install opencode-codebase-index
Add to opencode.json
{
"plugin": ["opencode-codebase-index"]
}
Index your codebase
Run /index or ask the agent to index your codebase. This only needs to be done once — subsequent updates are incremental.
Recommended check: run /status after the first index so you can confirm the detected provider/model before you start searching.
Start Searching Ask:
"Find the function that handles credit card validation errors"
Install as a Pi package to get first-class codebase_search, index_codebase, call graph, PR impact, and knowledge-base tools plus the codebase-search skill.
pi install npm:opencode-codebase-index
# or, for local development:
pi install ./path/to/opencode-codebase-index
Pi uses the neutral .codebase-index/ project storage and falls back to existing OpenCode state when present.
Install once for Codex threads and get skill guidance plus MCP tools in one manifest.
codex plugin marketplace add Helweg/opencode-codebase-index
codex plugin add codebase-index@helweg-plugins
index_codebase, index_status, codebase_search, etc.) and the codebase-search skill guidance.The plugin includes:
skills/ guidance for local workflowshooks/hooks.json lightweight session-start guidance.mcp.json running the published opencode-codebase-index CLI via npx … --host codex, so a git marketplace install works without a local build.agents/plugins/marketplace.json so this repo can act as a Codex marketplace sourceFor local plugin development from this checkout, build and link the local MCP bin once:
npm run build:ts
npm run dev:link-mcp
After that, the normal .mcp.json command also works when Codex starts the plugin from this repository.
Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.
Smart semantic + hybrid code search for local repositories
Local-first hybrid semantic code search with dependency graphs and cross-repo search. Powered by CocoIndex, Tree-sitter, pgvector, and Ollama.
Tree-sitter backed code indexing and retrieval for Claude Code. Precise function extraction, cross-file callers, test discovery, and scope-aware grep.
Semantic code search powered by ColBERT. Replaces grep/ripgrep with natural language understanding for smarter code navigation.
Fast and token-friendly code reading for AI coding agents. Symbol-aware MCP tools that replace cat/grep with ~85% fewer tokens, sub-millisecond search, and a raw fallback that preserves cat/grep parity byte-for-byte.