npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-plan-cards-plugin

v0.1.2

Published

Plan card interaction enhancement plugin for OpenCode

Readme

opencode-plan-cards-plugin

让原版 OpenCode(桌面端 + CLI)获得更强的 plan 卡片问答流程,无需替换 opencode-cli.exe

功能

  • 提供会话命令:
    • /plan card on
    • /plan card off
  • 开启后仅在 plan 会话注入“先澄清、再确认、再输出完整计划”的系统约束。
  • 强化 question 工具描述,推动 2–3 选项 + 权衡说明的卡片提问格式。
  • 安装后默认自动开启卡片模式,可按会话临时关闭。

兼容性

  • OpenCode: 1.2.x(桌面端 / CLI)
  • 插件形态:file:// 与 npm 包均可
  • 一键安装器:Node.js 18+

安装(方式 A:npm 一键写配置,推荐)

npx -y opencode-plan-cards-plugin@latest setup

默认会自动:

  • 备份 ~/.config/opencode/opencode.json
  • 写入 plugin: ["[email protected]"]
  • 写入 agent.ask.hidden = true

可选参数:

npx -y opencode-plan-cards-plugin@latest setup --plugin [email protected]
npx -y opencode-plan-cards-plugin@latest setup --config "C:\Users\<you>\.config\opencode\opencode.json"

安装(方式 B:Git + file://)

git clone https://github.com/SAKURA1175/opencode-plan-cards-plugin.git opencode-plan-cards-plugin
cd opencode-plan-cards-plugin
npm install
npm run build

~/.config/opencode/opencode.json 中配置插件:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "file:///ABSOLUTE_PATH_TO/opencode-plan-cards-plugin/dist/index.js"
  ],
  "agent": {
    "ask": {
      "hidden": true
    }
  }
}

Windows 路径需要使用 file:///,空格写成 %20

安装(方式 C:npm 手动配置)

发布后,用户配置:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "[email protected]"
  ],
  "agent": {
    "ask": {
      "hidden": true
    }
  }
}

使用

  1. 安装并重启后,在 plan 会话中默认启用卡片澄清与确认流程
  2. 需要关闭当前会话卡片模式时输入:/plan card off
  3. 需要重新开启当前会话卡片模式时输入:/plan card on

验证清单

  1. 桌面端:进入 plan 会话后默认出现卡片问答流程
  2. CLI:同样默认生效
  3. /plan card off 后恢复原始 plan 行为
  4. agent.ask.hidden=true 后 UI 默认不显示 ask

发布 npm

npm run build
npm publish --access public

限制说明

  • 插件层是“流程引导增强”,不等于内核级强约束。
  • 如需硬拦截(例如强制 plan_exit 前置条件),仍需维护内核分支。