Replies: 4 comments 2 replies
-
Doing some more research, this is handled in ACP via the Working on a PR to add this. |
Beta Was this translation helpful? Give feedback.
-
I replied to your issue and there's a lot that of slash commands that aren't in the Claude SDK to my knowledge but you're quite right I've not added support for slash commands in the UI. But that shouldn't stop you doing something like I think there's a few challenges to this because we may need to create a session on adapter initialization in order to return the available slash commands (https://agentclientprotocol.com/protocol/slash-commands#advertising-commands). And probably fire an event to update the slash commands. |
Beta Was this translation helpful? Give feedback.
-
@olimorris so, I did a lot of digging and indeed the story today is kind of complicated. I studied some traffic replay as I interacted with claude code in an ACP session to verify the below:
So what I'm trialing out in a PR is the following approach: When in a chat buffer and we initiate an ACP session, we capture the During the send, we replace backslash-prefixed ACP commands (we have the list so we can do it accurately) with their This give us the benefit of ACP command completion without risk of command collision with codecompanion builtins. Also, as underlying ACP clients/SDKs get updated we can immediately leverage those new commands. |
Beta Was this translation helpful? Give feedback.
-
PR for those interested: #2260 . It's working quite well! Just cranked out an internal PR using the ACP integration with completions and custom commands |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do custom or built-in claude code slash commands (defined in claude code) work when using claude code via ACP? These work out of the box in Zed with the claude code ACP client; however, I'm not sure how to use them with codecompanion.
Eg;
/cost
doesn't do anything.Beta Was this translation helpful? Give feedback.
All reactions