
A live dashboard for every Claude Code session you run, on your laptop and on any machine you SSH into. You can watch what each session is doing, approve or deny tool calls from the browser, follow subagents, and see token usage.

What you see
- Status for every session: running, thinking, subagents working, needs approval, waiting for you, idle, error or ended, with live timers.
- Approvals in the browser: Allow, Always allow (adds the suggested permission rule), Deny with a note to Claude, or hand back to the terminal. Shortcuts are
A, Shift+A and D, with desktop notifications and a sound.
- Current work: the running tool with the full command or edit diff, your last prompt, Claude's last reply, and the task list.
- Subagents: type, task brief, current tool, tool calls, tokens, duration and result.
- Usage per session: input, cache read/write and output tokens, session cost, lines changed, a context-window gauge, tokens per hour over 24 h, and per-model and per-tool breakdowns.
- Agent tree: a live graph of each session. The main agent branches into its subagents (nested ones too), and each agent into the tools it used, with counts. Subagents that are working glow, their edges animate, and the tool running right now is highlighted. Click a subagent to see its brief and result.
- Hot files: a treemap of every file Claude read, edited or created, grouped by folder and sized by how often it was touched. Files touched in the last 90 seconds glow. You can view one session or the whole project across sessions, with lines added and removed. File history from local transcripts is included.
- Board: a Jira-style board with the columns Backlog → Running → Needs you → Review → Done.
- Every session becomes a card in the column that matches its live status. A finished turn that changed files lands in Review until you mark it done (✓, or drag it).
- You can add your own task cards with a prompt, priority, goal and repo. Link a card to a session and it follows that session's status.
- Goals group cards and show progress and spend. "Copy start command" gives you a ready-to-paste
claude command for the task.
- Shortcuts:
n adds a card; ⌘K finds any card.
- Trace: a waterfall for each prompt. Every tool call is a bar on a time axis, subagent work is nested under the subagent that did it, approval waits show as amber hatching ("47s waiting on you"), and failures are red. Click any row to see its input and result, and step through turns with ‹ ›.
- Command palette (⌘K): jump to any session or view, approve or deny the waiting request, switch filters, theme and density.
- Live top bar: plan limits, work in progress, "needs you", and today's spend and tokens, each with a sparkline and a change against your recent average, plus a tool-calls-per-minute strip across all machines.
- Activity heatmap: a GitHub-style calendar of agent activity for the last year, switchable between responses, active hours, tokens and spend. It also shows a weekday × hour grid of when your agents work, current and longest streaks, your busiest day and your peak hour.
- Account usage: your plan's 5-hour and weekly limits (percent used, reset countdown, trend) and any gateway spend limit. Also today / 7-day / 30-day / all-time token usage and API-equivalent cost, a daily chart, and breakdowns by model, project and machine. Covers every transcript on the machine plus every remote machine reporting in.
- Machines: local and remote hosts grouped, with an SSH badge and the source IP. Sessions from the last 3 days are picked up from local transcripts.
Python 3.8+ standard library only, with no dependencies.
Install: pick one
Option A: pip
git clone https://github.com/Tushar-ml/agent-cockpit.git
cd agent-cockpit
pip install .
cockpit setup
cockpit setup does four things:
- Adds the hooks to
~/.claude/settings.json (backing up the file first).
- Routes the status line through the relay so plan limits reach the dashboard. A status line you already have keeps rendering.
- Starts the dashboard at login (launchd on macOS, a systemd user service on Linux).
- Opens http://localhost:7777.
New claude sessions report straight away. Restart sessions that were already running.
Option B: Claude Code plugin marketplace
Inside Claude Code:
/plugin marketplace add Tushar-ml/agent-cockpit
/plugin install agent-cockpit@agent-cockpit