hy-sde/dsh-git--packages-git-tool-git ↗★ 0

@hy-sde-org/dsh-tool-git

面向模型的智能体 Git 提交、评审与工作区工具 适合需要让模型分析变更、分步提交、并行代码评审及管理隔离Git工作树的任务。

套件
@hy-sde-org/dsh-tool-git
相容性
待驗證
Harness 依賴範圍
^0.2.0-rc.2
Cordis 依賴範圍
~4.0.4
版本
0.2.0-rc.2
授權
NOASSERTION
最近更新
2026年10月3日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@hy-sde-org/dsh-tool-git

Model-facing agentic git tools over the host ctx.git service:

  • commit — analyze the current git changes and produce a conventional-commit split proposal (read-only; never edits the repo).
  • commit_apply — execute a validated split-commit plan: hunk-aware staging, lock-file autoplacement, topological dependency order, cycle rejection before any write, atomic per-commit execution, dryRun preview. --push pushes the current named branch (upstream recorded) and is released only by a current review --target staged ship verdict.
  • review — fan the diff out to parallel reviewer subagents, rank every finding P0–P3 with confidence, and aggregate a ship/reject verdict; a staged review records the verdict consumed by the commit_apply --push gate.
  • worktree — acquire / release / list / prune / destroy over a persistent pool of isolated git worktrees with durable leases. The pool is shared infrastructure: never administer a slot you do not own — pruning or destroying a sibling slot destroys another task's live work.

Read surfaces (commit / review) resolve through a host vcs service when one is registered and probing clean, and otherwise degrade to ctx.git — the unpublished @deepseek-ai/dsh-vcs is never required.

Plus the git:tools system-prompt section. Agent-plane: the package mounts as a preset row (inject = tools, systemPrompt, git) and resolves the host git service; it registers no service of its own.

Install & mount

dsh plugin --profile web add @hy-sde-org/dsh-git @hy-sde-org/dsh-tool-git

Copy examples/agent-preset/ to ~/.dsh/.agent-presets// and select it in the Web UI preset picker. The preset row configures reviewProvider: spawn and maxReviewers: 4.

Development

pnpm install
pnpm run check   # tsc --noEmit
pnpm run build   # tsc -p tsconfig.build.json → dist/
pnpm run test    # vitest (47 tests: commit/review/worktree/push-gate end-to-end on real temp repos)