Introduction¶
When using DeepSeek Harness (DSH), files generated during a conversation land directly in the workspace root directory, which becomes cluttered over time. The dsh-plugin-conversation-archive plugin organizes each conversation’s output into a subfolder named <date>_<topic>, keeping the root directory tidy.
What It Is¶
This is a DSH Host plugin published by the maintainer clumsy-dot. Its core value is automatic organization of conversation artifacts: files generated in each session are collected into a folder named with a date and topic, rather than being scattered across the root of the working directory.
How It Works¶
At the start of a conversation, the plugin injects a prompt into the model instructing it to place deliverable files into a date_topic folder, where the topic is a phrase of no more than 12 characters generated by the model. At the end of each turn, the plugin scans for new files in the root layer and moves them into that folder. If the model does not create the folder on its own, the plugin falls back to creating one using a temporary topic derived from a truncated first sentence of the conversation.
There are two ways a folder gets claimed: (1) the model creates a date_topic directory in the root layer via write-type tools such as write/edit; or (2) a script command contains a path like date_topic/…. The plugin only handles new files in the root layer of the working directory; it does not touch subdirectories or project source code.
Installation & Enablement¶
The plugin is published on npm and requires DSH 0.2.2 or later.
In DSH’s Plugins → Add plugin, enter the package name:
dsh-plugin-conversation-archive
Or use the command:
plugin_manager install_bundle target=dsh-plugin-conversation-archive
Install from GitHub:
plugin_manager install_bundle target=git+https://github.com/clumsy-dot/dsh-plugin-conversation-archive.git
Install from a local directory: clone the repository into any directory, enter that directory path in Plugins → Add plugin, or:
plugin_manager install_bundle target=<absolute path to the repo directory>
Once installed, start a new conversation for it to take effect.
Configuration¶
Override the config block for conversation-archive in the profile’s cordis.patch.yml:
- id: conversation-archive
config:
enabled: true
autoArchive: true
guidance: true
baseDir: ''
topicMaxChars: 12
skipDotEntries: true
ignorePatterns:
- ".git"
- "node_modules"
- "~$*"
- "*.tmp"
- "*.log"
maxTextMoveBytes: 2097152
turnEndBudgetMs: 8000
includeSubagents: true
includeUserFiles: true
includeReferencedFiles: true
includeUserImages: false
userFileTransfer: copy
maxUserCopyBytes: 20971520
Description of each option:
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
autoArchive |
true |
Automatically collect new root-level files at the end of each turn |
guidance |
true |
Whether to inject the “artifact directory for this conversation” prompt |
baseDir |
'' |
Empty = session working directory; relative paths are relative to the working directory |
topicMaxChars |
12 |
Maximum number of characters for the topic name |
skipDotEntries |
true |
Skip new files starting with . |
ignorePatterns |
[".git","node_modules","~$*","*.tmp","*.log"] |
Matches root-level file names; supports * wildcard |
maxTextMoveBytes |
2097152 |
Files larger than this size are moved via a system command instead |
turnEndBudgetMs |
8000 |
Time budget (ms) for collection at the end of each turn |
includeSubagents |
true |
Sub-agent sessions are processed the same way |
includeUserFiles |
true |
Place user-provided attachments from the conversation into the artifact folder |
includeReferencedFiles |
true |
Copy files outside the workspace referenced via @path in messages into the folder |
includeUserImages |
false |
Whether pasted images count as user-provided files |
userFileTransfer |
copy |
copy keeps the original attachment; move relocates it |
maxUserCopyBytes |
20971520 |
User attachments larger than this size are skipped |
Known Limitations¶
- New files that are “model-generated” and new files that are “dropped by the user into the root directory in the same turn” cannot be distinguished; both will be collected. You can mitigate this with
ignorePatternsor by disablingautoArchive. - If the model consistently fails to create a folder but writes files to the root, the fallback creates a folder using a temporary topic truncated from the first sentence of the prompt. The name may not be ideal; simply rename it.
- Artifact folders created via scripts (not through file tools): as long as the command contains a path like
date_topic/…, it will be claimed. If it cannot be recognized, the fallback collection will create a separate folder. - Binary/large files rely on the
subprocessservice to execute system commands; without it, such files remain in place and a note is included in the result. - The first turn after a plugin reload only records the directory baseline and does not move files; subsequent turns behave normally.
- Moving user attachments depends on the attachment service providing a local path; attachments stored remotely are skipped with a note in the result.
- The default
copyretains the original file in attachment storage, so the same content exists in two places. Only useuserFileTransfer: moveif disk usage is a concern, at the cost of stale references in the conversation and failed reads in forked sessions that reference those files. - Image attachments are always copied, never moved; Harness reads images back on its own via attachment references.
Uninstallation¶
plugin_manager remove_bundle target=dsh-plugin-conversation-archive
Folders that have already been organized are not automatically moved back.
Use Cases¶
Suitable for developers who need to keep the root directory clean in DSH. The plugin runs with the current DSH process permissions; review the source code and license (MIT License) before installing.
Closing¶
This plugin keeps the root directory tidy by automatically archiving conversation artifacts. For more details or to view the source code, visit the plugin directory page or the GitHub repository.