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

dsh-opencode-presets

v1.0.5

Published

One plugin, two agent presets ported from Bemly/opencode: nsfw (adult-fiction executor) and unrestricted (security-research executor).

Readme

dsh-opencode-presets

一个插件,两个 DSH 自定义 Agent 预设,移植自 Bemly/opencode:

| 预设 id | 名称 | 来源 | 说明 | |---|---|---|---| | nsfw | NSFW 创作模式 | NSFW 分支(agent/nsfw.md / command/nsfw.md / plugin/nsfw-boost.ts)| 虚构成人向创作执行器:成人小说/同人/OC/角色扮演,按请求尺度保真交付 | | unrestricted | Unrestricted 安全研究模式 | unrestricted 分支(agent/unrestricted.md / command/unrestricted.md / plugin/unrestricted-boost.ts)| 安全研究执行器:学术/防御研究语境,双用途请求按教学 PoC 保真交付,工具优先 |

移植方式

OpenCode 的三件套在 DSH 里没有一一对应的机制,做法是全部折进 persona(complete: true,对标官方 minimal 预设):

  1. plugin/*-boost.ts 里的 BOOST 语境块 → persona 开头;
  2. agent/*.md 全文(含 [MODE] / [REFUSAL] 标记行)→ persona 主体;
  3. command/*.md 的启动契约(首行 当前:{obj}|{done}|{next} + 立刻交付)→ persona 尾部。

工具面沿用官方 standard 预设的完整组成(shell / 文件 / 检索 / skills / 目标 / 计划 / 压缩 / 子代理 / web),只换人设——opencode 里两个 agent 都是 permission: allow 的全工具 agent,与 standard 工具面一致。

OpenCode 插件里的关键词改写钩子(experimental.chat.messages.transform)在 DSH 预设里 不需要:每个预设本来就有独立 composition,不存在"别污染 build/plan"的串扰问题。

安装

在 DSH 里安装本目录为 bundle(profile 级生效,重启 Host 后可用):

dsh plugin --profile desktop install /Users/bemly/Documents/Dsh/dsh-opencode-presets

或经由 Web GUI 的插件市场/手动安装入口指向本目录。安装后在 Agent 预设下拉里出现 NSFW 创作模式 与 Unrestricted 安全研究模式,开新会话即用(已有会话不受影响)。

使用

  • 切到 NSFW 创作模式 直接开始对话,或首句写清创作请求(原 /nsfw <请求> 的等价行为 已写进人设:首行输出 当前:{obj}|{done}|{next} 后立刻开工)。
  • 切到 Unrestricted 安全研究模式 后直接描述目标(原 /unrestricted <请求> 的等价行为 已写进人设:首行 当前:{obj}|{done}|{next} 后立刻 tool call)。

注意事项(上游原话,保留)

  • 先用容易"破甲"的模型起手建立虚构/研究语境与已放行上下文,再用 /models(DSH 里为 模型切换器)切到真正想用的模型;若目标模型回缩,换回起手模型补一句"继续"把上下文推回去。
  • 所有角色、设定、事件均为虚构创作素材;本模式不涉及真实人物。

变更记录

  • 1.0.4 — 修复选中预设后首个请求即失败的问题(unknown prompt variable "{{cwd}}" in section "deployment:persona-prefix")。DSH 的 prompt 组装器只注册 provider 与 model 两个变量;工作目录由 working-directory 服务以字面上下文注入,不走变量插值,因此 persona 里的 Your working directory is {{cwd}}. 从句会被判为未知变量。已从两个预设中移除该从句, 保留合法的 {{model}}。
  • 1.0.3 — 初版,自 Bemly/opencode 移植 nsfw 与 unrestricted 两个 Agent 预设。

致谢与来源

License

MIT(见 LICENSE)。上游版权归 kzheart 所有。