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.

Local, read-only and free: it reads the files Claude already writes on your computer and shows them on a page at 127.0.0.1. Nothing is sent anywhere.

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. "Checkout API" finishes its turn with a question and joins "waiting for you", below the session that has waited longer. Then a handoff note, and tokens, each session's share of this week's work and commits.

pipx install claude-session-hub
claude-session-hub          # or: claude-session-hub --demo

What you see

  • Who is waiting for you, on top, longest wait first, 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.
  • Open ↗ on every card takes you to that session in the Claude app (and so does a click on a question in the "waiting for you" box). For a terminal session it copies the claude --resume command instead.
  • Its last handoff note, if it keeps one (click to read it whole).
  • Tokens per session and per day for the last 14 days, and each session's share of this week's work.
  • 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 (tests, a build, or a helper agent working on its own) has not reported back yet, so the work is not finished. Helper agents use tokens too: this is often why your limits keep going up while a session looks done.
  • 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. "Share of this week's work" is a session's part of everything done since your plan's week began, with every token weighed by its API price (cache re-reads count little, Opus more than Sonnet). It tells you which session is using your limit, not how close you are to it: the plan percent shown is only ever the one the Claude app reports. For the percent right now, run /usage in Claude Code.

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. The Open ↗ button uses the same claude:// link the app gives out for a session, which is not documented either.
  • 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.5

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.5
File Size Uploaded Provenance Actions
claude_session_hub-0.1.5.tar.gz 59.9 kB With provenance Details for claude_session_hub-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 109.9 kB

Release files / claude_session_hub-0.1.5.tar.gz

Download URL claude_session_hub-0.1.5.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4f15949db4390b2d393d3a3aa3bb3ebaa8c29a9ec9f9c177ebc25332e1165ddf
BLAKE2b-256 checksum
How to use checksums
f5b71cdf783bbdd2f2e16ce27e663bb50cbc8ab6c1cbbe83e8dd22358faeb92d
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 Dec 1, 2026.

Transparency log

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

Download URL claude_session_hub-0.1.5-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb60c4d5638cee1640e0e7de22ec163597b4859b8922d1e79e24ed47f95050f0
BLAKE2b-256 checksum
How to use checksums
b8b675ff09ee8a38fb77da5396ca8e30cbd5eb1f305d896fa0e6b0be0d7612b4
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 Dec 1, 2026.

Transparency log

Security for claude-session-hub 0.1.5

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.5.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 Dec 1, 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