AgileFlow

/session:cleanup

PreviousNext

Interactive session cleanup with AI assessment

/session:cleanup

Interactively clean up finished sessions with AI-powered assessment of each session's importance and merge eligibility.

Quick Start

/agileflow:session:cleanup

How It Works

  1. Shows a detailed health report for all sessions
  2. Walks through each session with issues one-by-one
  3. AI assesses each session: SAFE TO DELETE vs IMPORTANT - KEEP
  4. Checks merge eligibility for sessions with branches
  5. Presents options based on assessment and merge status

Assessment Options

ScenarioOptions Available
Safe + MergeableDelete, Merge and delete, Keep
Important + MergeableMerge and delete, Keep, Switch to session
Cannot merge (uncommitted changes)Keep, Switch to fix, Delete anyway
Safe + No merge neededDelete, Keep
Has conflictsKeep, Switch to resolve, Delete anyway

Session Tracking

After cleanup, displays:

  • Sessions deleted
  • Sessions merged
  • Sessions kept
  • Orphaned registry entries cleaned
CommandPurpose
/session:statusView session health before cleanup
/session:spawnSpawn new sessions
/session:endEnd the current session