Skip to content

Commands ​

CodeCompanion has six commands: one for each interaction, plus the action palette and code reviews. None are mapped to keys by default.

Chat ​

CommandDescription
:CodeCompanionChatOpen a new chat buffer
:CodeCompanionChat <prompt>Open a chat buffer and send the prompt
:CodeCompanionChat adapter=<adapter> model=<model>Open a chat buffer with a specific HTTP adapter and model
:CodeCompanionChat adapter=<adapter> command=<command>Open a chat buffer with a specific ACP adapter and command
:CodeCompanionChat ToggleShow or hide the last chat buffer, creating one if none exist
:CodeCompanionChat AddAdd the visual selection to the last chat buffer, creating one if none exist
:CodeCompanionChat ChangesOpen every file the LLM has changed in the quickfix list
:CodeCompanionChat RefreshCacheRe-check which conditionally enabled tools and slash commands are available

adapter= and model= can be used on their own, and alongside a prompt.

Inline ​

CommandDescription
:CodeCompanionAsk for a prompt, then send it to the inline interaction
:CodeCompanion <prompt>Send the prompt to the inline interaction
:CodeCompanion adapter=<adapter> <prompt>Send the prompt with a specific HTTP adapter
:CodeCompanion /<alias> <prompt>Run a prompt library item by its alias, with an optional prompt of your own

CLI ​

CommandDescription
:CodeCompanionCLIOpen a new CLI interaction, or send the visual selection to the last one
:CodeCompanionCLI <prompt>Send the prompt to the last CLI interaction, creating one if none exist
:CodeCompanionCLI! <prompt>Send the prompt and submit it
:CodeCompanionCLI agent=<agent>Open a new CLI interaction with a specific agent
:CodeCompanionCLI agent=<agent> <prompt>Send the prompt to that agent's CLI interaction, creating one if none exist
:CodeCompanionCLI AskWrite the prompt in a buffer with editor context, then save to send it
:CodeCompanionCLI InstallWrite CodeCompanion's hooks into your CLI agents' settings

Code Review ​

CommandDescription
:CodeCompanionCodeReviewOpen the changes made since the last review in the review window
:CodeCompanionCodeReview BranchReview every change on the branch since it left the default branch
:CodeCompanionCodeReview CommentComment on the current line or visual selection

Others ​

CommandDescription
:CodeCompanionActionsOpen the action palette, or the chat's own palette from a chat buffer
:CodeCompanionActions RefreshReload the action palette and prompt library, then open it
:CodeCompanionCmd <prompt>Generate a command for the command-line

Released under the Apache-2.0 License.