SharperFlow Open Source

lgrep

Dual-engine code intelligence for OpenCode. Search by intent when the agent does not know the symbol yet, then pivot into exact structure tools when it does.

semantic
symbol
where is auth enforced between route and service?
semantic hit -> `src/auth/middleware.py`
outline -> `authenticate`, `require_role`, `verify_token`
symbol -> `src/auth/middleware.py:function:authenticate`

Why teams use it

Semantic search for intent-level discovery before you know the symbol

Exact symbol lookup, file outlines, repo outlines, and targeted source retrieval

Local-first indexes with one warm MCP server shared across OpenCode sessions

MIT licensed and safe for commercial use

What it combines

  • Semantic engine using Voyage Code 3 with local LanceDB storage
  • Symbol engine using tree-sitter for exact lookup and outlines
  • Shared MCP server for parallel OpenCode sessions and agents
  • Local-first retrieval so your code stays on your machine

Quick install

pip install git+https://github.com/Sharper-Flow/lgrep.git
lgrep install-opencode

Semantic search needs `VOYAGE_API_KEY`. Symbol tools work without it.