Codebase indexing plugin for OpenCode with hybrid keyword + vector search.
bun installbun test
bun run typecheck
bun run lintConfigure the plugin in .opencode/codebase-index.json.
{
"storage": {
"backend": "lancedb",
"path": "./.opencode/codebase-index.lancedb"
}
}{
"storage": {
"backend": "sqlite-vec",
"path": "./.opencode/codebase-index.sqlite"
}
}Optional sqlite extension override:
{
"storage": {
"backend": "sqlite-vec",
"path": "./.opencode/codebase-index.sqlite",
"extensionPath": "/absolute/path/to/sqlite-vec-extension"
}
}If storage schema or embedding dimensions change, rebuild the index:
index_rebuild --scope fullIf you hit initialization errors like dimension/schema mismatch, remove the backend storage path and run a full rebuild.