ChatGPTClaudeGrok / X / CursorGemini

dsh-spinejit: A Context Management DSH plugin That Builds a Persistent Subtask Tree

ghabix/dsh-spinejit

Memory & ContextVerified
Listed on 2026-11-20
Page last updated 2026-11-20

A DSH plugin that gives DeepSeek Harness a persistent subtask tree and compiles it into minimal context while keeping prefix cache hits.

dsh-spinejit is a context management plugin for DeepSeek Harness that organizes long-horizon execution into a persistent subtask tree. It targets the pain of a linear context that grows bloated as work proceeds: finished explorations and dead ends keep piling up next to unfinished work, slowing every model call. The plugin lets the agent open subtasks with explicit goals, switch or close them locally, and spawn parallel subtrees when needed, then compiles that tree into minimal effective context before each call, keeping active work in full while folding completed parts into conclusions. It renders the live work tree in Web, Desktop, and terminal interfaces, and runs entirely locally without network requests or keys.

How to Install

install
npmdsh plugin --profile <your-profile> add @spinejit/dsh-spinejit

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Memory & Context
Platform
DSH Plugin
Author
ghabix
Distribution
Plugin

dsh-spinejit Key Features

Persistent subtask treeFold conclusions on closePrefix cache stays warmLive tree in Web/Desktop/TUI
Listed on dsh-plugin.org

dsh-spinejit Repo Summary

What Does It Do?

Spine is a DSH plugin for DeepSeek Harness that turns long-horizon execution into a persistent subtask tree. It solves the problem of a flat linear context where finished explorations and dead ends pile up next to unfinished work: the agent opens subtasks with explicit goals, switches or closes them locally, and spawns parallel subtrees when needed. Before each model call, it compiles that tree into minimal effective context, keeping active work in full while folding completed subtasks into their conclusions without breaking prefix caching. Maintained by GhabiX under Apache-2.0, it runs entirely locally.

Core Features

  • Unified work-tree control: sequential local steps and parallel child agents are managed together in one SpineTree, avoiding unnecessary cross-session subagent overhead on serial work.
  • Fold on close: closing a subtask immediately folds its intermediate turns using the conclusion the agent wrote while context was still fresh, with no separate summarization pass; detailed history stays in the session log.
  • Prefix cache keeps hitting: completed inner subtasks collapse at the active suffix, leaving preceding parent context byte-for-byte unchanged.
  • Live tree view: renders the interactive SpineTree in the conversation input dock of DSH Web and Desktop, and in status rows above the prompt in dsh-tui.
  • Fully local: runs through an embedded runtime with no external network requests, API keys, or cloud services.

How to Use This Plugin?

After enabling it in a DSH web, desktop, or dsh-tui profile, the plugin automatically configures spinejit as the context manager. Then just work as usual: the agent opens, switches, and closes subtasks on its own, or spawns subtrees for parallel work, while the input dock shows the live work tree. Because it owns the session context lifecycle, it disables basic compaction, the compact command, tool-result pruning, and image offload in the target profile, so do not load other context-rewriting DeepSeek Harness plugins alongside it.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: ghabix/dsh-spinejit. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ