elk-9527/dsh-auto-archive ↗★ 0

dsh-auto-archive

Automatically archives idle DSH conversations after a configurable number of days and clears the expired projection cache of archived sessions, without deleting transcripts or attachments.

パッケージ
dsh-auto-archive
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/10/26

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elk-9527/dsh-auto-archive

ドキュメント

README 全文を読む ↗

Configuration / 配置

Stored at ~/.dsh/auto-archive/config.json (created automatically; editable from the panel):

{
  "version": 1,
  "autoArchive": { "enabled": true, "idleDays": 14, "checkIntervalMinutes": 30 },
  "cacheCleanup": { "enabled": true, "unusedDays": 90 },
  "protect": { "pinnedSessions": true, "sessionIds": [], "workspaces": [] },
  "limits": { "maxOperationsPerRun": 50 },
  "dryRun": false
}
  • idleDays — a session whose last activity is older than this is archived. Last activity = max(transcript mtime, createdAt).
  • unusedDays — an archived session idle longer than this has its projection cache removed.
  • protect.workspaces — workspace id or a case-insensitive cwd fragment; matching workspaces are never archived.
  • dryRun: true — every automatic run becomes a preview.
  • limits.maxOperationsPerRun — caps one run, so a first launch cannot sweep the whole history at once.
  • Run state lives in ~/.dsh/auto-archive/state.json (atomic writes, last 30 runs).