strikesuitzero/dsh-cache-cleaner ↗★ 0
dsh-cache-cleaner
Moves the DeepSeek Harness temp cache to a configurable location and cleans it with an allowlist; also manages archived sessions and workspace temp/archive folders.
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:strikesuitzero/dsh-cache-cleanerドキュメント
README 全文を読む ↗Configuration
All keys are optional. Set them by editing the plugin entry's config in your profile's cordis.patch.yml (Settings → Plugins → cache cleaner also persists the cleanup options).
| Key | Default | Meaning |
|---|---|---|
cacheRoot | Windows: %LOCALAPPDATA%\dsh-cache-cleaner; others: $XDG_CACHE_HOME/dsh-cache-cleaner or ~/.cache/dsh-cache-cleaner | Root for the redirected temp dir and reports. Put it on a drive with free space. |
redirectTemp | true | Redirect TEMP/TMP for the host process. |
autoClean | true | Run the scheduled cleanup (startup delay + interval + idle debounce). |
autoCleanLegacy | false | Include legacy %TEMP%/dsh-workspace-changes-* dirs in automatic runs. |
startupDelaySeconds | 60 | Delay before the first automatic run. |
intervalHours | 6 | Scheduled scan interval (UI presets: 1/3/7/15/30 days). |
idleQuietMinutes | 10 | Extra run after the agent has been idle this long. |
mode | normal | safe (30 d / 50 GiB), normal (14 d / 50 GiB), aggressive (1 d / 30 GiB). |
retainDays | null | Override the mode's age gate. |
quotaBytes | null | Override the mode's quota gate. |
workspaceBases | [] | Directories that configured workspace roots must live strictly inside. |
workspaceRoots | [] | [{path, kind: temp|archive, retainDays, auto}]; only direct children are considered. |
manageArchives | false | Master switch for deleting kind: archive roots. |
Example override in the profile:
- id: dsh-cache-cleaner
config:
cacheRoot: 'D:\\Cache\\dsh-cache-cleaner'
workspaceBases: ['D:/work/project']
workspaceRoots:
- { path: 'D:/work/project/_tmp', kind: temp, retainDays: 7, auto: true }
- { path: 'D:/work/project/_archive', kind: archive, retainDays: 30, auto: false }