Give every conversation its own creation-time-named working folder, keeping files from separate sessions isolated.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:mgx1995/dsh-per-session-workdir
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
Give every DeepSeek Harness conversation its own working folder instead of writing all files into one shared directory.
What it does
When a Session opens, the plugin creates a sub-folder under the workspace root named after the Session's creation time (YYYY-MM-DD_HH-MM-SS, local time) and points that Session's durable working directory at it.
- Files written by one conversation land in its own folder, not a shared one.
- The folder name derives from the immutable
header.createdAt, so a resumed Session always returns to the same folder. - The sidebar file tree follows the working directory; switching Sessions shows each one's own files.
- Folders are kept after a Session closes — nothing is deleted automatically.
- On failure the Session simply keeps its original working directory.
Install
dsh plugin --profile <profile> add github:mgx1995/dsh-per-session-workdir
Or find Per-session working directory in the dsh-market plugin market.
How it works
The plugin listens to the agent/created event, creates the folder with node:fs/promises, and calls the built-in ctx.workingDirectory.set(agent, path). The directory change is persisted in the Session log through the standard working-directory/change event.
License
MIT
Links
More in this category
ranxianglei/billion-context★ 8864
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4887
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 964
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 452
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 414
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 336
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.