dsh-session-organizer
DeepSeek Harness (DSH) plugin: manage history sessions across projects — list, move (together with its memory log), and delete conversations. Ships model tools plus a web panel.
GitHub · npm
Features
- Model tools (chat commands):
list_sessions — list every history session (title, id, project, whether currently running).
move_session(session_id, target_project) — relocate a finished session + its memory log to another project.
delete_session(session_id) — permanently delete a session and its memory log (backed up first).
- Web panel: a "💬 Sessions" button in the input bar → lists sessions (with their Chinese titles) → click Move to… / Delete (executed directly, not delegated to the assistant).
Install
dsh plugin add dsh-session-organizer
or add it to your profile's bundles + dependencies with a file: dependency.
Usage
- Open the "💬 Sessions" panel from the input bar, or ask the assistant to run
list_sessions.
- Delete: pick a finished session → "Delete" → confirm. It removes the conversation + its memory log (a backup is written to
~/.dsh/session-backups/ first).
- Move: pick a finished session → "Move to…" → choose the target project. The conversation + memory log are relocated to that project folder.
- Restart DSH afterwards so the sidebar and indexes fully refresh.
How it works
- Moving rewrites the session log header's
cwd to the target project path, relocates the .zstd log to the new project directory, and updates the workspace registry.
- Deleting removes the session directory, detaches it from the workspace registry, and clears its projection-cache record so it does not linger as "Ungrouped".
- Only finished sessions can be moved/deleted; a session with an active turn (currently running) is refused.
Caveats
- Moving relocates only the conversation + memory log; ordinary files in the old project folder stay put.
- Deleting is irreversible (aside from the pre-delete backup).
License
MIT. See NOTICE.