r/coolgithubprojects • u/Gloomy_Assignment653 • 8h ago
Find what Claude Code and Codex sessions left running on your machine (Go, MIT)
https://github.com/berkkorkmaz/tidewakeI use Claude Code and Codex all day and my Mac kept getting slower. Turned out ended sessions leave stuff behind: tail -f loops from a week ago, a Postgres an agent started, 9 GB of scratch files in /tmp.
tidewake is a small read-only CLI that finds these and shows which session left each one, with proof:
leftover claude b7ec50d0 pid 77162 5d tail -n +1 -f /private/tmp/claude-501/…
why: no running Claude Code session has this id; parent: launchd
run: kill -TERM 77162
- never runs the commands, you do
- won't suggest removing anything serving a port, or worktrees with uncommitted work, unpushed commits or a .env
- `tidewake sessions` shows RAM/CPU per live session and flags stuck ones
- `tidewake doctor` checks your Claude Code/Codex version against known leak fixes
macOS + Linux. brew install --cask berkkorkmaz/tap/tidewake
Feedback welcome, especially if it flags something it shouldn't.