ZSLlearn/dsh-git-tools

ZSLlearn★ 0JavaScript最后同步: 2026-08-14

在 GitHub 打开

Structured, safety-guarded git tools for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) agent presets — a zero-dependency Cordis plugin (plain ESM, no npm dependencies), hardened through real-repo testing.

README 摘要

dsh-git-tools Structured, safety-guarded git tools for DeepSeek Harness agent presets — a zero-dependency Cordis plugin (plain ESM, no npm dependencies), hardened through real-repo testing. Contents Path What it is src/index.js The plugin: apply registers 10 git tools; consumes only ctx.get('subprocess') / ctx.get('fs') / ctx.tools.register test/register-check.mjs Zero-dependency self-check: runs apply against a mock context, asserts 10 complete tool schemas + guardrails docs/dsh-git-tools-plan.md Design document: architecture decisions, safety-guardrail list, full test matrix, iteration/fix log testdata/ Test fixtures (throwaway, gitignored): a diverged repo with a bare remote, a Chinese-named repo, a scratch repo, a non-repo dir The plugin 10 model tools: git repo , git status , git log , git branch , git diff , git stage , git commit , git reset , git push , git fetch . Tool What it does Guardrails git repo repo root, current branch, HEAD, remotes, git version read-only git status branch, upstream tracking, ahead/behind, staged/unstaged/untracked/conflicts read-only git log recent commits (hash, author, date, subject); count / branch / path filters read-only git branch branches …

在 GitHub 查看完整 README →
Agent/智能体dsh-plugindsh-pluginsgitagent

分类