Session Git: Making Forked Sessions in DeepSeek Harness Traceable and Mergeable

Introduction

In DeepSeek Harness, forking a conversation to explore in parallel is a perfectly natural thing to do. But once you fork, the main session becomes blind to what happens in the branch—the conclusions reached, files modified, commands run, decisions made. Manually transcribing all of that back into the main session is tedious and prone to omissions. Session Git (dsh-session-git) provides a branch map for forked sessions, letting you merge a branch’s work back into the main session with a single click.

What It Is

Session Git is a workflow plugin for DeepSeek Harness, maintained by golemkit. It treats forked sessions like Git branches: it displays a branch tree in the right sidebar, recording each branch’s fork point and number of execution turns; and it supports merge operations from the main session or within a branch, injecting the branch’s summary and conclusions back into the main session so the Agent can use that information directly as the conversation continues.

Core Features

Branch Map

Open the “Session Git” tab in the right sidebar of the current session to see the branch tree surrounding it: where each branch forked from, how many turns each has run, and how far along the merge is. The “Session Git” panel in the left sidebar lists all branch trees in the workspace.

One-Click Merge

There are two ways to merge: click “Merge into parent” in the right sidebar while in the branch; or return to the main session and click “Merge here” in the merge prompt bar that appears above the input box. You can also type /merge directly in the input box to open a branch selector.

Incremental Merge

When merging the same branch, only new content since the last merge is added to the summary. If you need to start from scratch, add the --all flag to the command.

Silent Merge

The merged summary is queued and sent to the Agent along with your next message, without interrupting the current conversation. A prompt bar appears above the input box indicating the merge is queued. If you want the Agent to process the merge result immediately, add --wake to the command, or write a note after --.

Unmerged Reminder

When you return to the main session and notice that a branch has new unmerged work, the merge prompt reappears above the input box. This prompt only reappears after the branch has completed a new round of conversation.

Agent Access

The plugin informs the Agent’s runtime context of the current branches. The Agent can call session_branches to retrieve the branch list, then call session_branch_merge to merge a specific branch. Reading content this way also counts as a merge.

Installation & Activation

This plugin requires DeepSeek Harness 0.2.1-rc.5 or later.

Install via UI: In Harness, go to Plugins → Add plugin → Install a third-party plugin, and enter the repository URL:

https://github.com/golemkit/dsh-session-git

Install via command line:

dsh plugin --profile web add github:golemkit/dsh-session-git

After installation, restart Harness as prompted.

Typical Usage

Merging in the UI

  1. Below any reply, click “Branch into a new conversation,” or select “Fork session” from the session menu in the left sidebar, and continue exploring in the branch.
  2. After finishing exploration, open the “Session Git” tab in the branch’s right sidebar and click “Merge into parent.”
  3. Return to the main session and send your next message. The Agent will directly reference the branch’s summary as context in its response.

Merging via Command

Type the following in the input box:

/merge

This lists all branches for selection. You can also specify a branch directly:

/merge #2

Or match by title or the first 4+ characters of the session ID.

The level of detail in the merge is controlled via parameters:

  • summary: Show summary only (default)
  • full: Full summary
  • last: Content of the most recent merge
  • turns:3: Show full content of the last 3 conversation turns

Example:

/merge #2 full --wake -- organize after writing

This merges the full content of branch #2 and immediately wakes the Agent to process it.

Viewing the Branch Map

In the input box of any session, type:

/branches

The current branch map will be printed in the session.

Use Cases & Notes

Session Git is well suited for scenarios where you frequently fork sessions to explore different paths, such as: validating multiple approaches, testing tools in isolated environments, or splitting a complex task across multiple branches for parallel processing.

This plugin runs with the permissions of the current DSH process. All merge operations read local session records only—no network requests are made, and no session data is sent to any external service. We recommend reviewing the source code and license (MIT) in the GitHub repository before installing.

In Closing

Session Git turns DeepSeek Harness’s forked sessions into a traceable, navigable branch structure. No matter how much exploration you do in a branch, you can merge the results back into the main session with one click—eliminating redundant input and reducing the risk of lost information. This plugin is a concrete realization of the “everything is a plugin” philosophy.

  • Directory page: https://www.skillhub.cn/plugins/golemkit/dsh-session-git
  • GitHub: https://github.com/golemkit/dsh-session-git
羽毛球分组比赛记分
小程序二维码

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

Xiaoye