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

@chenhui2422/dsh-tool-git

v0.1.1

Published

Model-facing git tools for DeepSeek Harness: status, diff, log, add, commit (with conventional-commit checking), stash, branch

Readme

dsh-tool-git

面向 DeepSeek Harness 的模型侧 git 工具集:git_statusgit_diffgit_loggit_addgit_commit(带 conventional-commit 校验)、git_stashgit_branch

一切都是插件 —— 本包通过 ctx.tools 注册普通模型工具,schema 会自动流入 Agent 的系统提示词。

安装

本包声明为 dsh bundle,一条命令即可安装并激活:

dsh plugin --profile web add @chenhui2422/dsh-tool-git

(然后重启 profile。)手动方式:在 profile 的 cordis.patch.yml 中加入:

- insert:
    - id: tool-git
      name: '@chenhui2422/dsh-tool-git'

工具

| 工具 | 读写 | 功能 | |---|---|---| | git_status | 只读 | 分支、ahead/behind、已暂存/未暂存/未跟踪/冲突文件 | | git_diff | 只读 | 工作区或已暂存差异;--stat 摘要;路径过滤;行数上限 | | git_log | 只读 | 最近提交;可选带每个提交的文件列表 | | git_add | 写 | 暂存显式路径("." 默认禁止) | | git_commit | 写 | 提交暂存改动,带 conventional-commit 校验 | | git_stash | 写 | stash push / pop / list | | git_branch | 只读 | 分支列表 + 当前分支 |

Conventional commits

git_commit 默认校验 <type>(<scope>)?: <description> 格式,不合规时拒绝提交并给出可操作的错误提示。类型采用 Conventional Commits 规范:feat fix docs style refactor perf test build ci chore revert

配置

| 键 | 默认值 | 说明 | |---|---|---| | repoRoot | —(必填) | 操作的仓库;必填,确保模型不会自行选择工作目录 | | gitBin | git | git 可执行文件 | | conventional | true | 是否强制 conventional-commit 格式 | | allowDot | false | 是否允许 git_add 使用 "." | | allowedTypes | 规范列表 | 提交校验接受的类型 | | maxDiffLines | 200 | diff 输出行数上限 | | maxLogCount | 20 | git_log 数量上限 |

示例:

- patch:
    - id: tool-git
      config:
        repoRoot: /path/to/repo
        allowedTypes: [feat, fix, docs, chore]

安全说明

写工具(git_addgit_commitgit_stash)当前直接执行。接入 harness 审批缝(tools/pre-execute)在路线图中;在共享环境里建议优先使用只读工具。

开发

npm install
npm test   # 用一个临时 git 仓库驱动全部工具

路线图

  • 写工具接入审批门
  • git_commit 自动生成信息:读 diff → 模型总结 → 规范 subject
  • git_checkout / git_reset(危险操作,需审批)、git_showgit_tag

License

MIT