We need to be able to monitor multiple sessions at once
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. 😁)
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗