DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Hooks Git Ai — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
H

dsh-hooks-git-ai

Hooks Git Ai

DeepSeek Harness 插件,可使用 git-ai 记录代理编辑(agent-v1 检查点)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-hooks-git-ai@0.1.1
README兼容性版本

兼容性与来源证明

Hooks Git Ai 以 dsh-hooks-git-ai 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/8/22

版本

0.1.1stable
2026/8/22

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
19.9 kB
文件数
8
Surface
any
许可证
MIT
发布源
npm
周下载
0
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-hooks-git-ai

GitHub · npm · Issues

A DeepSeek Harness plugin that records which files the agent edited, with which model, and in which session into git-ai. It listens on the harness's tools/pre-execute / tools/post-execute interception points, translates each relevant tool call into git-ai's generic agent-v1 checkpoint payload, and invokes git-ai checkpoint <preset> --hook-input stdin with that JSON on stdin. git-ai itself is never modified; after the agent commits, git-ai writes the attribution into git notes and reports ai_additions/ai_accepted per tool-model pair.

Requirements

  • DeepSeek Harness installed via npm (npx @deepseek-ai/dsh@latest) — the plugin peer-depends on the official @deepseek-ai/* packages it ships with.
  • git-ai installed and on PATH (or point gitAiPath at it).

Install

The package ships as a profile bundle: installing it and activating the patch is one command.

dsh plugin --profile web add dsh-hooks-git-ai

dsh plugin forwards to pnpm inside your profile directory and auto-activates the bundle because the package declares dsh.bundle. Without the bundle mechanism (or to load it in a custom profile), add the row to your profile's cordis.patch.yml:

- dsh-hooks-git-ai:
    gitAiPath: git-ai
    agentName: deepseek-harness

Config

import type { Config } from 'dsh-hooks-git-ai'
const config: Config = {
  gitAiPath: 'git-ai',                  // optional: git-ai executable (bare name resolves through PATH)
  agentName: 'deepseek-harness',        // optional: `agent_name` stamped on every checkpoint
  model: '',                            // optional: explicit model; empty falls back to agent.options.model
  checkpointPreset: 'agent-v1',         // optional: the git-ai generic-integration preset
  timeoutMs: 10_000,                    // optional: git-ai invocation timeout
  trackBash: true,                      // optional: emit pre/post shell checkpoints for bash/pwsh
}

Checkpoint mapping

Harness pointToolgit-ai payload
tools/post-execute (success)write, editai_agent with edited_filepaths from file_path
tools/post-execute (success)str_replace_editor (not view)ai_agent with edited_filepaths from path
tools/pre-executebash, pwshpre_shell_command with command and tool_use_id
tools/post-executebash, pwshpost_shell_command with command and tool_use_id

Payload identity fields: repo_working_dir is the session cwd (falling back to the process cwd), agent_name is config.agentName, model is config.model when set else agent.options.model (else ''), and conversation_id is the session id. Relative file_path / path values are resolved against the session cwd into absolute paths; absolute values pass through unchanged. str_replace_editor view commands are read-only and never attributed.

A failed edit (result.isError === true) emits nothing; a failed bash command still emits its post_shell_command so the before/after pair closes. Bash tracking keys on the tool callId, so pre and post checkpoints share tool_use_id.

Failure containment

git-ai is an optional external dependency. A missing binary, nonzero exit, timeout, or executor rejection is logged as a warning and never propagated: the tool call and the agent turn proceed exactly as if the plugin were absent.

Verification

# 1. start the harness with the plugin loaded
dsh web
# 2. have the agent edit files in a git repository
# 3. check git-ai received the checkpoints
git-ai status --json
# 4. commit
git add -A && git commit -m "test"
# 5. check attribution
git-ai stats HEAD --json

Development

pnpm install
pnpm test          # vitest, 100% coverage on src/
pnpm typecheck
pnpm build         # emits lib/ for publishing

Publishing

pnpm build
pnpm publish --access public

Known Limitations and Deferred Work

  • File-edit tools emit only the post-edit ai_agent checkpoint. git-ai attributes a file's changed lines against HEAD or the last checkpointed value, so uncommitted edits made to the same file before the agent's edit (e.g. by the user) are also attributed to the agent. A pre-edit human checkpoint before each edit tool would isolate them; the bash pre/post pair already provides this isolation for shell commands.
  • An unmatched pre_shell_command is possible. If a bash tool is denied or canceled between pre and post, the pre snapshot stays open and later changes to the same files are treated as untracked by git-ai until the next checkpoint.
  • Synchronous invocation latency. Each tracked tool call awaits its git-ai checkpoint (bounded by timeoutMs) before the tool result settles.
  • Bash output attribution is snapshot-based. git-ai infers changed files from file snapshots, so a command that edits files outside the repo tree is not attributed.

License

MIT