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

@ryuu-64/dsh-session-tools

v0.7.0

Published

Let the agent start a new chat session, send a message to another one, or wait for it to finish.

Readme

dsh-session-tools

让 DeepSeek Harness 中的 AI 新建会话、给其他会话派任务,并把结果带回来。

适合把独立的调查或整理工作交给另一个会话,省去手动新建、复制背景、来回转述。新会话会出现在侧边栏,你可以随时打开,直接继续对话。

安装

需要已能正常使用的 DSH 和模型配置,以及 Node.js 22.19+(22 系列)或 24.x。dsh plugin 使用 pnpm 管理插件;请确保它在命令行中可用。

安装前请查看兼容说明,确认当前 DSH 和宿主配置受支持。

在终端中安装到你使用的宿主配置(profile),下面以 web 为例:

dsh plugin --profile web add @ryuu-64/[email protected]

安装后重启对应的 DSH 宿主。插件没有额外配置项;自定义宿主配置还需满足服务要求。

开始使用

在 DSH 对话中直接说你想做什么,无需自己填写工具参数。例如:

帮我新建一个叫「方案比较」的会话,比较 SQLite 和 PostgreSQL 在本地单人记账应用中的优缺点,给出推荐和理由。等它回答后,把结果告诉我。

  1. AI 准备好任务,并请求新建会话的确认。
  2. 允许后,新会话开始处理任务。点「已创建会话」卡片上的按钮,就能打开它。
  3. AI 可以等待这次消息的结果,再回到当前对话中继续回答。一次等待默认 60 秒、最多 5 分钟;超时后可以接着查,不必重新派任务。

想接着做之前的任务,先找对会话:

先找标题含「方案比较」的会话,列出标题和状态;如果还有结果,继续列下一页。先不要发消息。

确认目标后,可以继续:

让刚才找到的「方案比较」会话补充数据导出的注意事项,等它回答后把结果告诉我。

把任务背景写完整。 插件不会自动把当前对话复制给目标会话;对方需要的背景、文件路径和预期结果都应写进任务。

能做什么

| 你想做的事 | AI 使用的工具 | | --- | --- | | 新建一个可独立继续对话的会话,可放入已有工作区 | session_create | | 给另一个普通会话发送新消息 | session_send | | 按标题或工作区筛选、按最近活动分页列出会话 | list_sessions | | 查询某次消息的结果,或查看会话概况 | session_wait |

创建时可指定标题;不指定时,从首条任务生成固定标题,不额外调用模型。之后你仍可手动改名。

权限与限制

  • 新建和发送通常需要确认。 只有宿主明确同时启用完全访问权限与免审批时才跳过确认;宿主的拒绝规则仍然生效。列出和等待是只读操作。
  • 等待超时不等于失败。 取消等待也不会取消目标任务。继续查询同一次消息要同时使用回执里的 sessionId 和 messageId,不要自动重发。轮次正常结束也不保证任务本身做成功。
  • 只操作普通会话。 不能向当前会话自己发消息,也不能向子代理发消息。列表包含已归档的普通会话,并标明归档状态。
  • 工作区必须已存在。 插件不会创建工作区,也不提供会话创建后跨工作区搬移的功能。
  • 目标仍依赖 DSH 运行。 发送消息可重新打开已关闭的会话,但它必须保存过工作目录;只读等待不会唤醒目标。插件不提供宿主关闭后的后台执行服务。

更多参数、状态和出错处理见工具参考。

支持与交流

遇到问题或有建议,请提交 Issue。请附上 DSH、Node.js 和插件版本、安装方式,以及可复现的步骤;不要贴 API 密钥或私密对话。

QQ 交流群:1129212995。群聊用于使用交流和社区互助;需要持续跟踪的问题请先提交 Issue,再把 Issue 链接发到群里。群聊不替代 Issue 中可检索的正式记录。

由 Ryuu-64 维护,采用 MIT 许可证。