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

@sidleo3/codex-wiki

v0.7.2

Published

Codex plugin for the llm-wiki knowledge base: bundled skill, 14 wiki_* MCP tools, and session-time APPEND_SYSTEM_PROMPT.md rule injection. Self-contained and shared with DSH / Pi / MCP / Skill forms.

Readme

@sidleo3/codex-wiki — Codex 插件(llm-wiki 知识库)

Codex 形态把 llm-wiki 接进 Codex 插件体系,目标是尽量对齐最完整的 DSH 版:

  • 内置 skill:skills/wiki/SKILL.md 负责“何时必须查库、怎么检索、何时主动记录”。
  • 14 个 wiki_* MCP 工具:与 DSH / Pi / MCP / Skill 形态同名、同参、同输出。
  • 会话规则注入:UserPromptSubmit / SessionStart hook 读取当前 bundle 与 各目录 APPEND_SYSTEM_PROMPT.md,规则变化后下一轮自动刷新;内容未变不重复注入。
  • 同一份数据与注册表:默认 ~/.agents/wiki,多目录走 ~/.agents/wiki-registry.json;写入门控、trust、Git/飞书同步仍然只由 packages/core 实现。
  • 零运行时依赖:插件内嵌 vendor-core 与 MCP 工具层,自带轻量 stdio transport, 安装后不依赖仓库路径或 npm registry。

与 DSH 版的能力对照

| | DSH 插件 | Codex 插件 | |---|---|---| | 14 个 wiki_* 工具 | ✅ | ✅ 同名同参同输出 | | 恒定工具引导 | system-prompt section | MCP instructions + skill | | 当前 bundle / 目录 / APPEND 规则 | runtime context,每轮现读 | hook 注入;内容变化才刷新,compact 后重建 | | 规则改动即时生效 | 下一轮 | 下一轮 | | wiki_use 切换粒度 | 会话级 | 一个 MCP 进程级;Codex 会话通常各自启动进程 | | 图形化设置卡片 | ✅ | ❌ Codex 插件无对应设置页;用注册表 / 工具管理 | | 定时自动同步 | DSH 进程内定时器 | ❌ 保持手动 wiki_sync |

安装(本地 marketplace)

插件目录必须完整复制到 marketplace 指向的位置。推荐把本仓库的 packages/codex 链接为 ~/plugins/codex,再在个人 marketplace 中注册:

mkdir -p ~/plugins
ln -s /absolute/path/to/llm-wiki/packages/codex ~/plugins/codex

在 ~/.agents/plugins/marketplace.json 中加入:

{
  "name": "personal",
  "interface": { "displayName": "Personal" },
  "plugins": [
    {
      "name": "codex",
      "source": {
        "source": "local",
        "path": "./plugins/codex"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Productivity"
    }
  ]
}

然后在 Codex 中打开 Plugins / /plugins 安装,或执行:

codex plugin add codex@personal

安装或更新后请新开一个会话,让 Codex 重新加载插件 skill、MCP 工具与 hooks。 非 managed hook 首次运行前需要在 /hooks 中 review 并 trust。

MCP 配置

.mcp.json 使用插件根目录作为 cwd,并启动同包服务:

{
  "mcpServers": {
    "wiki": {
      "command": "node",
      "args": ["./bin/wiki-mcp.mjs"],
      "cwd": "."
    }
  }
}

可用以下命令自检:

node packages/codex/bin/wiki-mcp.mjs --check

目录结构

packages/codex/
├── .codex-plugin/plugin.json   # Codex 插件 manifest
├── .mcp.json                   # 内置 wiki MCP 服务
├── bin/wiki-mcp.mjs            # 零依赖 stdio transport
├── hooks/
│   ├── hooks.json              # SessionStart / UserPromptSubmit
│   └── inject-context.mjs
├── skills/wiki/SKILL.md        # Codex 工作流说明
├── lib/                        # MCP 工具层(同步自 packages/mcp)
├── vendor-core/                # core(同步自 packages/core)
└── scripts/sync-upstream.mjs

开发与验证

node packages/codex/scripts/sync-upstream.mjs
npm --prefix packages/codex run check
npm --prefix packages/codex test
python3 /Users/zhang3/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py packages/codex

修改 packages/core 或 packages/mcp/lib 后,重新运行 sync-upstream.mjs,确保 vendor 副本同步后再提交。

许可

MIT