跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    Mc01

    Lazy Plugins

    v1.0.0工具与命令
    opencode-lazy-plugins

    OpenCode plugin that hides ClaudeCode plugin commands from autocomplete and provides a /plugins command to access them on demand

    GitHub 星标

    1

    月装机量

    10

    近 7 天 2

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 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:

    1. Detects all commands registered by other plugins (those with (plugin: ...) descriptions)
    2. Removes them from the autocomplete namespace
    3. Registers a single /plugins command 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
    

    License

    MIT