[FEATURE] Wake an idle Claude Code Session (via a incoming webhook)

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Mar 7, 2026 · closed Mar 20, 2026

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_

View original on GitHub ↗

4 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/24947
  2. https://github.com/anthropics/claude-code/issues/31244
  3. https://github.com/anthropics/claude-code/issues/24983

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ray-amjad · 5 months ago

It's not identical to previous ones because it involves an incoming webhook instead of a CLI command. Although a CLI command like claude inject would also be pretty handy.

ray-amjad · 5 months ago

This has been implemented with Claude Code Channels

github-actions[bot] · 5 months 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.