Conversation
|
@agu-z Instead of making this stateful, I think it'd be cleaner to just add a |
|
@ConradIrwin yeah, that's a good idea! That said, since making this PR I realized that a core feature of plan mode in CC is that it can ask the user to switch modes in the middle of a turn when it thinks it's ready for implementation. So it's not quite stateless. I'm gonna try a few approaches for this mode switch on Monday. I think the simplest would be to request the switch via a tool call, but we'd also need a notification from the agent to let the client know that the mode changed. Another option is to add an explicit method to request a mode switch, in which case the notification wouldn't be needed. |
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com>
Exposes all Claude Code permission modes as [ACP Session modes](agentclientprotocol/agent-client-protocol#67). This allows ACP clients to build mode selectors and to be notified when the mode changes as a result of `ExitPlanMode`. See a demo in the [Zed PR](zed-industries/zed#37632). Closes #31 --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com> Co-authored-by: Bennet <bennet@zed.dev>
Adds support for [ACP session modes](agentclientprotocol/agent-client-protocol#67) enabling plan and other permission modes in CC: https://github.com/user-attachments/assets/dea18d82-4da6-465e-983b-02b77c6dcf15 Release Notes: - Claude Code: Add support for plan mode, and all other permission modes --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com> Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Adds support for [ACP session modes](agentclientprotocol/agent-client-protocol#67) enabling plan and other permission modes in CC: https://github.com/user-attachments/assets/dea18d82-4da6-465e-983b-02b77c6dcf15 Release Notes: - Claude Code: Add support for plan mode, and all other permission modes --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com> Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
* Introduce experimental session modes * Add `SessionUpdate::CurrentModeUpdate` Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com> * Add switch mode kind * SessionModeId display impl --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com>
) Exposes all Claude Code permission modes as [ACP Session modes](agentclientprotocol/agent-client-protocol#67). This allows ACP clients to build mode selectors and to be notified when the mode changes as a result of `ExitPlanMode`. See a demo in the [Zed PR](zed-industries/zed#37632). Closes agentclientprotocol#31 --------- Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de> Co-authored-by: Richard Feldman <oss@rtfeldman.com> Co-authored-by: Bennet <bennet@zed.dev>
Enables the agent to expose a set of modes that the session can be put in at any given point. The main motivation for this is enabling a permission mode selector for Claude Code, allowing you to toggle between "default" and "plan" mode.
Note: This feature is experimental, and may be removed or changed at any point