Skip to main content

Claude Session Hub

tests

See all your Claude Code sessions in one page, and know at a glance which one is waiting for you.

If you run several Claude Code sessions at once (one per feature, one per role…), it is easy to lose track: which one is still working, which one is only running tests, which one finished, and which one has been waiting for your answer for twenty minutes. Claude Session Hub reads the files Claude already writes on your computer and shows it all on a local page, with an optional notification when a session needs you.

Claude Session Hub: a session finishes and asks a question, a handoff note opens, then tokens and commits

The built-in demo (--demo): made-up sessions, no real data. Here "Checkout API" finishes its turn with a question and moves to the top as "Waiting for you".

What you see

  • Who is waiting for you, on top, with the question in the session's own words, and a notification if you want one. If a session tells you to answer in another session's window, the card says so.
  • What each session is doing: working, running checks in the background (tests, a build), or done.
  • Its last handoff note, if it keeps one (click to read it whole).
  • Tokens per session and per day for the last 14 days.
  • Commits each session landed on the main branch, even after a rebase.
  • Plan limits (5-hour and weekly windows), as last seen by the Claude desktop app, with the tokens used this week. A reading older than 6 hours is greyed out as "old reading".

It works with sessions in the Claude desktop app (Code tab) and with sessions started with claude in a terminal.

Run it

Needs Python 3.9 or newer and git 2.31 or newer. No other dependencies.

pipx install claude-session-hub
claude-session-hub

The page opens at http://127.0.0.1:4777. To try it without your own sessions:

claude-session-hub --demo

Other ways: uvx claude-session-hub runs it without installing; python3 -m pip install claude-session-hub works too where your Python allows it (inside a virtual environment, for example). From a clone of this repository: PYTHONPATH=src python3 -m claude_session_hub.

Options: --port 4777, --no-open, --archived (also archived desktop sessions), --demo, --json (print one snapshot and exit).

Privacy

  • Read-only. It only reads files Claude and git already have on your computer, and runs only read-only git commands.
  • Local. The page is served on 127.0.0.1 only. Nothing is sent anywhere, there are no API calls and nothing costs money.
  • One file of its own: ~/.cache/claude-session-hub/usage-v1.json, token counts per transcript so the page has numbers as soon as it opens. Delete it any time; set CLAUDE_SESSION_HUB_CACHE to move it.

How it works

Source Where Used for
Claude desktop app, Code sessions ~/Library/Application Support/Claude/claude-code-sessions/ name, model, folder, branch, the app's summary of the last turn
Claude Code transcripts, end of each file ~/.claude/projects/*/*.jsonl (last 16 MB the first time, then only new lines) is a turn running, is a question waiting, background jobs, the session's last words
Transcripts of terminal sessions ~/.claude/projects/*/*.jsonl changed in the last 30 days sessions started with claude in a terminal
Running Claude Code sessions ~/.claude/sessions/<pid>.json (and whether that process still runs) a terminal session whose claude has exited is Done, not waiting
Transcripts, whole files ~/.claude/projects/**/*.jsonl (only new bytes are read) tokens per session and per day, notes written, git commit times
Git history of each session's repository worktree reflogs and git log <main branch> commits each session landed on the main branch
Shared notes of Code sessions ~/Library/Application Support/Claude/side-session-notes/ each session's handoff note
Plan usage seen by the desktop app ~/Library/Application Support/Claude/plan-usage-history.json 5-hour and weekly limits

States.

  • Waiting for you: the session asked you something (a question card, the question in the desktop app's "next step" box, or, in a terminal, a turn that ends with a question) and you have not answered, or the app marked it as blocked on you and its last words are a question. This wins over every other state. When the app says "blocked" but nothing was asked ("send me the screenshot when they reply"), the card is Done with a "Next step is yours" line instead.
  • Working: a turn is running. In a terminal, a turn with no progress for 90 s says it may be waiting for your permission.
  • Running checks: the turn is over but a job it started in the background has not reported back yet, so the work is not finished.
  • Done: the turn is over and nothing is pending, with the session's own words on what it did. Sessions done for more than 14 days go into a closed "Older sessions" box. (The desktop app also labels many finished turns "ready for review"; the hub does not repeat that label, because a session that really needs you asks a question, and then it is "Waiting for you".) A terminal session whose claude has exited is Done too, even if it ended on a question: nobody can answer it any more. The card keeps the question ("Closed before you answered").

Handoff notes. A session's note is the note-like Markdown file it wrote most often: any .md in the desktop app's shared notes folder, or a file named like a note elsewhere (HANDOFF.md, NOTES.md, progress.md…). Writes count whether made with Write/Edit or from the shell; reads never count.

Tokens. Each answer is counted once, even when it is copied into a resumed or forked transcript; sub-agents count toward their parent session. Most tokens are usually cache reads (Claude re-reading the conversation), which weigh much less on plan limits than new text. The "≈ $ at API prices" figure is what Claude Code itself computes; on a Pro or Max plan you do not pay it.

Commits. Git does not record which session wrote a commit, and commits are often rebased before they reach main (new hash, same subject). The hub reads the commits each session made from the reflog of the worktree it works in and matches them to the main branch by subject. When several sessions share one checkout, a commit goes to the session that ran git commit there just before. Merge commits are not counted.

Plan limits. The desktop app saves them only now and then, so the page always says when the reading was taken; a 5-hour reading older than 5 hours is not shown, since that window has reset.

Tokens this week. The hub finds when your week starts again from the readings (the weekly percent drops at the same time every week) and adds up the tokens used since then. It does not turn tokens into a percent: tried on real data, the ratio between tokens and percent moved by 20-30% from one reading to the next and changed when the plan's limit changed, so a "percent now" guessed from tokens was off by more than 10 points. Chats on claude.ai or other devices use the same limit without showing up here.

Limits

  • Used daily on macOS with the Claude desktop app. The tests run on macOS, Linux and Windows (Python 3.9 and 3.13), but real use on Linux and Windows is still untested: reports welcome.
  • The desktop app's session files are not a documented format, so an app update may change them. Terminal sessions rely on Claude Code transcripts and its running-session files.
  • If something looks wrong, please open an issue with what the page showed and what you expected.

Development

PYTHONPATH=src python3 -m unittest discover -s tests

The tests build small fake transcripts, notes and git repositories; they never read your data.

License

MIT. Not affiliated with or endorsed by Anthropic. "Claude" is a trademark of Anthropic.

Metadata

Release files for claude-session-hub 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-session-hub 0.1.2
File Size Uploaded Provenance Actions
claude_session_hub-0.1.2.tar.gz 56.4 kB With provenance Details for claude_session_hub-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claude-session-hub 0.1.2
File Interpreter ABI Platform Actions
claude_session_hub-0.1.2-py3-none-any.whl Python 3 none any Details for claude_session_hub-0.1.2-py3-none-any.whl

Total release size: 103.8 kB

Release files / claude_session_hub-0.1.2.tar.gz

Download URL claude_session_hub-0.1.2.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b567e3773fc00fb92f5141dd158f4588a7e4b6b9509718187aeb3cb3062ad00c
BLAKE2b-256 checksum
How to use checksums
ea4e0108c1b499af5f8f20183c7345051c7cab5694960d283debe403bd3fff97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / claude_session_hub-0.1.2-py3-none-any.whl

Download URL claude_session_hub-0.1.2-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c821ca58bde7213671427d5c3c4c3d9b86c0a6dbb5d2677083b36cf7cba651e
BLAKE2b-256 checksum
How to use checksums
b8a33db894ffcbc918e77ee58cbb3782b2de431bf49c2be4fef020042f905aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for claude-session-hub 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for claude_session_hub-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page