dsh plugins中文
← Back to popular plugin directory

DSH Session Pruner

mrzhangkris/dsh-session-pruner · productivity

Every session type has a defined destination: finished one-shot subagents are archived automatically, idle continuable subagents / main sessions are archived, and overflow is recycled by priority.

★ 4GitHub stars
0Forks
2026-09-02Last updated
JavaScriptLanguage
Apache-2.0License

Key features

  • Behavior note (v0.2.3+)one-shot subagents are archived uniformly by the oneShotMinAgeMinutes idle threshold (default 3 minutes), with or without end-seed.
  • Cleaned sessions are moved to /.dsh/sessions-archive/ first (workspace/session-id structure preserved) — they disappear from the GUI immediately (the list only reads the sessions directory), but the files remain and can be restored manually
  • Running sessions are never touched: live sessions (still held in the in-memory session store, open/loading) are skipped — and the live check is fail-closed: a store query error treats the session as live, never deleting on uncertainty
  • DSH session lifecycle management plugin — full-type session lifecycle management: one-shot subagents archived on completion, continuable subagents and main sessions archived when idle, a capacity cap, and projection-cache cleanup.
  • The earlier fallback — "one-shot sessions without end-seed must stay idle a full hour before archiving" — has been removed.

Install command

dsh plugin --profile web add github:mrzhangkris/dsh-session-pruner
View GitHub repository ↗Back to popular plugin directory