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.

Package
dsh-cache-cleaner
Compatibility
Unverified
Version
0.5.0
License
MIT
Last updated
Nov 9, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:strikesuitzero/dsh-cache-cleaner

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).

KeyDefaultMeaning
cacheRootWindows: %LOCALAPPDATA%\dsh-cache-cleaner; others: $XDG_CACHE_HOME/dsh-cache-cleaner or ~/.cache/dsh-cache-cleanerRoot for the redirected temp dir and reports. Put it on a drive with free space.
redirectTemptrueRedirect TEMP/TMP for the host process.
autoCleantrueRun the scheduled cleanup (startup delay + interval + idle debounce).
autoCleanLegacyfalseInclude legacy %TEMP%/dsh-workspace-changes-* dirs in automatic runs.
startupDelaySeconds60Delay before the first automatic run.
intervalHours6Scheduled scan interval (UI presets: 1/3/7/15/30 days).
idleQuietMinutes10Extra run after the agent has been idle this long.
modenormalsafe (30 d / 50 GiB), normal (14 d / 50 GiB), aggressive (1 d / 30 GiB).
retainDaysnullOverride the mode's age gate.
quotaBytesnullOverride 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.
manageArchivesfalseMaster 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 }