opencode-map
← opencode plugins

▸ map/opencode-rag.md

OpenCodeRAG

Local-first RAG plugin for semantic code search with tree-sitter chunking and LanceDB

plugins✓ Dec 4

Facts

repository
github.com/MrDoe/OpenCodeRAG ↗
GitHub Stars
★ 76
Forks
9
license
MIT
npm / mo
5.4K
last push
Nov 27, 2026

install

"plugin": ["opencode-rag-plugin"] (v1 opencode.json) — "plugins": ["opencode-rag-plugin"] (v2; v1 plugins need porting)

## TL;DR

A local-first Retrieval-Augmented Generation plugin for OpenCode that enables semantic code search across your workspace. Features AST-aware chunking via tree-sitter (19 languages), incremental indexing with file-change detection, watch mode for live re-indexing, and configurable embeddings via Ollama (default) or OpenAI.

## Key points

## References

## Related entries

## Guides

Last updated: Nov 23, 2026