Skip to content

Commands ​

CodeCompanion has six commands, one per interaction plus the action palette and code review. None of them 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 current chat buffer
:CodeCompanionChat ChangesOpen every file the LLM has changed in the quickfix list
:CodeCompanionChat RefreshCacheRefresh the editor context, slash commands and tools that are conditionally enabled

Inline ​

CommandDescription
:CodeCompanion <prompt>Send the prompt to the inline interaction
:CodeCompanion adapter=<adapter> <prompt>Send the prompt with a specific adapter
:CodeCompanion /<alias>Run a prompt library item by its alias

CLI ​

CommandDescription
:CodeCompanionCLIOpen a new CLI interaction
:CodeCompanionCLI <prompt>Send the prompt to the last CLI interaction, creating one if none exist
:CodeCompanionCLI! <prompt>Send and submit the prompt, keeping the cursor in the current buffer
:CodeCompanionCLI agent=<agent> <prompt>Start a new CLI interaction with a specific agent
: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
:CodeCompanionActions RefreshReload the action palette and prompt library
:CodeCompanionCmd <prompt>Generate a command in the command-line

Released under the Apache-2.0 License.