M0Rf30

OpenCode plugin implementing Claude's Tool Search pattern — BM25 + regex search to discover tools on demand, reducing context usage by 88-91%

42
0
100% credibility
Found Apr 28, 2026 at 42 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

An add-on for the OpenCode AI coding assistant that hides most tool details until needed, using smart search to fetch them on demand and save memory.

How It Works

1
📰 Discover the tool saver

While using your AI coding helper, you learn about an add-on that lets it handle tons of tools without slowing down or using too much memory.

2
📦 Add the add-on

You easily grab and include this helpful extension into your setup with a quick download.

3
⚙️ Pick your go-to tools

You choose a short list of everyday tools to always have ready, while others wait smartly in the background.

4
🚀 Launch your helper

You start up your AI coding assistant, and it shows a friendly note that everything is optimized and ready to go.

5
🔍 AI finds tools on demand

When your AI needs a special ability, it quickly searches and pulls up the perfect tool's full details, keeping things fast and light.

🎉 Supercharged coding sessions

You now enjoy lightning-fast AI responses with access to way more tools, coding more efficiently without the usual memory limits.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 42 to 42 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is opencode-tool-search?

This TypeScript plugin for OpenCode implements Claude's tool search pattern, using BM25 keyword matching and regex to let AI agents discover tools on demand instead of loading full descriptions upfront. It slashes context token usage by 88-91%—from thousands of tokens per turn—by stubbing non-essential tools with a short placeholder while keeping parameters intact for OpenAI compatibility. Install via npm, then add it to your opencode.jsonc with an alwaysLoad list for core tools like read or bash.

Why is it gaining traction?

Unlike core-mod forks, this standalone plugin hooks into OpenCode's official API (v1.4.10+), delivering ~90% of the savings without maintenance headaches, and pairs seamlessly with opencode github agent, opencode plugin vscode, or opencode github copilot setups. Developers dig the dual search tools—tool_search for natural queries like "github issues" and tool_search_regex for patterns like "lsp_"—plus tunable BM25 params and a system prompt that guides models to search first. It stacks with RTK for even more token wins in long sessions.

Who should use this?

AI agents builders stacking opencode plugins like opencode github action, opencode mcp tool search, or opencode plugin langfuse, especially if you're hitting context limits with 50+ tools from built-ins, custom plugins, or GitHub integrations. Ideal for backend devs running opencode github enterprise or opencode plugin intellij in high-tool workflows, and anyone experimenting with opencode plugin marketplace tools without wanting to fork the core.

Verdict

Grab it if you're on OpenCode and need token relief—solid docs and config make it dead simple, but with just 42 stars and 1.0% credibility score, treat it as experimental; test in non-prod first. Pairs great with the M0Rf30/opencode fork for full MCP support.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.