We need to be able to monitor multiple sessions at once

Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 8 comments · opened Jun 27, 2025 · closed Jul 1, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator) responded on this thread — see the highlighted reply below.

A lot of us are running multiple claude sessions in parallel. Sometimes multiple sessions for multiple projects. (That's a testament to how amazingly useful this tool is!) But it's reached the point where I seem to spend a chunk of time flipping between tabs, just checking for which sessions are blocked waiting for my input.

We need some way of monitoring multiple sessions at a glance, and seeing which ones are blocked.

There are lots of ways you could tackle that, but here's a small suggestion that I think would be really easy to implement: add a stop_reason: "prompt" event to the event log in ~/.claude/projects/<dir>/<session>.jsonl. Every time claude-code needs to prompt the user for input, emit a JSON packet like:

{
   "message": {
    "content": [
      {
        "text": "Would you like me to create that file?",
        "type": "text"
      }
    ],
    "stop_reason": "prompt",
  },
  "type": "assistant",
   ...
}

If you do that, it would be possible to write something that can monitor all sessions and detect which ones are blocked, and then the community can take over from there.

(In fact, I'll make you a promise - if you add an event like that, I'll release a monitoring tool by the end of the next business day. I've already got the prototype built, and just got blocked on the fact that there's no way to reliably determine which sessions are blocked. 😁)

View original on GitHub ↗

8 Comments

krisajenkins · 1 year ago

Adding a screenshot of the prototype, just to prove I mean it. 😁

<img width="1242" alt="Image" src="https://github.com/user-attachments/assets/4d762783-33ee-47b8-aed8-3a780818a22a" />

commandodev · 1 year ago

Yes please!!

martintrojer · 1 year ago

+1

shmish111 · 1 year ago

Please! It's not good for my mental health to sit flipping between tabs all day 😭

abrinsmead · 1 year ago

@krisajenkins it's not exactly what you are asking for, but you can configure your terminal to notify you when input is needed.

claude config set --global preferredNotifChannel terminal_bell

dicksontsai collaborator · 1 year ago

As of v1.0.38, you should now be able to implement this with a Notification hook. Review https://docs.anthropic.com/en/docs/claude-code/hooks

krisajenkins · 1 year ago

Amazing, thanks @dicksontsai! Not how I imagined it, but far more flexible, I'm impressed. 🙂

It'll take me a bit of rejigging tomorrow but hopefully I can publish my tool soon. Thanks. 👍

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.