[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_
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
It's not identical to previous ones because it involves an incoming webhook instead of a CLI command. Although a CLI command like
claude injectwould also be pretty handy.This has been implemented with Claude Code Channels
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.