Repository navigation
docs(rfd): propose a prompt_suggestions session update - #2404
Open
nikita-ashihmin wants to merge 1 commit into
Open
nikita-ashihmin wants to merge 1 commit into
nikita-ashihmin wants to merge 1 commit into
Conversation
Proposes a `prompt_suggestions` variant of `SessionUpdate` for v1 and v2, carrying the prompts an Agent predicts the user is likely to send next: an ordered list that each update replaces whole, where an empty list withdraws the offer and accepting a suggestion fills the composer without sending it. In v1 a `ClientSessionCapabilities.promptSuggestions` capability gates the event. Unlike notices there is no fallback channel behind it: it tells the Agent whether asking the model for a prediction is worth anything at all. The mechanism already runs as `_meta.promptSuggestions` between the Claude Agent adapter and the JetBrains AIR Client, and Codex has an open request for the same feature, so the RFD standardizes an existing shape rather than inventing one. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Elevator pitch
Agents increasingly predict a plausible next prompt at the end of a turn — the transcript is already in context and the prediction rides the same prompt cache — and editors already have the surface for it: the empty composer that shows grayed-out text, completes on Tab, and drops it on Escape or the first keystroke. ACP has no event for that value, so every Agent–Client pair invents its own channel.
This RFD proposes a
prompt_suggestionsvariant ofSessionUpdatefor v1 and v2:{ "sessionUpdate": "prompt_suggestions", "suggestions": [{ "text": "Run the test suite and fix what breaks" }] }session/load.In v1 a
ClientSessionCapabilities.promptSuggestionscapability gates the event. Unlike notices, there is no fallback channel behind it — the capability exists so an Agent knows whether asking the model for a prediction is worth anything at all. V2 relies on its unknown-update fallback.Why now
The shape is not hypothetical: it already runs in production as
session_info_update._meta.promptSuggestionsbetween the JetBrains AIR Client and the Claude Agent adapter (claude-agent-acp#1356) — with a deliberately vendor-neutral key, which is a fair sign it wants to be protocol — and Codex has an open request for the same feature (openai/codex#42587). Standardizing it now avoids a second incompatible implementation of the same idea.The FAQ covers why this is not a field on
session_info_update(it must stay aligned withSessionInfo, and a prediction has no place in a session listing), why it is a list, why there is no "the Agent is still deciding" state, and why acceptance is not reported back.Docs only: the RFD plus its navigation entry. Prettier and spellcheck are clean.
Generated with Claude Code
via Happy