- Accueil
- Plugins
- Sessions et messages
- spine-plugin (dsh)
spine-plugin (dsh)
ghabix/spine-plugin/packages/dsh
Subtask-tree context manager for DeepSeek Harness (@spinejit/dsh-spinejit): adds spine_open, spine_close, spine_next and spine_spawn tools so the agent works on a persistent SpineTree, replaces closed subtasks with their submitted memories while keeping active work and earlier prefix tokens intact, and renders the live tree in the Web/Desktop input dock and dsh-tui status rows.
Installer
dsh plugin --profile web add github:ghabix/spine-pluginCe plugin se trouve dans le sous-répertoire packages/dsh du dépôt.
README
Spine for Pi & DeepSeek Harness
English | 简体中文
Your agent's context, shaped like its task.
Long-horizon tasks unfold as nested subtasks, yet an agent's context is a flat linear stream where finished explorations and dead ends pile up alongside unfinished work. Spine places execution under a persistent work tree (SpineTree, acting as the structural spine of long-horizon work): the agent opens subtasks with explicit goals, switches or closes them locally (Open, Close, Next), and delegates parallel subtrees when needed (Spawn). Before each model call, Spine compiles SpineTree into minimal effective context—keeping active work in full while folding finished subtasks into their returned conclusions.
In the Spine paper (arXiv:2610.37224), integrating Spine into Pi improves SWE-Milestone Score by 9.5%–17.5% across Gemini 3.8 Flash and open-weight Qwen 3.8 27B, while cutting average input tokens by 67.8% and commercial API cost by 45.4%.
Highlights
- Unified work-tree control. Sequential local steps (
Open/Close/Next) and parallel child agents (Spawn) are managed together in oneSpineTree, avoiding unnecessary cross-session subagent overhead on serial work. - No separate summarization pass. Closing a subtask folds its intermediate turns immediately using the conclusion written by the agent while full task context is still fresh; detailed history stays archived in the tree.
- Prefix cache keeps hitting. Completed inner subtasks collapse at the active suffix, leaving preceding parent context byte-for-byte unchanged.
- Portable Spine SDK. Shared Rust/WASM runtime core (
@spinejit/spine-sdk) powering Pi, DeepSeek Harness, and SpineCodex.
Install & Use
1. Spine for Pi (@spinejit/pi-spinejit)
pi install npm:@spinejit/pi-spinejit
# Recommended companion: compact terminal process tree (supports regular & fullscreen modes)
pi install npm:@spinejit/pi-compact-tree
Start Pi and the agent organizes multi-step work on SpineTree automatically. The live tree widget above the input shows active progress (◉ active, ✓ completed); run /spine-tree at any time to browse the full tree and inspect any node's memory without disturbing the session. Package details: packages/plugin.
Upgrading from the legacy
@spinejit/spine-pluginname? Runpi remove npm:@spinejit/spine-pluginfirst.
View Spine for Pi live demo (task tree & /spine-tree memory browser)

2. Spine for DeepSeek Harness (@spinejit/dsh-spinejit)
Add the plugin to your DSH Web or Desktop profile—the bundle automatically configures Spine as the context manager (disabling built-in flat compaction and tool-result pruning):
# For DSH Web
dsh plugin --profile web add @spinejit/dsh-spinejit
dsh web
# For DSH Desktop (macOS bundled CLI; restart DeepSeek Harness.app and open a new chat)
"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" plugin --profile desktop add @spinejit/dsh-spinejit
The live SpineTree renders in the input dock of the Web / Desktop clients and above the prompt in dsh-tui. Package details: packages/dsh.
View Spine for DeepSeek Harness live demo

Spine Ecosystem & Companion Pi Extensions
- SpineCodex — Standalone OpenAI Codex distribution with Spine built in (
npm install -g @spinejit/spine-codex@latest). - Companion Pi extensions:
@spinejit/pi-compact-tree— Compact process tree for Pi's terminal UI (regular&fullscreenmodes).@spinejit/pi-background-job— Background jobs and log monitors that wake the agent on exit or matching output.@spinejit/pi-btw-cached—/btwside questions sharing the main session's prompt-cache prefix without polluting history.@spinejit/pi-timeout-policy— Unified foreground timeout policy acrossbash,grep, andfind.
Source layout and architecture notes: doc/DESIGN.md. Licensed under Apache-2.0.
Citation
@misc{xiang2026spine,
title = {Spine: Compiling Subtask Trees into Structured Context for Long-Horizon Coding Agents},
author = {Jiahong Xiang and Kunqiu Chen and Lingming Zhang and Yuqun Zhang},
year = {2026},
eprint = {2610.37224},
archivePrefix = {arXiv},
primaryClass = {cs.SE},
url = {https://arxiv.org/abs/2610.37224}
}
Plugins associés
billion-context
ranxianglei/billion-context
dsh-web-ui (dsh-chat-recovery)
zhu1090093659/dsh-web-ui
dsh-synapse
liangmianya/dsh-synapse
dsh-archive-manager
michengai/dsh-archive-manager