Huasfan/dsh-tool-git
Git tools for DeepSeek Harness agent
Git tools for DSH agents: nine structured, model-facing tools that replace shelling out to git and parsing text. git_status returns branch/head/clean/staged/unstaged/untracked/conflicts; git_diff returns diff text or a numeric stat summary with a UI diff card; git_log returns structured commits (hash/shortHash/author/date/subject); git_add stages by paths or all and reads back the staged files; git_commit takes a required message plus optional body, amend and stageAll, returning the new hash/branch and a nothing-to-commit reason on an empty index; git_branch lists, creates, checks out or deletes branches; git_show shows a commit or a file at a revision with a UI diff or read card; git_restore discards working-tree changes or unstages and reports the files actually changed; and git_merge merges with optional noFF/abort/message, returning the new HEAD or the conflicts. All tools accept workdir, defaulting to the session workspace.
Install
dsh plugin --profile web add github:Huasfan/dsh-tool-gitREADME install quoted verbatim, including the first-install caveat: pnpm refuses to run build scripts until explicitly allowed, and dsh prints the exact key to add to the profile's pnpm-workspace.yaml (allowBuilds: dsh-tool-git: true); the README also suggests pinning a commit (github:Huasfan/dsh-tool-git#<commit-sha>). Registry check 2026-09-13: a package named dsh-tool-git exists at 0.1.3 but its repository field points at a different project (github.com/lxj808624/dsh-tool-git), so no npm claim is made and the README's GitHub form is used.
Compatibility
Tested against DeepSeek Harness 0.1.0-rc.6 — the README says the peer/dev dependency pins in package.json match the packages shipped with that version — and requires git ≥ 2.23 for --porcelain=v2 and git restore. It warns that harness plugin interfaces are still evolving during the preview and asks users to re-run pnpm test after upgrading dsh and report breakage.
Details
- Repo: Huasfan/dsh-tool-git
- Category: Coding & Development
- Stars: 2
- Version: Not claimed from npm (the dsh-tool-git name on npm resolves to a different repository); install from the README's GitHub form
- Last push: 2026-08-14
- First seen: 2026-08-14
Recent updates
The README carries a compatibility note and a link to RELEASE-NOTES.md for per-version release notes rather than an in-README changelog; verify that file for current changes.
FAQ
- How do I install it?
- dsh plugin --profile web add github:Huasfan/dsh-tool-git — on the first install pnpm needs the README's allowBuilds: dsh-tool-git: true key in the profile's pnpm-workspace.yaml.
- Which DSH version is it tested against?
- The README says DeepSeek Harness 0.1.0-rc.6, with package.json peer/dev pins matching that version, and it asks users to re-run pnpm test if they upgrade dsh.
- What git version is required?
- git ≥ 2.23, because the tools use --porcelain=v2 and git restore.
Alternatives
it-coder-yy/dsh-git-plugin · JFWaskin/dsh-git-nexus · lonelymoon87/dsh-gitflow