A Local Dashboard for Every Claude Code Session Link to heading

Ten or more Claude Code sessions open at once is normal for me, each in its own Terminal tab. That’s not because I’m doing ten things at once. Most of those tabs are sitting there for one of two reasons.

Either the session is blocked: it’s waiting on a reply from another team, a change window, a ticket someone else has to move. Or I’ve lost track of what it was doing, and I won’t close it in case I lose the context for a job I’m still on the hook for.

So the tabs pile up, and working out which one actually needs me means clicking through every single one of them. Some have asked me a question. Some have finished and are waiting for the next instruction. Some are still working. From the tab bar they all look the same.

The Claude desktop app solves some of this, but it isn’t always an option. Plenty of workplaces only allow the CLI. So I built claude-dash: a small, locally hosted dashboard that shows every Claude Code session on one page.

What It Shows Link to heading

Claude Code already does most of the hard work. It writes a short AI title for each session, and a “while you were away” summary when you come back to one. They’re a good answer to “what was this tab doing?”, but they’re stuck inside each tab. The dashboard reads them off disk and puts them side by side.

Open sessions are sorted into columns by what they need from you:

  • Waiting on you: Claude has asked a question, hit a permission prompt, or finished with a reply that asks you something (“let me know”, “needs your approval”, or just a question mark).
  • Working: the session is busy.
  • Idle: the session is done and isn’t asking anything.

Each card shows the session name and repository, the AI title (hover for the away summary), the last thing I asked, any ticket keys it mentions, how long since anything happened, and the last reply, formatted as Markdown. The page refreshes every five seconds, and there’s a filter box that searches all of it. Type a ticket key and you see every tab working on that ticket.

On a narrow screen the columns become swipeable, one at a time.

Answering From the Board Link to heading

Seeing which session needs me was the first win. Having to go and find its tab to answer it was the next annoyance.

So each waiting or idle card has a reply button. Type the next prompt, press Send, and the dashboard types it into that session’s Terminal tab and submits it, exactly as if I’d typed it there myself. That last part matters: the text lands in the transcript as my prompt, not as something injected from the side, so the session’s history reads the same either way.

When Claude asks a question with options, the card shows the same question and options you’d see in the terminal, one page at a time, with a box for your own answer. Pick one and the dashboard presses the keys in the tab for you. One odd detail: an open question isn’t in the transcript until it’s been answered, so the dashboard has to read it off the Terminal screen instead.

There’s also a × on each card that stops the session and closes its window, and a new session button that opens a fresh tab in a chosen directory with a chosen permission mode.

Closing Tabs Without the Fear Link to heading

This is the bit that changed my habits the most. Closing a Claude Code tab doesn’t throw anything away. The whole conversation stays on disk, and claude --resume <session id> brings it back. I knew that, but I still didn’t close tabs, because finding the right session ID again later was a chore.

The dashboard has a show recently closed toggle that lists everything closed in the last week, each with a resume button. Once getting a session back is one click, keeping a tab open “just in case” stops making sense.

How It Works Link to heading

It’s deliberately small: one Bun server, one HTML page, an AppleScript file, and a couple of macOS LaunchAgents to keep it running.

SourceWhat it provides
~/.claude/sessions/<pid>.jsonEvery running session: name, working directory, idle or busy
~/.claude/projects/*/<session id>.jsonlEach session’s transcript: AI title, away summaries, last prompt, cost
Terminal (AppleScript)The tab whose tty matches a session’s process, for typing a reply

Nothing leaves the machine. The server only listens on 127.0.0.1, and apart from replying, closing and starting sessions it only reads local files.

Those three write actions are the dangerous part. Sending a reply makes a Claude Code session act with your permissions, so those routes only accept JSON requests from the dashboard’s own page, checking the Host and Origin headers. That stops some other website you happen to have open (or one using DNS rebinding) from talking to it. Replies also have control characters stripped before they’re typed, so a reply can only ever arrive as text.

A watchdog restarts the server if it hangs, and also whenever the code or settings change on disk, so editing it reloads the dashboard within a few seconds. Nothing needs sudo.

Building on Someone Else’s Internals Link to heading

Here’s the catch, and it’s a big one. Neither of those files is a documented interface. They’re Claude Code’s own internal state, and any release can change them and break the dashboard.

That’s already happened, more than once, in the ten days I’ve been working on it:

  • The cost on each card comes from a record that some versions just don’t write, so on those versions no cost is shown.
  • The session registry turned out to have a third status, shell, alongside idle and busy. It means the session is idle but has a background task running. Until I worked that out, any session with a background task lost its reply button.
  • I was checking that a session was still alive by looking for a process called claude. Claude Code renames its own process, so that check was hiding real sessions. It now compares the process start time instead, which also catches the case where an old session’s process ID has been reused by something else entirely.

None of these were hard to fix once spotted. But it’s the same trade I wrote about last month: build it yourself and it fits exactly what you need, and in return you’re the vendor, the help desk and the warranty. When Claude Code updates and something breaks, nobody’s coming to fix it but me.

Design First, Then Code Link to heading

The repository has a design/ folder, and it’s there for a reason. Code generated with AI isn’t deterministic. Ask for the same change twice and you get two different implementations. If the code is the only record of what the thing is supposed to do, there’s nothing stable for a review, a test or the next regeneration to check against.

So the design is the source of truth. Each concept (session discovery, attention classification, prompt delivery and so on) has its own file with boundaries and acceptance criteria, there’s a coordination map showing how they connect, and every change updates the design first and lands in the same commit as the code. When something’s wrong, the first question is whether the criterion was wrong or the code was. Surprisingly often it was the criterion.

There’s also a changelog that records every design change and why. Reading back through it is the most honest account of the project there is, including the bits where I was confidently wrong about how Claude Code works.

Limitations Link to heading

It’s a tool I built for me, and it shows:

  • macOS and Terminal only. Replies only work for sessions in macOS Terminal. iTerm2, tmux and editor terminals show the card but refuse the reply.
  • “Waiting on you” is a guess. It looks for a question or one of a short list of request phrases in the last paragraph. A reply that asks for something in other words shows as idle.
  • Long sessions are slow to load first. The server reads each transcript in full and caches it until it changes.
  • It will break. See above.

Try It Link to heading

You’ll need macOS, Bun and the Claude Code CLI. The README has the full install, but it’s a clone, a .env and ./install.sh, then open http://127.0.0.1:7377. The first reply you send makes macOS ask whether bun may control Terminal; say yes.

If you’re running more than a handful of sessions at once, give it a go. And if it breaks on the next Claude Code release, well, you know where the issues page is.