dsh-chat-git: A DeepSeek Harness Plugin That Turns Every Conversation into a Git Checkpoint Chain

Introduction

The core philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” In AI coding scenarios, conversation history and the code workspace often constitute two sets of independent logic, leading to high rollback costs and context loss. dsh-chat-git aims to solve this problem by turning each conversation turn into a Git checkpoint chain, binding the conversation flow with code changes, and allowing users to return to the code state of any specific turn at any time.

What is this

dsh-chat-git is a profile bundle plugin for DeepSeek Harness, written by the maintainer NOOB-P. It utilizes Git as the underlying storage to implement bidirectional tracking between conversation and workspace: it automatically commits the workspace at the end of each conversation turn while recording the conversation content. This plugin does not rely on external npm packages and implements its functionality through routes and hooks injected by the host.

Core Features

  • Automatic Checkpoints: Automatically creates Git commits at the end of each AI Coding conversation turn, with support for setting commit intervals (every turn / every N turns).
  • History and Rollback: Provides a history tab that supports viewing history, forking conversations, and editing & resending.
  • Independent Rollback: Supports rolling back the conversation and workspace independently without interfering with each other.
  • Auto-generated Titles: Uses the model to summarize prompts and changes to automatically generate commit messages conforming to the Ai-coding: format.
  • Zero Runtime Dependencies: Runs purely locally, does not depend on remote services, and introduces no npm dependencies.

Installation and Activation

The plugin is installed via a GitHub repository. A restart of DSH Desktop is required after installation to load it.

dsh plugin --profile web add github:NOOB-P/dsh-chat-git

Prerequisites:
* Node.js ≥ 22
* Git (Optional but strongly recommended for committing checkpoints)

Typical Usage

  • Auto-save: Automatically commits the workspace once at the end of each conversation turn, allowing you to return to the code state of any turn at any time.
  • Rollback Operation: Click the rollback button in the row of turn icons. Click once to await confirmation, and click again to confirm, rolling back both the code and the conversation simultaneously.
  • Restore to Specified Commit: Click “Restore to here” on a specific commit in the right side of the history tab (Workspace Git section). The workspace will be overwritten via git checkout.

Scenarios and Notes

  • Suitable for AI Coding scenarios that require frequent iteration and code rollback.
  • Only reads Git status within the current session’s working directory and will not extend beyond the current working directory.
  • The commit message format is fixed as the Ai-coding: prefix + model-generated description.
  • The plugin has no independent remote service and no runtime npm dependencies.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye