Skip to main content

Session Pulse

A quiet instrument panel for Claude Code.
See every session at a glance, and never lose track of what a session left for you to do.

tests Python 3.11+ No dependencies Local only MIT licence Sponsor on GitHub Buy me a coffee

Session Pulse: a terminal prompt whose cursor turns into a pulse line, with Working, Idle and No sessions states

See it in action (1 minute)

https://github.com/user-attachments/assets/ba0b1bb5-c1b3-4b1a-816a-23b161823a6a

Made-up data throughout. Re-record it with tools/showcase/run.sh.


Why

If you use Claude Code every day, you probably have several sessions open across projects. Some are working, some are waiting for you, and some ended an hour ago with "you still need to decide X, and someone has to approve Y". Those loose ends live in scrollback, and scrollback gets cleared.

Session Pulse sits next to your clock and keeps it all in one place:

  • What's running: which sessions are open, working or idle, for how long, using how much.
  • What's left: when a session goes quiet, Claude lists what it left open (decisions, outside work, checklists, things you're waiting on) and puts it on a board for you.
  • How you work: tokens per day by model, real active hours, and tips to get better at Claude Code based on your own habits.

It reads the files Claude Code already writes under ~/.claude. Nothing leaves your machine.

Session Pulse is an independent project. It is not made, endorsed or supported by Anthropic.

Screenshots

Overview: live sessions, KPIs, to-do list and completed items

To-dos that fill themselves One board for everything you still owe
To-do list grouped by project, with follow-ups picked up from sessions Kanban board with colour-coded columns: Decide, Outside work, Waiting on, Checklist, Later, Added by me, Done
Get better at Claude Code Light theme
Suggestions based on your usage, with links to free official docs and courses The overview in the light theme

All screenshots use made-up data (tools/showcase/).

Features

  • Live sessions: working or idle, running time, last change, tokens, model. The panel icon shows the count and turns orange while Claude is working.
  • Follow-ups (optional): Claude reads each session after 20 quiet minutes and adds what was left open to your to-do list, linked back to the session, with a one-click resume command. A later session that finishes an item closes it automatically.
  • Board: every to-do as a card, colour-coded by kind (Decide, Outside work, Waiting on, Checklist, Later), or by status (To do, Doing, Done). Drag and drop, project filter, search.
  • Your own to-dos too: add them on the dashboard or with sessionpulse todo add "…".
  • Usage: input, output and cache tokens per day, split by model; active hours per day; busiest projects.
  • Starts and exits: when each session started and ended, and why (/clear, Ctrl+D, logout…).
  • History: every session, searchable, with a copyable claude --resume command.
  • Get better at Claude Code: suggestions picked from how you actually work (no CLAUDE.md in busy projects, very long sessions, features you haven't tried), with free official docs and Anthropic Academy courses.
  • Small and private: standard library only, listens on 127.0.0.1, needs a token, works in light and dark mode and on a phone screen.

Install

Requires Python 3.11+ and Claude Code.

Linux with the panel icon (Ubuntu and Debian shown):

sudo apt install pipx python3-gi gir1.2-ayatanaappindicator3-0.1
pipx install --system-site-packages sessionpulse
sessionpulse install      # adds the start/exit hooks and a login autostart
sessionpulse tray &       # start the panel icon now

On GNOME you also need the AppIndicator extension. Ubuntu has it on by default; elsewhere install "AppIndicator and KStatusNotifierItem Support". KDE, Xfce, Cinnamon and MATE need nothing extra.

macOS, or without the panel icon:

pipx install sessionpulse
sessionpulse install --no-autostart
sessionpulse serve        # then, in another terminal:  sessionpulse open

On a server you reach over SSH (no desktop):

pipx install sessionpulse
sessionpulse install --no-autostart

Keep the dashboard running with a systemd user service:

mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/sessionpulse.service <<'UNIT'
[Unit]
Description=Session Pulse dashboard

[Service]
ExecStart=%h/.local/bin/sessionpulse serve
Restart=on-failure

[Install]
WantedBy=default.target
UNIT
systemctl --user enable --now sessionpulse
sudo loginctl enable-linger "$USER"   # keep it running after you log out

Then run sessionpulse open on the server. It prints an ssh -N -L 8765:127.0.0.1:8765 … tunnel command and the dashboard link to open on your own computer. The dashboard never listens on anything but 127.0.0.1.

Turn on follow-ups (optional, see what it costs):

mkdir -p ~/.config/sessionpulse
echo 'followups = true' >> ~/.config/sessionpulse/config.toml
sessionpulse followups    # read the last 30 days now instead of waiting

Check everything with sessionpulse doctor. Remove it with sessionpulse uninstall (your data stays) and pipx uninstall sessionpulse.

Commands

Command What it does
sessionpulse install Adds SessionStart/SessionEnd hooks to ~/.claude/settings.json (after backing it up) and a login autostart entry
sessionpulse uninstall Removes exactly those hooks and the autostart entry. Your data stays.
sessionpulse tray Panel icon and dashboard server
sessionpulse serve Dashboard server only
sessionpulse open Opens the dashboard in your browser, signed in (add #board to the address for the board)
sessionpulse doctor Checks the setup and warns if Claude Code's file formats look different
sessionpulse todo [add TEXT -p PROJECT | done ID | undo ID | delete ID | list-done] Your to-do list from the terminal
sessionpulse followups [--days N] [--session ID] [--now] [--again] Read recent sessions now and add their open follow-ups
sessionpulse snapshot Prints the dashboard data as JSON

Settings

Optional. Create ~/.config/sessionpulse/config.toml with any of these keys:

port = 8765              # dashboard port (on 127.0.0.1)
refresh_seconds = 5
claude_dir = "~/.claude" # defaults to $CLAUDE_CONFIG_DIR if that is set
gap_minutes = 30         # activity closer together than this counts as one block of active time
min_block_minutes = 15   # shortest block of active time
followups = false        # true: pick open follow-ups out of quiet sessions
followups_model = "haiku"
followups_idle_minutes = 20
followups_days = 30
followups_parallel = 3
claude_command = ""      # path to `claude` if it isn't on PATH

Follow-ups

Off by default, because it uses Claude. When on, the dashboard server checks every 5 minutes for sessions that have been quiet for 20 minutes and changed since it last read them. It sends their prompts and Claude's replies to claude -p (Haiku by default) and asks only for what's still open. That counts toward your Claude usage: roughly one small Haiku request per session.

The request runs with all hooks disabled and --no-session-persistence, so it never shows up as a session, in this dashboard or in any hook of yours. Items you dismiss are remembered and not picked up again.

Privacy and security

Transcripts contain everything you type into Claude Code, so the dashboard is locked down:

  • It listens on 127.0.0.1 only and rejects requests addressed to any other host name (no DNS rebinding).
  • It needs an access token, stored in ~/.local/share/sessionpulse/token (readable only by you). sessionpulse open and the panel menu pass it once; after that it lives in an HttpOnly, SameSite=Strict cookie. The first link with the token in it may stay in your browser history.
  • Changing to-dos needs the cookie, a JSON request and a matching Origin, so other web pages can't add or delete items.
  • Only the artwork under /brand/ is served without the token.
  • It never writes to Claude Code's files, except install/uninstall, which edit the hooks section of settings.json after a timestamped backup.

Found a problem? See SECURITY.md.

How the numbers are worked out

  • Live status comes from ~/.claude/sessions/<pid>.json. A session counts as live only while its process is running.
  • Tokens come from the usage field of assistant messages. Each API response is counted once, and subagent usage is added to the session that started it.
  • Active time groups activity into blocks: messages less than 30 minutes apart belong to one block, and every block counts as at least 15 minutes.
  • Exits are recorded by the SessionEnd hook, so sessions that ended before you ran install show as "Closed".
  • Cost is not shown. On a subscription, tokens don't map to a bill, and API prices change.

These file formats are internal to Claude Code and undocumented. Session Pulse reads them defensively, and the dashboard and sessionpulse doctor warn when lines stop parsing, usage disappears, or the Claude Code version is newer than the one last tested. If you see a warning, please open an issue with your Claude Code version.

Fork it and make it yours

Session Pulse is small on purpose (a few Python files and one HTML page, no build step), so it's easy to bend to how you work. Some ideas:

You want to… Look at
Change the colours or layout the :root tokens and sections in src/sessionpulse/static/dashboard.html
Use your own logo or artwork src/sessionpulse/static/brand/ and src/sessionpulse/icons/
Add your team's own learning links or habits to check LIBRARY and suggest() in src/sessionpulse/learn.py
Change what counts as a follow-up, or the categories SYSTEM and KINDS in src/sessionpulse/followups.py and todos.py
Send follow-ups somewhere else (Linear, Jira, a chat channel) todos.merge_followups() is the one place new items land
Record your own demo video tools/showcase/run.sh (needs Chrome, Node 20+, ffmpeg; uses made-up data)
git clone https://github.com/<you>/sessionpulse && cd sessionpulse
python3 -m unittest discover -s tests          # 38 tests, a few seconds
PYTHONPATH=src python3 -m sessionpulse serve   # then: PYTHONPATH=src python3 -m sessionpulse open

If you build something others would like, a pull request is very welcome. See CONTRIBUTING.md. The MIT licence only asks that you keep the copyright notice.

Support

If Session Pulse saves you time:

  • ⭐ Star the repo. It helps other Claude Code users find it.
  • 🐛 Report bugs or ideas in Issues.
  • ☕ Buy me a coffee for a one-off thank-you.
  • 💖 Sponsor on GitHub for monthly support. Even a coffee's worth a month keeps it maintained.

Licence

MIT © 2026 Vijay Shukla. Claude and Claude Code are trademarks of Anthropic, used here only to say what this tool works with.

Metadata

Release files for sessionpulse 0.1.1

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

Source distribution (sdist)

Source distribution for sessionpulse 0.1.1
File Size Uploaded Provenance Actions
sessionpulse-0.1.1.tar.gz 64.0 kB With provenance Details for sessionpulse-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sessionpulse 0.1.1
File Interpreter ABI Platform Actions
sessionpulse-0.1.1-py3-none-any.whl Python 3 none any Details for sessionpulse-0.1.1-py3-none-any.whl

Total release size: 130.5 kB

Release files / sessionpulse-0.1.1.tar.gz

Download URL sessionpulse-0.1.1.tar.gz
Size 64.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2b0703b6905709f696d524aee475181354fbe41121676c01d493cf47754945c6
BLAKE2b-256 checksum
How to use checksums
1e3fbdafb30d9778ba11686ddd9c943123c263a84307d8a3cf27acf9fa2ba237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / sessionpulse-0.1.1-py3-none-any.whl

Download URL sessionpulse-0.1.1-py3-none-any.whl
Size 66.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c2ac3e97b9e4b8c812fbffb53f93486cdb1e3bb5d29e85be9226606f91d150
BLAKE2b-256 checksum
How to use checksums
3e45f73725a09b75160ccbce6ab3328f7482c5f0275ffdd9d0fffdacd2de92bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Security for sessionpulse 0.1.1

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 sessionpulse-0.1.1.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 Oct 14, 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