Jakob Christensen / Agent Skills

/tidy-sessions

Archives finished sessions in Claude Code Desktop, keeps the rest

Featured in Case #003: His Last Commit

Finished sessions pile up in the sidebar of the Claude desktop app until the list is too long to find anything.

This skill archives your finished sessions and keeps every session that still has unfinished work.

It reads how each session ended. For a session with its own git branch, it also checks that the branch is merged into the main branch and that nothing is left uncommitted. It lists what needs your attention. It never deletes a session, but note that the desktop app removes an archived session's working folder (its worktree) after about 30 days.

It works only in the Claude desktop app (Code tab). Start it with /tidy-sessions, or ask it to tidy your sessions, or which ones it would archive.

Download SKILL.md Read SKILL.md

When the agent uses it

Archive every finished or superseded session in the Claude desktop app's session list so the sidebar stays short. Use only when the user asks to tidy up, clean up or archive their Claude Code sessions in the desktop app (not code, files or git), or asks which sessions would be archived or which are waiting for them. Not for deleting sessions and not for the running session. To remove landed git worktrees and branches without the desktop app, use the tidy-worktrees skill.

Install

Download the skill, drag it into your AI's chat and write "Install this skill."