Codebase Index

Semantic code search via Ollama embeddings.

1 plugin · 1 MCP

Find code by describing what it does, not by guessing function names.

What it does

  • Semantic search: find functions, classes, and patterns by natural language
  • Call graph analysis: trace callers and callees, find dependency paths
  • Community detection: discover natural module boundaries
  • Incremental indexing: only changed files are re-embedded after the first build

How agents use it

Instead of grepping for keywords, agents describe what they’re looking for in plain English and get back the relevant code locations.

Local model

Powered by Ollama running nomic-embed-text for embeddings. Runs entirely on your machine.

macOS platform note: Ollama runs inside Docker Desktop on macOS, and Docker Desktop does not pass the host Metal GPU through to Linux containers — so nomic-embed-text embeddings run CPU-only on macOS hosts. This is a platform limitation, not a misconfiguration (size_vram: 0 is expected). For GPU-accelerated embeddings on macOS, use an engine that runs natively on the host (e.g. qmd’s Metal-backed models).

Contents

Type Name Purpose
Plugin opencode-codebase-index —
MCP opencodebase-index Semantic code search, implementation lookup, call graph

Configuration

No project configuration is required.

See also

  • Polyrepo sessions — how this module scopes itself to the owning project
  • Graphify — structural knowledge graph
  • QMD — knowledge vault search