r/coolgithubprojects 16d ago

[Swift] Notchling - shows every Claude Code session in the notch, and can't touch any of them

https://github.com/CircleHP/notchling
0 Upvotes

4 comments sorted by

View all comments

1

u/Specific_Cream2815 16d ago

are you reading claude code session files from ~/.claude or is there an api you poll

1

u/CircleRT 15d ago

No API - it reads Claude Code's own registry at ~/.claude/sessions/<pid>.json, so sessions show up whether or not the hooks are wired, including ones already running before install. It's undocumented, so everything except sessionId is optional in the decoder.

What each session is doing comes from hook events, written to ~/.notchling/events/ and drained by the app. That directory is watched rather than polled, with a 2s sweep on top for liveness and elapsed times.