rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:blindcat-10835/dsh-session-studio
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文说明 · English
A session manager panel for the DSH Web GUI: browse your sessions grouped by status (7 states) / time bucket / tag, with tag rules, AI batch rename and AI auto-tagging (always preview-then-apply, slow work runs as background jobs), archive and trash. Row-level actions reuse the native sidebar's own context menu and row seats instead of inventing a parallel UI.

The native sidebar is one column of sessions ordered by working directory. It cannot tell you who is waiting on me, what died, or which of these belong to the same project. This plugin gives you a grouped, filterable asset view of the same sessions.
And when a batch of sessions needs renaming or tagging, clicking through them one by one is not realistic. Here you select them, let the model produce a list, confirm it, and write it back in one pass.
| Tag manager | Native context menu + tag submenu |
|---|---|
![]() |
![]() |
| In-panel detail split | Native sidebar decorations |
|---|---|
![]() |
![]() |
# Into the current profile (web):
dsh plugin --profile web add "https://github.com/blindcat-10835/dsh-session-studio"
Or from a local checkout, which is what development uses:
cd /root/.dsh/profiles/web
pnpm add link:/path/to/dsh-session-studio
# then add the package name to dsh.profile.bundles in package.json:
# "dsh-session-studio"
Renamed from
dsh-session-managerin 1.1.0 to avoid a name collision with an unrelated plugin. Existing data in$DSH_HOME/storages/session-manageris moved tostorages/session-studioon first load;DSH_SESSION_MANAGER_DIRis still honoured.
Use
link:rather thanfile:: the profile'snode_modulesthen points at your working copy, so edits toclient.js/host/*take effect on restart.file:copies the package and your edits stop mattering.
Installing appends this package to the profile's bundle stack and merges the insert row from cordis.patch.yml, so no manual cordis edit is needed. After a restart (dsh --profile web, or restart-web.sh outside the repo) a 「会话管理」 entry appears in the sidebar. The first open indexes historical sessions in the background (about 30 seconds for ~185 sessions); titles and the failed/blocked states fill in as it goes.
Ctrl+Enter; equivalent to clicking the session in the native sidebar.Enter on a selected row opens a detail column inside the panel: status, working directory, tags (editable in place), intent, note (editable in place), first message, last turn's end reason, and the Session ID; open / fork / archive / delete from there.Ctrl+Alt+G rename, Ctrl+Shift+F fork, Ctrl+Alt+A archive. Inside a menu, ↑/↓/Enter/Esc work.| What you might want | Possible? | Why |
|---|---|---|
| Panel row right-click = native menu | ✅ | ctx.contextMenus.open({kind:'session', …}) — the same popup the native row uses |
| Add a 「标签」 submenu to the native menu | ✅ | contextMenus.register({target:'session'}) plus a children submenu |
| Decorate native sidebar rows / hover card | ✅ | The sidebar.session.row.trailing and sidebar.session.row.hover seats |
| Add "by status / by tag" to the native grouping menu | ❌ | Those three entries are a hardcoded array in ui-workspace with no slot (PRD D13) |
| Hide or reorder native menu items | ❌ | Append-only (PRD D14) |
| Create a tag from the right-click submenu | ❌ | Menu entries are plain buttons; creation lives in the panel's tag manager (PRD D15) |
| Drag groups into your own order | ✅ | v0.3.1: ⠿ drag plus ↑/↓, remembered per dimension in localStorage (PRD §7.6 / ADR-0008) |
| Drag an individual session within a group | ❌ | Rows stay newest-first; ordering applies between groups only (PRD §7.6) |
| Create / rename / delete tags | ✅ | v0.3.2: the 「标签管理」 dialog; a rename collision merges, a delete clears references (PRD §7.7 / ADR-0009) |
| Right-click a tag and see it in the panel immediately | ✅ | v0.3.2: a tag-write broadcast wakes the panel within its 1.5s merge window (PRD D16) |
| Tag colours / hierarchy / aliases | ❌ | The vocabulary is name, source and creation time only (M2) |
Configuration lives in the profile's plugin config (the config section of cordis.patch.yml), and can be overridden by the bundle defaults at install time:
- insert:
- id: session-studio
name: 'dsh-session-studio'
config:
dataDir: /custom/path # defaults to $DSH_HOME/storages/session-studio
status:
enabled: true
tailEvents: 120 # how many tail events decide blocked/failed
concurrency: 2
ai:
batchSize: 8 # sessions per model call
concurrency: 2
maxSessionsPerRun: 50
readContent: true # feed the first message to the model
titleMaxChars: 48
All data lands in dataDir:
| File | Contents |
|---|---|
state.json |
Tags, suggested tags, notes, title locks, intents, the tag vocabulary, rules, settings |
status-index.json |
Per-session log-tail facts (last turn end, title, first message) |
trash.json |
Trash index |
jobs.json |
Background jobs (unfinished ones plus the most recent 50 finished) |
trash/<sessionId>/ |
The moved session directory |
The plugin does not introduce a second set of credentials: it reuses the host's configured llm and agentDefaultModel route. With no usable route the AI buttons grey out and state why (HTTP 503 llm_unavailable), while tag rules and manual actions keep working.
The browser half cannot use typed RPC, so client and host talk over same-origin HTTP under /api/dsh-session-studio. The full contract is in docs/PRD.md §8; the common ones:
curl -s localhost:3081/api/dsh-session-studio/state | jq .
curl -s 'localhost:3081/api/dsh-session-studio/sessions?includeArchived=1' | jq '.rows[0]'
curl -s -X POST localhost:3081/api/dsh-session-studio/tags -H 'content-type: application/json' \
-d '{"sessionIds":["<id>"],"op":"append","tags":["bug"]}'
# The tag vocabulary
curl -s localhost:3081/api/dsh-session-studio/tag-defs | jq '.tagDefs[] | {name,sessions}'
curl -s -X POST localhost:3081/api/dsh-session-studio/tag-defs -H 'content-type: application/json' \
-d '{"op":"rename","name":"bug","to":"defect"}'
# Slow operations return 202 plus a job object; poll it afterwards
curl -s -X POST localhost:3081/api/dsh-session-studio/tags/fill-missing \
-H 'content-type: application/json' -d '{"dryRun":true}' | jq '.job | {id,type,state}'
curl -s 'localhost:3081/api/dsh-session-studio/jobs?active=1' | jq '.jobs[] | {id,type,state,percent}'
curl -s localhost:3081/api/dsh-session-studio/jobs/<jobId> | jq '.job | {state,result,items:[.items[]|{key,state,message}]}'
curl -s -X POST localhost:3081/api/dsh-session-studio/jobs/<jobId>/cancel | jq '.job.state'
trash/ by hand (PRD D1).origin: subagent counts; a forked session keeps its parentSessionId and stays a first-class row, because the native sidebar lists it too (AIDEV-161).titleLocked, and only a manual rename sets it (ADR-0004).sidebarRight: no session surface is mounted), so the detail lives inside the panel (D8). The cost is that it cannot share the screen with the native right sidebar.node --check index.js client.js host/*.js
node --test 'tests/*.test.js' # plain node:test, no build step
Layout: index.js host assembly, host/ server-side modules, client.js the single-file browser panel, locale/ copy, icons/ the canonical category → icon map, tools/ its generator, docs/ product and decision records, tests/. The internal module contract is in docs/CONTRACTS.md.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。