[FEATURE] Claude Code's message queue system more intelligent with a Decision model

Open
#110,632 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
ai, cli

Research direction

Start by reading the message queue and interruption handling entry points in Claude Code, then trace how queued messages reach the model and sub-agents. The issue does not name files or tests, so first locate those flows and assess where a decision model could fit. Done would mean queued messages are assessed for urgency and either delivered to steer ongoing work or left queued, with behavior covered by tests.

Written by the indexing model from the issue text.

Description

area:tui enhancement
Preflight Checklist
  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)
Problem Statement

I'm coding and wanting to interrupt the model with a new idea while it's currently working.

I can do CTRL + X + S, works fine. But I would love it to automatically detect if the message I sent in queue is important or can wait - by itself. A decision model should be highly capable of doing so.

This should make it easier for new users to use Claude Code as well.

Sometimes when I vibe-code, I'm unsure if my queued messaged is important or verified with what it's doing, in order to determine if I should stop to send it the message, or not. Since I'm not focusing much on what it's doing.

Proposed Solution

Have Anthropic give a decision model to Claude Code that does this.

Alternative Solutions

No response

Priority

Low - Nice to have

Feature Category

API and model interactions

Use Case Example
  1. I work on a project with Claude Code, with multiple sub-agents.
  2. I give it my idea(s) mid-work, and it decides immediately if it should steer to the subagent(s), or leave it in queue.
Additional Context

No response

Dominant language
TypeScript
Stars
156k
Forks
25k
Avg merge
16h 19m
Merged PRs (30d)
5

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.