-
Notifications
You must be signed in to change notification settings - Fork 63
Introduce experimental session modes #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]> Co-authored-by: Richard Feldman <[email protected]>
Exposes all Claude Code permission modes as [ACP Session modes](zed-industries/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 <[email protected]> Co-authored-by: Richard Feldman <[email protected]> Co-authored-by: Bennet <[email protected]>
Adds support for [ACP session modes](zed-industries/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 <[email protected]> Co-authored-by: Richard Feldman <[email protected]> Co-authored-by: Danilo Leal <[email protected]>
Adds support for [ACP session modes](zed-industries/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 <[email protected]> Co-authored-by: Richard Feldman <[email protected]> Co-authored-by: Danilo Leal <[email protected]>
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