Introduction¶
In DeepSeek Harness (DSH), a workspace usually corresponds to a directory, which also serves as the current working directory (cwd) for the session. When starting multiple conversations consecutively within the same root workspace, all files generated by these tasks end up in the same folder—for example, rate-limiting troubleshooting scripts mixed with Minecraft modpack tools. This makes subsequent organization and version control cumbersome.
Some community members use solutions like WorkBuddy to implement “one timestamped directory per conversation.” dsh-session-folders offers similar capabilities in the form of a DSH plugin: it intercepts the new session creation process on the host side, automatically creates timestamped subdirectories under the configured root workspace, and stores files from different sessions separately. Maintained by Tonywqs and categorized as a workflow tool; the repository is available on GitHub, and the community directory page can be found at SkillHub.
What is this¶
The plugin intervenes at the session.create seam: when a new session is destined for a configured root workspace, it first creates <root>/<timestamp>/, registers it as an independent workspace, and then allows the session to be created within that directory (specific cwd behavior depends on the mode, see below).
Directory structure diagram:
D:\AIWorkSpace\DSH\ <- Root workspace ("New Chat" at this point)
├── 2026-10-08-13-05-00\ <- All files for Session A
├── 2026-10-08-14-20-11\ <- All files for Session B
└── 2026-10-08-15-02-47\ <- All files for Session C
If “View Options → Group by → Workspace Tree” is selected in the sidebar, these subdirectories will appear nested under the root workspace.
Two Modes¶
in-place (Default) |
workspace |
|
|---|---|---|
| Session Ownership | Remains in the original workspace (cwd unchanged) | Moves to the new directory (new workspace) |
| Sidebar | No extra hierarchy; new session is at the same level as the original | Adds one more layer of workspace grouping |
| File Isolation | Rule-based: System prompt injects “artifact directory for this conversation”; agent writes there | Forced: Session cwd is exactly that directory |
| Use Case | Want to keep the sidebar clean | Want filesystem-level hard isolation (can hide groups using the sidebar “Single List” view) |
In the README, in-place corresponds to the artifact directory rule of v0.3.1: the plugin registers a system prompt section and dynamic runtime context to inform the model that “the artifact directory for this conversation = the timestamped directory.” The variable name is session_output_dir; for sessions not managed by this plugin, this variable is empty, and other workspaces will not see redundant prompts.
Behavior Details¶
The plugin handles the following situations according to fixed rules:
| Situation | Behavior |
|---|---|
| Create new session in root workspace | Creates <root>/<YYYY-MM-DD-HH-mm-ss>/, registers it as a workspace, session cwd = that directory (workspace mode) or follows in-place rules |
| Client-side Name | Displays placeholderTitle (default “New Session”) first, without showing the timestamp; after the session title is generated by the first message, if followSessionTitle is true, the workspace name syncs to that title |
| Open another in the same second | Automatically falls back to …-2, …-3 |
| Session already in a date subdirectory | Does not nest another layer (only matches the root directory exactly) |
| Fork / Restore existing session | Passes through as-is, inheriting the directory of the source session |
| Other workspaces | Completely unaffected |
| Directory creation or workspace registration failure | Logs a warning and proceeds with the original request—will not block session creation |
Installation and Configuration¶
Installation¶
PowerShell example (choose the profile name based on your environment: usually desktop for the desktop version, web for the command-line version):
dsh plugin --profile desktop add github:Tonywqs/dsh-session-folders
A complete restart of DSH is required after installation. You can also enter the repository address github:Tonywqs/dsh-session-folders in Settings → Plugins → Install Plugin.
The current version of the plugin is 0.3.1 (see package.json in the repository), requires Node >= 22, has a peer dependency on @deepseek-ai/cordis ^4.0.2, and is licensed under MIT. The plugin runs with the current DSH process permissions; it is recommended to review the source code and license before installing.
Configuration¶
After installation, configuration is written to the profile’s cordis.patch.yml (patch snippet example):
- insert:
- id: session-folders
name: dsh-session-folders
config:
enabled: true
roots:
- 'D:\AIWorkSpace\DSH'
nameFormat: YYYY-MM-DD-HH-mm-ss
dryRun: false
| Config | Default | Description |
|---|---|---|
enabled |
true | Master switch |
roots |
[] | Root workspaces that need directory separation by session (can be multiple); if empty, the plugin does not take effect and logs a warning |
nameFormat |
YYYY-MM-DD-HH-mm-ss |
Directory name format, supports YYYY MM DD HH mm ss |
placeholderTitle |
New Session |
Initial display name for the client workspace |
followSessionTitle |
true | Whether to sync the workspace name after the session title is generated |
dryRun |
false | Only log without writing to disk, used for initial verification |
First Verification¶
It is recommended to set dryRun to true first. After restarting DSH, start a new conversation and check the logs (example path for desktop version):
%USERPROFILE%\.dsh\logs\desktop-next.log
Expect to see something similar to:
dsh-session-folders: active for D:\AIWorkSpace\DSH (format YYYY-MM-DD-HH-mm-ss, dry-run)
dsh-session-folders: [dry-run] would create D:\AIWorkSpace\DSH\2026-10-08-16-01-22
The second line indicates the seam was hit; after confirming everything is correct, change dryRun back to false and restart again to actually create the directories.
Use Cases and Notes¶
Suitable for: Paralleling multiple unrelated coding or document tasks within the same DSH root workspace, wanting files separated into folders by session, or needing an experience close to WorkBuddy’s “one conversation, one timestamped directory.”
Known Limitations (from README):
- Depends on the host internal seam
ctx.sessionController.commands.create; if DSH changes this structure, the plugin will log a warning and become inactive, but session creation itself will not be affected. - Directory names use local time with second-level precision; opening multiple sessions within the same second will result in
-2,-3suffixes. - Only affects where new sessions land; does not migrate historical session cwds or move existing files.
Uninstall command:
dsh plugin --profile desktop remove dsh-session-folders
When manually installed, you also need to delete profiles/node_modules/dsh-session-folders and remove the corresponding insert block from the patch; created date directories will not be deleted.
Conclusion¶
dsh-session-folders turns “separating directories by session” into a configurable DSH workflow plugin: it automatically creates timestamped subdirectories when opening new conversations in specified root workspaces and offers a choice between in-place and workspace isolation granularities. The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent of DeepSeek / Hithink RoyalFlush and are not official app stores.
- Directory Page: https://www.skillhub.cn/plugins/Tonywqs/dsh-session-folders
- Source Code and Docs: https://github.com/Tonywqs/dsh-session-folders