Feature Request: Whisper Alert
Enable me to send the agent an Alert (into the context/convo feed) without needing to interrupt the agent's execution. This could also just simply be defined as a non-interruptive prompt that skips the queue.
The system already supports this capability through the Read update channel:
- I ensure a file is read, i.e.
cc-alerts/Alert.txt - later, during execution, I update the file with what I want the agent to see at that time.
- On save, the agent is notified,
<system-reminder>, that the user updated the file, and is shown a cat -l. - e.g. to pause all execution, to review a file, to run a lint script, to update todos, etc. (Why: this was tied into my automated guard-railing method before hooks. But even still i run into times when i want to send a non-interuptive in)
The team might consider extending & publicly exposing that api. Or, creating a safer public interface.
Something simple like % or /w in the tui.
╭─────────────────────────────────────────────────────────────────────────────────────╮
│ > % Please also update the xyz flatbuffer, we forgot to add that to the task |
╰─────────────────────────────────────────────────────────────────────────────────────╯
Which becomes added to the internal context:
<system-alert>
// this message was sent directly by the user
MESSAGE TO CLAUDE CODE: Please also update the xyz flatbuffer, we forgot to add that to task
</system-alert>
Ordering Guarantees: Alerting into the context feed via my _hack_ has been mostly reliable. But it doesnt always work and I end up sending many alerts (re-saving the file). Hopefully the there is a smart way within the private architecture to enable a just-in-time injection (unlike my method where I hope the agent gets a good glimpse of it).
⚠️ Disclaimer
This might be more alchemy than anything. Maybe the answer is just interrupt bro
But throwing it out there, I've wanted this many times and think it will become more important over time. Today I can structure tasks that last 5-10min, with hooks probably even longer; the need to send in messages without stopping execution flow is desirable as a user. Something like this will be a feature in the "Code 10h a day" future.
- I think integrated/networked capability though sdk or api is a different thought exercise.
BONUS ROADMAP - Whisper Chat: a side-channel conversation with the agent while it is working.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗