DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Git Ai — DSH Plugin for DeepSeek Harness
← Plugins

dsh-git-ai

Git Ai

DeepSeek Harness plugin that records agent edits with git-ai (agent-v1 checkpoints)

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-git-ai@0.1.2
READMECompatibilityVersions

Compatibility and provenance

Git Ai is published as dsh-git-ai and currently resolves to version 0.1.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.1.2stable
8/23/2026
0.1.1stable
8/23/2026
0.1.0stable
8/23/2026

Related plugins

Loading related plugins…

Latest
0.1.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
26.3 kB
Files
9
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
75
Last push
8/23/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in developer-tools.

DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Plugindsh-pluginA community plugin marketplace for DeepSeek Harness, built to the official plugin spec — browse, search and install 9000+ human-curated community plugins without leaving the app. · DeepSeek Harness 社区插件市场(遵循官方开发规范):9000+ 人工精选社区插件,每日更新。Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessions

README

dsh-git-ai

English | 中文

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.

Preview

Hover over a line of code in VS Code to see who wrote it, with which model, and in which DeepSeek Harness session it was generated:

Git AI attribution popover

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-git-ai

pnpm ≥ 10 note: dsh plugin add forwards to pnpm, and pnpm 10+ rejects adding to a workspace root with ERR_PNPM_ADDING_TO_ROOT. dsh profiles are pnpm workspace roots by design, so on machines with pnpm ≥ 10 use -w (or add ignore-workspace-root-check: true to ~/.dsh/profiles/<profile>/pnpm-workspace.yaml once):

dsh plugin --profile web add -w dsh-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-git-ai:
    gitAiPath: git-ai
    agentName: deepseek-harness

Config

import type { Config } from 'dsh-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