Terminal tool for browsing, archiving, and cleaning AI assistant sessions
Browse and tidy session directories created by terminal AI coding assistants: an interactive TUI to list, resume, archive, and delete past sessions from the console. AgentSessionCleaner, written by haowang02, targets developers and power users who keep agent histories in local folders, offering keyboard-first navigation, bulk selection, and archive options to reduce clutter while working inside terminal environments and package managers on Windows.
What the tool does and who it serves
AgentSessionCleaner focuses on managing session history produced by terminal-based AI coding assistants, including Codex, Claude Code, OpenCode, and Pi. The interface lists session directories, supports range selection for bulk operations, and lets you resume a previous session state. This makes it a maintenance utility for developers who accumulate agent histories in local folders and need direct, terminal-based controls rather than a graphical manager.
How it affects system resources during use
The utility has a lightweight footprint suitable for terminal setups, which the developer notes as a distinguishing trait. It runs inside the console and relies on keyboard shortcuts rather than spawning background services, so it does not add persistent processes. For typical session-directory browsing and archiving tasks, the tool operates within the terminal process and avoids continuous CPU or RAM use when idle.
Safety, recoverability, and operational safeguards
The app offers both deletion and archiving actions, giving a non-destructive path to store sessions instead of permanently removing them. Archive functionality provides a way to keep session data available while clearing active directories. Keyboard-centric controls mean accidental clicks are unlikely, but the terminal interface places responsibility on the operator to confirm bulk deletes before execution.
A practical utility for terminal-first developers, with a single trade-off
AgentSessionCleaner serves developers who prefer console workflows and need direct control over accumulated AI assistant histories; it performs maintenance tasks without adding background overhead. The main trade-off is the terminal-only interaction model, which requires familiarity with keyboard navigation and command confirmation. Practical tip: schedule large archive or delete operations during idle development periods to avoid interrupting active work.





