94
seshka is a free, open source macOS menu bar app for people who work with Claude Code.
Claude Code sessions end. The dev servers, watchers and emulators they started keep running, holding memory and ports. seshka finds them and kills them in one click.
What it does
Lists every process a closed session left behind, grouped by session, with its port, memory and age.
Kills one process, one session's worth, or all of them, and tells you how much memory came back.
Shows every open session, whether it is working or idle and for how long. Idle ones can be ended by hand, or automatically after a limit you set. They come back with claude --resume.
Cleans up the disk: the worktrees Claude Code made for its agents, the scratch files of closed sessions, and caches that fill up again by themselves. Nothing is removed without a click.
Keeps the Mac awake with the lid closed while a session is working, and lets it sleep when the last one finishes.
Counts what it cleaned up over the week and makes a picture of it to share. Only the numbers are on it.
How it works
Claude Code puts CLAUDECODE=1 and the session's ID in the environment of everything it starts. seshka reads those from your running processes. A process counts as leftover once the Claude Code process that started it is gone. Nothing leaves your Mac.
Details
Signed and notarized, and it keeps itself up to date. macOS 14 or later, Apple silicon and Intel. MIT license.
Built with