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-codebuddy-sdk

v0.1.0

Published

DeepSeek Harness plugin: CodeBuddy (Tencent Agent SDK) as an LLM provider adapter (ctx.llm). WIP — port of pi-codebuddy-sdk.

Readme

dsh-codebuddy-sdk

把 CodeBuddy(腾讯 Agent SDK)注册为 DeepSeek Harness 的 LLM provider 适配器(ctx.llm):模型走 CodeBuddy,工具、会话、界面仍由 Harness 掌管。

由 pi-codebuddy-sdk 移植。

English · 中文

功能

  • 在 codebuddy 路由上暴露 CLI 自己的模型目录
  • 把文本、思维链、工具调用转成 Harness 的 StreamChunk 协议
  • 通过进程内 SDK MCP server 把 Harness 工具桥接给 CodeBuddy,工具仍由 Harness 执行
  • 每步把 Harness 历史写入 CodeBuddy 会话文件并 resume,因此多轮上下文能在 CLI 的「每步一个进程」模型下保留
  • 所有结束路径(包括模型发现与中断)都会回收 CLI 子进程

快速开始

dsh plugin add dsh-codebuddy-sdk

需要 codebuddy CLI 在 PATH 上且已登录(即终端里 codebuddy 能正常用)。

- id: codebuddy
  name: dsh-codebuddy-sdk
  config:
    provider: codebuddy            # provider 路由(默认 codebuddy)
    model: hy3-preview-agent-ioa   # 默认模型 ID(默认用 CLI 自带默认值)
    # pathToCodebuddyCode: /opt/homebrew/bin/codebuddy
    # permissionMode: bypassPermissions

在 Harness 的模型选择器里选 codebuddy/<id> 即可走这个适配器。

配置

| 键 | 默认 | 说明 | |---|---|---| | provider | codebuddy | 注册到 ctx.llm 的路由名 | | model | CLI 默认 | 请求未指定模型时发送的模型 ID | | pathToCodebuddyCode | 从 PATH 查找 | 显式指定 CLI 路径 | | cwd | 进程 cwd | CLI 工作目录 | | permissionMode | bypassPermissions | CLI 权限模式;工具审批由 Harness 负责 | | contextWindow | 估算值 | 覆盖所有模型的上下文窗口 | | maxTokens | 估算值 | 覆盖所有模型的输出上限 |

隐私

  • 只与本地 codebuddy CLI 通信,不额外发网络请求
  • 不读取、不存储任何凭据(复用 CLI 自身认证)
  • 工具参数与结果只在 Harness 与 CLI 的本地控制协议之间传递

开发

npm install
npm run typecheck
npm run test:ci            # 单元测试,不需要 CLI 或凭据
npm run test:integration   # 可选,需要已登录的 codebuddy CLI
npm run build

License

MIT