← Plugins

Schedule Keep Latest Workspace

Automatically archives older idle workspaces for the same Paseo schedule whenever a new scheduled workspace is created.

$ clisbot plugin add xenowei/schedule-keep-latest-workspace
Report a bug
Wei XuWorkspaces0installsd69802885bd0Source

Schedule Keep Latest Workspace keeps at most one active workspace per Paseo schedule. Whenever a scheduled run creates a new workspace, older idle workspaces from the same schedule are archived automatically so the sidebar stays clean.

How it works

The plugin runs in the local Paseo daemon subprocess and listens to the agent.create.after lifecycle hook. When a visible top-level agent is created, the plugin reads the agent's paseo.schedule-id label through the Paseo SDK. If the agent belongs to a schedule, the plugin lists visible active agents, finds older workspaces owned by that same schedule ID, and archives them.

Setup

Requires Paseo 0.17.4 or later. Disable Archive on finish on schedules whose latest workspace you want to keep visible in the sidebar. No accounts, API keys, or external tools are needed.

Safety guards and data access

  • Only workspaces where every visible active agent carries the matching paseo.schedule-id label are archived.
  • Workspaces containing any running or initializing agent are skipped so overlapping runs are never interrupted.
  • Workspaces containing manually added or other-schedule agents are skipped.
  • Background agents and child subagents are ignored.
  • All operations run locally against the daemon IPC API. The plugin makes no model calls, consumes no tokens, and sends no data to external services.
  • Archiving is non-destructive; archived workspaces and schedule run logs remain accessible in Paseo.