Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 639 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 639 Bytes

Sgrep OpenCode Plugin

What it does

  • sgrepSearch: semantic code search for the current project (uses sgrep search --json, optional --limit). Returns ranked snippets (path, lines, score, snippet).

Install

cd plugins/opencode
bun install

Use in OpenCode

Normal: if published/linked as sgrep-opencode, add by name:

{
  "plugins": ["sgrep-opencode"]
}

Dev (local checkout): point to the full path, e.g.

{
  "plugins": ["file:///Users/jenslys/Code/sgrep/plugins/opencode"]
}

Develop

cd plugins/opencode
bun run index.ts   # type-check / quick load test