← Back to Blog

Thirteen tabs and no clue: the list we use to keep track of our agents

Gorka Mendez
Gorka Mendez7 min read
engineering

In how we work with Claude Code we explained that agents write all of our code, often with several sessions running at once. In what we learned building hooks, how we keep those sessions from stepping on each other or breaking something.

One problem was left, smaller and more everyday: knowing what each one is doing.

On a normal day we have thirteen sessions open, each in its own terminal tab. Nine are working and four are waiting for someone to answer them. The tab bar shows thirteen titles cut in half. Which one has been waiting twenty minutes for a reply? Which ones belong to the same task? To find out, you had to go tab by tab.

It’s like walking into a kitchen with thirteen burners on and not a single pot with a glass lid.

What we wanted to see

Before writing anything, we wrote down what we were missing. It came to four things:

  1. Who is working and who is waiting. An agent that is waiting doesn’t move forward, and nobody notices if its tab is at the back.
  2. How long it has been waiting. Two minutes is nothing. Twenty is a stalled task.
  3. What each one is on. Not which folder, but which piece of work.
  4. Getting to that session from there, without hunting for it.

A list on the side, grouped by plan

The result is a narrow window stuck to the left edge of the screen, with every session in it:

The list next to a Ghostty window with five tabs. Clicking the session that has waited 18 minutes brings its tab to the front, where Claude is asking a question; once answered, it works again, and clicking another session switches to its tab. The sessions are made up.

Each session has a mark: yellow if it’s working, blue if it’s running a command and green if it’s waiting, and the time turns orange after 15 minutes of waiting. Under the title you see the worktree and the pull request it’s on. Click one and you jump to its tab.

The interesting part is how they’re grouped. At BlaBlaNote, a task doesn’t live in a repository. It lives in a plan: a document that says what we want to achieve, in what order and what’s left. One plan often moves the app, the events platform and the end-to-end tests at the same time, each in its own worktree with its own session. Grouping by repository would have split apart exactly what belongs together.

But sessions don’t say which plan they’re on. So the list works it out from what they do. It reads each conversation’s history, only the tools it used (which files it read or edited, which commands it ran), and looks for plan names:

  • Reading or naming a plan scores 1. Editing it scores 10. Whoever edits a plan is working on it. Whoever reads it may just be looking something up.
  • Only the last 60 mentions count. A long session that finishes one task and starts another changes group on its own.
  • If the rule gets it wrong, the session corrects it. You just ask the agent to assign itself a plan, and that assignment overrides the rule.

The case the rule can’t settle by itself is the expected one: a session that edits another one’s plan in passing. That’s what the manual assignment is for.

Why not tmux, cmux, Orca or the like

There are quite a few tools for running many agents at once, and some are very good. We looked at them before writing ours:

  • tmux, the classic: it splits the terminal into panes and sessions that survive even if you close it.
  • cmux, a macOS terminal built on Ghostty and designed for agents, with vertical tabs that show branch, pull request and folder, and alerts when an agent needs something.
  • Orca, a development environment that gives each agent its own worktree and lets you compare what several of them do with the same task.

None of them fit the way we work, for four reasons.

Our worktrees are more than a git worktree add. In our Docker repositories, each worktree needs its own ports, its own database, its own keys and its own build files, and closing it means cleaning all of that up. Two scripts of ours do it, and the hooks from the previous article rely on them to know what can be deleted and what can’t. A tool that creates worktrees its own way skips that setup.

Our unit of work is the plan, not the repository. cmux shows each tab’s branch and pull request very well, but it groups by workspace. What we need to see together are the three sessions moving the same plan forward in three different repositories.

We didn’t want to change terminals. We already use Ghostty, with our configuration and our shortcuts. The list attaches to what we already had and doesn’t ask us to move to another app. If we remove it tomorrow, nothing else changes.

Simplicity. It’s a single Python file of about 700 lines, with no dependencies. It doesn’t touch the sessions: it reads their status and their history, and the only thing it changes is which tab has focus when you click. When something breaks, it gets fixed in an afternoon, and nobody has to learn a new tool.

None of these reasons says those tools are bad. If you’re starting from scratch, or if your worktrees need nothing more than a folder, they’ll probably save you work. Ours exists because we already had a setup around us and wanted to see it, not replace it.

What we tried and dropped

The first version wasn’t a separate window but a panel inside Claude Code itself, next to the conversation. The two lived side by side for a few days and we kept the window: we liked it better. That spot is already taken by another panel of ours, the one that shows what each session is producing, and a Claude Code mod only allows one. We could have put both things in tabs, but we prefer to see each one separately.

The window has two quirks we accepted knowingly:

  • It always opens on the main display, on the left. Moving it anywhere else afterwards would mean giving the tool macOS’s Accessibility permission, which lets it control any window of any app. A well-placed window isn’t worth that. It’s the same idea as with the hooks: every permission you don’t grant is a problem you can’t have.
  • The first click, when you come back from another window, only activates it. There’s a workaround: if you move the mouse over it before clicking, the first click counts.

For anyone who wants to use it

We’ve published it as open source, under the MIT license: github.com/gorkamb/ghostty-claude-sessions.

It works on macOS with Ghostty and installs as a Claude Code plugin, in two steps (the first one asks you to confirm where the plugin comes from and to reload):

/plugin install ghostty-sessions --marketplace gorkamb/ghostty-claude-sessions
/ghostty-sessions:setup

Claude itself does the second step. It checks that everything is in place, looks for where you keep your plans, writes the configuration and opens the list. From then on, the list opens by itself when you start a session in Ghostty, if it wasn’t open already. If you don’t keep plans in files, it groups sessions by repository, which works too. And if it doesn’t win you over, /plugin uninstall ghostty-sessions removes it.

An honest warning: it reads an internal Claude Code file, the one that stores each session’s status, which isn’t a documented interface. A Claude Code update can break the status column. If that happens, we’ll fix it, but it’s a personal tool shared as is.

What we’re taking away

  • With many agents, you are the bottleneck. An agent waiting for an answer doesn’t move forward. Seeing how long it has been waiting matters more than seeing what the busy one is doing.
  • Group by the unit you think in. For us it’s the plan. For another team it will be the ticket or the branch. Almost never the folder.
  • Infer before asking, and let people correct it. Nobody was going to label thirteen sessions by hand. A simple rule with a way out for when it fails works better than a perfect rule.
  • Small things stay maintainable. A file that only looks, and asks for nothing beyond letting your terminal control Ghostty, is easy to understand, to fix and to remove.

Gorka

Gorka Mendez

Gorka Mendez

Co-founder
30 days free

Ready to transform your conversations?

Join professionals who capture, organize, and act on their conversations with AI-powered intelligence.

30 days free
No credit card required
Cancel anytime