[FEATURE] Status hook
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Right now, it's hard to infer the status of a claude code session from just the hook events, especially because there is no clear lifecycle defined. Given managing multiple sessions is key, it would be nice to know which sessions are busy and which need user input. But using the existing hooks, it's not always possible. It would be nice to have a Status hook that just emits the current status that claude code is in so tooling can be built around this
Proposed Solution
Add a new hook named StatusChanged that emits the current status of claude code, nothing can be done so the response of the hook is not alternative. Some relevant status fields could be:
- Waiting for Prompt (on startup)
- Active (or split in Thinking, Using Tool, ...)
- Asking For Permissions
- Asking For feedback (plan mode questions / plan mode presentation)
- Done (could potentially be Waiting For Prompt again)
Alternative Solutions
Trying to combine the existing hooks but it feels like after giving permissions, PreToolUse doesn't always trigger and after answer questions UserPromptSubmit doesn't always trigger so sometimes a session is stuck in the wrong status for a while.
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗