DevTrends开发者趋势
主题色

naw103 /

claude-routine-cleanup

Claude Code's scheduled tasks (routines) leaves a session behind on every run and in the desktop app you can only delete them one at a time. We had 618 open sessions in just one routine. The skill plans the clean up…

DT桌面效率DTAgent 能力扩展DTAgent 可观测性DT桌面应用DTSkill / 插件DTClaude Code

关于

Claude Code's scheduled tasks (routines) leaves a session behind on every run and in the desktop app you can only delete them one at a time. We had 618 open sessions in just one routine. The skill plans the clean up (keeps the newest N and protect any sessions where you typed a reply - optional) and then has Claude delete through the apps own session tool, 25 per call each behind an approval card. I tried just deleting the sessions on disk manually first but deleting the files directly dosnt work because the app keeps the list in memory and writes records back. The apps delete tool is turned off inside routine runs so the clean up command has to run from a normal conversation session. The planner is a single python file that dosnt delete by itself so you can run it by hand to see where everything exists.

收录记录

  1. Show HN

    2026年10月4日 · 1 次收录

讨论这个产品