opencode-lazy-pluginsOpenCode plugin that hides ClaudeCode plugin commands from autocomplete and provides a /plugins command to access them on demand
1
10
近 7 天 2
20.1
生态多维模型
5 个月前
2026-03-09
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-lazy-plugins@1.0.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-lazy-plugins@1.0.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-lazy-pluginsopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
An oh-my-opencode plugin that declutters your slash-command autocomplete by hiding plugin commands behind a single /plugins gateway.
The Problem
When you install several oh-my-opencode plugins, each one registers its own slash commands. The autocomplete list grows fast and becomes noisy — making it hard to find the commands you actually use.
How It Works
opencode-lazy-plugins runs at config time and:
- Detects all commands registered by other plugins (those with
(plugin: ...)descriptions) - Removes them from the autocomplete namespace
- Registers a single
/pluginscommand that serves as an on-demand gateway to all hidden commands
Your core commands stay clean. Plugin commands remain accessible when you need them.
/plugins Usage
/plugins # Interactive picker — browse all plugin commands
/plugins semgrep # Fuzzy match — jumps straight to the best match
Install
opencode plugins add opencode-lazy-plugins
Or add to your opencode config manually:
{
"plugin": [
...,
"opencode-lazy-plugins@latest",
...
]
}
Before / After
Before — autocomplete flooded with plugin commands:
/semgrep-rule-creator:semgrep-rule
/semgrep-rule-creator:semgrep-rule-creator
/building-secure-contracts:audit-prep-assistant
/building-secure-contracts:code-maturity-assessor
/building-secure-contracts:guidelines-advisor
/static-analysis:semgrep
/static-analysis:codeql
... (30+ more)
After — one entry point:
/plugins