Hierarchical session tree for the sidebar - native subagent trees plus an optional organization-derived hierarchy, with collapsed branch counters and orphan/cycle defense.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:BestQ-A/dsh-session-tree
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Hierarchical session tree for the DeepSeek Harness (DSH) sidebar — turn the flat session list into a tree.
Forked and reworked from an internal bundle (upstream code © 2026 DeepSeek, MIT). Private roster data was stripped; the org-projection generator is now fully generic.
Features
- Native subagent trees — real spawn parent/child chains render as a tree, with ordering and completion state preserved from official semantics.
- Optional organization hierarchy — derive an "org reporting" layer on top of sessions from your own roster (memberId / reportsTo / bound sessionId). Clearly marked (
data-hst-relationship=organization) and never confused with native subagent lineage. - Collapsed branch counters — collapsed group nodes aggregate running sessions and real per-branch unread counts (not the group leader's own state).
- Defensive rendering — orphans, cycles and duplicates are rejected at generation time; missing parents degrade to root-level rows instead of disappearing.
- Search stays flat — bounded flat search as the host provides; selecting a result expands ancestors and scrolls the target into view.
Install
From the DSH plugin market (once listed), or from source:
dsh plugin --profile desktop add github:BestQ-A/dsh-session-tree
See INSTALLATION.md for build-from-source details.
Organization projection (optional)
The org layer is generated from a roster you control. Example shape (.omo/teams/<team-id>/team.json):
{ "definition": { "members": [
{ "memberId": "D01", "boundSessionId": "<session-uuid>", "organization": { "role": "Design|Lead|01", "reportsTo": "ROOT" } },
{ "memberId": "D02", "boundSessionId": "<session-uuid>", "organization": { "role": "Design|Member", "reportsTo": "D01" } }
] } }
Then: node scripts/build.mjs <dsh-install-root> <project-root> regenerates the embedded projection. Without a projection the plugin still renders native subagent trees — everything degrades gracefully.
License
MIT — see LICENSE.upstream for the upstream DeepSeek notice this fork builds on.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10696
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10696
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8484
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7509
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5395
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1082
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.