Session panel
Live session-stats side pane for the Claude desktop app's Code tab: context, cost, git changes, turn stats, subagents, log.
claude plugin validate to auditGuide →Writes files, executes local shell processes, or programmatically drives Claude.
Statically scanned from hooks & source. Learn how to audit
session-panel
A live session-stats side pane for the Code tab of the Claude desktop app; it opens in a terminal too, with
/session-panel. It is a Claude Code plugin built on the mods API: a hooks module that draws a pane. This repository
is a plugin marketplace, philarete-mods, that holds this one plugin.
What it shows
- Session: the session's total cost; the Session band, the context ring with eight tool stations around it, their counts, running and failure marks, and a pulse on each call; and the Session / Subagents split once subagents have run.
- Project: the project folder, its git branch, and the working tree's changes against HEAD.
- Usage: the plan limits (5-hour, Weekly, Spend) as meters with a countdown to each reset.
- Turn stats: the main agent's turn as a ribbon of model and tool time in the stations' hues, live while a turn
runs, with a legend that names each station with its own swatch and share; the table (speed, elapsed, model and
tool time, steps, tokens and cost) behind a
detailsfold. - Activity: lanes for the main agent, each subagent and each background task (Bash commands, Monitors and local
Workflows) on one time axis, 8 at most and then
+N more, with the status by shape and the cost or the time. - MCP: the servers that have tools in the context, by name, with their count.
- Context sources: how many skills and MCP servers feed the context.
- Log: the last 200 events, newest first: prompts, tool calls, subagent spawns, resumes and results, the ends of
background tasks, compactions. Its header counts the events it has seen, and a
+N moreline counts the ones that do not fit.
Every section below the Session and Project blocks can be folded, and the fold state persists. A reopened or resumed session is restored from its messages: Activity's subagent and task lanes and the Log come back, with no clock times, and so do the stations' counts after the latest compaction and the compaction count. Every rule is in the plugin's README.
Install
Requires Claude Code 2.1.287 or later (mods support). The mod runs on engines 2.1.288 to 2.1.325 and was checked live on Linux with the desktop app (engines 2.1.288, 2.1.299, 2.1.304, 2.1.321 and 2.1.325) and the CLI 2.1.294; 0.7.1 itself has not been checked live yet. The Project section needs git.
claude plugin marketplace add philarete173/claude_mods
claude plugin install session-panel@philarete-mods
The marketplace is called philarete-mods, while the repository is claude_mods.
In the desktop app, /plugin does not run in the Code tab. Add the marketplace with the commands above in a terminal,
or through + > Plugins > Add plugin.
On the desktop the pane opens by itself when a session starts. /session-panel opens it, or asks to bring it forward
when it is open; in a terminal it is the only way to open it. It works mid-turn too. The command never closes the pane:
its close mark does (ctrl+x x in a terminal).
Update
Third-party marketplaces do not update by themselves; auto-update is off by default. Update the marketplace and the plugin:
claude plugin marketplace update philarete-mods
claude plugin update session-panel@philarete-mods
Then start a new session.
Privacy
- No network access.
- No reading of a credential store, environment variables or settings files. The transcript that the mod reads to restore the pane (below) can hold a secret in a tool result, which the pane does not draw.
- Git runs read-only commands only (
branch,rev-parse,statusanddiff), in the session's folder. - Nothing is written to disk except the fold state, in the plugin store.
- To rebuild the pane on a reopen or a resume, it reads the session's transcript through the engine, tool results included. It draws only prompts, call labels, subagent descriptions and answers, task descriptions, and the name of the tag that opened a turn (not its body or attributes), masked best-effort as live lines are, so a reopen shows earlier prompts and commands again. Nothing from it is written or sent; it stays in session plugin state, which other plugins can read.
The details are in the plugin's README.
Development
Run the tests and the checks:
claude plugin test plugins/session-panel
claude plugin validate plugins/session-panel
claude plugin validate .
For live development, sync the sources into the session's dev folder after each edit. The engine hot-reloads the mod from there at the end of the main agent's turn.
rsync -a --delete --exclude '.claude-plugin/types/' --exclude '/tsconfig.json' \
plugins/session-panel/ ~/.claude/dev-mods/<session-id>/session-panel/
After installing the plugin from the marketplace, delete the session's dev copy
(~/.claude/dev-mods/<session-id>/session-panel/), or that session loads the mod twice.
To release, bump version in plugins/session-panel/.claude-plugin/plugin.json only, add an entry to
CHANGELOG.md, and run claude plugin tag plugins/session-panel, which checks that the manifests agree
and creates the tag session-panel--vX.Y.Z. Push main and the tag, then publish a GitHub Release from the tag, titled
session-panel X.Y.Z, with the CHANGELOG entry as its notes.
The design docs are in docs/README.md.
Credits
Parts of the mod follow these MIT-licensed projects, and the borrowed code is marked in comments.
- OpenChamber (© 2025 Bohdan Triapitsyn): the panel layout and the turn-stats and subagent-cost formulas.
- claude-flightdeck (© 2026 Stephen Casella): the secret patterns that
redactapplies last, as they were copied, and the session-log design. - Desktop Statusline by George Liu (centminmod/claude-plugins): the SVG meter, its colours and thresholds, and the countdown format.
- lot-map (© 2026 Aleksei Volodin): the station map of the Session block, its stations and three of their icons, and its SVG motion and theme techniques.
Their license notices are in THIRD_PARTY_NOTICES.md.
License
MIT, see LICENSE. The plugin folder (plugins/session-panel/) carries its own copy of the license and the
third-party notices, so an installed copy keeps them.
Details
- Author
- @philarete173
- GitHub Stars
- 1
- Sub-category
- Context & Memory
- License
- MIT
- Surfaces
- terminal
- Added
- 15 days ago
- Last synced
- 3 days ago
- Events hooked
session.startsession.attachsession.endcommand.runsession.measureturn.startturn.steptool.callturn.completeagent.spawnprompt.submitsession.compact
Weekly Mods Digest
Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

