session-watch
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Shows this session's state in the sidebar: context fill, token totals, cost, model and effort, the Claude Code version, the other sessions of this machine…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Shows the session's state in the sidebar or status line: context fill, token totals including thinking tokens, cost, model and effort, Claude Code version, how many other sessions run on this machine, and the git branch and status. It reads Claude's own transcript and session files and runs git, tail, head and ps locally. Nothing leaves your machine; it stores only per-session token totals.
Review details
Static review of the source at the pinned commit; not run. Registers session.start, turn.step, turn.complete, model.fork, model.complete, session.compact, tool.call (Bash, only tests the command text for 'git' to refresh the git line) and the /session-watch command. Runtime calls: $.session.usage/model/id/root/version, $.settings.read (effort setting), $.env.get (CLAUDE_CONFIG_DIR, HOME, CLAUDE_CODE_EFFORT_LEVEL), $.fs read of <config dir>/sessions/*.json (pid, session id, status, name, cwd last folder of other sessions), $.process.run/spawn with argv arrays for 'git status --porcelain=v2 --branch' in the session directory (10 s timeout), 'tail -c' and 'head -c' on this session's own transcript and subagent transcripts (parsed only for token usage, effort and thinking tokens), and 'ps -o pid= -p' to drop dead sessions; $.store totals per session id; $.sidebar.set, $.ui.status. No network calls, no writes except the store. Running git status in the opened repository lets git apply that repository's own config (for example core.fsmonitor), a general git behaviour rather than code of this mod. The model.fork/complete hooks only read the usage numbers of other plugins' calls. Dev dependencies and Makefile/eslint config were not reviewed.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Shows this session's state in the sidebar: context fill, token totals, cost, model and effort, the Claude Code version, the other sessions of this machine, and the git branch and status.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/session-watch/)