seshka 0.6: a Claude Code plugin, so leftovers are gone the moment a session ends
A week after launch, seshka has a plugin for Claude Code. Until now seshka found what closed sessions left running by looking, and you killed it with a click. With the plugin, Claude Code and seshka talk to each other.
How it works, in short:
When a session ends, Claude Code runs the plugin's hook. It leaves an empty file named after the session, seshka sees it, and kills what that session left running a few seconds later. It works with /exit and with a closed terminal window. It is a switch in Settings, off until you turn it on, and processes you protected are skipped.
When a session starts, the plugin tells Claude what earlier sessions left running in that folder: which process, on which port, for how long. Claude no longer has to work out why port 3000 is taken.
Two commands inside Claude Code: /seshka:status lists what closed sessions left running, and /seshka:clean kills it.

The whole plugin is three small shell scripts. Nothing is sent anywhere.
Install it from inside Claude Code:
/plugin install seshka --marketplace jigjoy-ai/seshkaIt needs seshka 0.6.0, which the app updates to by itself.
Also new since launch: a Resume button that brings back a session seshka ended, keeping the Mac awake with the lid closed while Claude works, cleaning up worktrees and caches on disk, and a documentation page at https://seshka.dev/docs

What else would you want Claude Code to tell seshka, or seshka to tell Claude?


p/gatrends
p/expert-chase-deleted-1107920
p/beamfy
p/runevr
p/rhun
p/netfox
p/google-cloud-platform
p/producthunt
p/openhuman
p/findergit
p/reso
p/eden-ai
p/many-displays
p/murror
p/botgauge-2
p/teaserkit
p/seshka
p/showmd-ai-markdown-quicklook-preview
Replies
@lotus015 especially when working across several projects. One suggestion would be to add a small cleanup history showing which processes seshka stopped and why. That would make it easier to trust the automation.
@hassan_ismail_rebe Excellent idea Hassan, it's already cooking and will be part of the next release!
@hassan_ismail_rebe