[FEATURE] Wake an idle Claude Code Session (via a incoming webhook)
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
If you have a session of Claude Code running, then it seems the only option you have right now is to use the /loop [interval] to keep it alive and check something.
This can end up using a lot of tokens over many hours.
Proposed Solution
Allow Claude Code to run a local server with a webhook whereby you can pass a message directly into a session of Claude Code that is running and idle.
Alternative Solutions
I tried connecting two sessions via a task list CLAUDE_CODE_TASK_LIST_ID, then passing a task from a headless session to a non-headless one, but it didn't work for activating an idle non-headless session.
Priority
Medium - Would be very helpful
Feature Category
API and model interactions
Use Case Example
I could send an incoming webhoo to Claude Code running on a local port localhost:12345 which would then pass a command into a running session, thereby activating it, getting it to do a workflow, and then stopping.
Additional Context
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗