← 插件

Auto Archive

Archive workspaces that have sat idle for a set number of days.

$ clisbot plugin add sleeyax/auto-archive
报告问题
Sleeyax工作区0次安装73a00ff48d8e源代码
Auto Archive 截图 1Auto Archive 截图 2Auto Archive 截图 3Auto Archive 截图 4Auto Archive 截图 5Auto Archive 截图 6

该插件的概览尚未翻译为你的语言,因此以英文显示。

Archives workspaces that have sat idle for a set number of days, so finished work that never merged leaves the sidebar on its own. It fills a gap until Paseo can archive inactive workspaces itself.

How it works

A workspace is idle since the last time its status changed, you sent it a message, or one of its agents changed. With the defaults, only worktrees Paseo created with the status Done are archived, after 14 idle days. Archiving such a worktree deletes its directory but keeps the branch; other workspaces are only hidden from the sidebar.

Some workspaces are never archived, whatever the settings say:

  • one already being archived
  • one with an agent that is working, waiting for an answer, or running background shells
  • a worktree Paseo created that has uncommitted changes or commits no remote has, or whose git state can't be read

Setup

Requires Paseo 0.16 or newer, and git on the daemon's PATH. Nothing is archived until you turn on Auto-sweep or confirm a Preview sweep in the plugin's settings.

Features

  • Preview sweep lists the workspaces the saved settings would archive, and the others with the reason each one stays. Untick any to keep before archiving.
  • Auto-sweep archives due workspaces on a timer, every 60 minutes by default.
  • Sidebar rows count down to the sweep that archives a workspace, such as "archives in 2d" or "archives in 12m", from a few days before.
  • Pinned workspaces and those with the opt-out label, keep by default, are skipped. Command Center items add or remove that label.
  • Settings choose the idle days, which workspace kinds and statuses are swept, more labels to skip, and which projects are swept.
  • The settings list the most recently archived workspaces.

Data and limitations

The plugin runs git status and git rev-list in the worktrees it checks, without fetching. It keeps the list of recent archives in plugin-data/auto-archive/archived.json under Paseo's home directory, and by default writes the archive time into each archived workspace's metadata. It sends nothing off the host.

It can't see Claude's scheduled tasks (/loop and cron wakeups), so pin or label a workspace that only wakes up on a schedule. After the daemon restarts, sweeps resume once an app connects to the host or an agent finishes a turn.

See the README for every setting.