|
1 | | -*codecompanion.txt* For NVIM v0.11 Last change: 2025 December 19 |
| 1 | +*codecompanion.txt* For NVIM v0.11 Last change: 2025 December 21 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *codecompanion-table-of-contents* |
@@ -997,10 +997,9 @@ The configuration for both types of adapters is exactly the same, however they |
997 | 997 | sit within their own tables (`adapters.http.*` and `adapters.acp.*`) and have |
998 | 998 | different options available. HTTP adapters use `models` to allow users to |
999 | 999 | select the specific LLM they’d like to interact with. ACP adapters use |
1000 | | -`commands` to allow users to customize their interaction with agents |
1001 | | -(e.g. enabling `yolo` mode). As there is a lot of shared functionality between |
1002 | | -the two adapters, it is recommend that you read this page alongside the ACP |
1003 | | -one. |
| 1000 | +`commands` to allow users to customize their interaction with agents (e.g.� |
| 1001 | +enabling `yolo` mode). As there is a lot of shared functionality between the |
| 1002 | +two adapters, it is recommend that you read this page alongside the ACP one. |
1004 | 1003 |
|
1005 | 1004 |
|
1006 | 1005 | CHANGING AN ADAPTER ~ |
@@ -1054,7 +1053,7 @@ the adapter’s URL, headers, parameters and other fields at runtime. |
1054 | 1053 | <https://github.com/olimorris/codecompanion.nvim/discussions/601> |
1055 | 1054 | Supported `env` value types: - **Plain environment variable name (string)**: if |
1056 | 1055 | the value is the name of an environment variable that has already been set |
1057 | | -(e.g. `"HOME"` or `"GEMINI_API_KEY"`), the plugin will read the value. - |
| 1056 | +(e.g.� `"HOME"` or `"GEMINI_API_KEY"`), the plugin will read the value. - |
1058 | 1057 | **Command (string prefixed with cmd:)**: any value that starts with `cmd:` will |
1059 | 1058 | be executed via the shell. Example: `"cmd:op read |
1060 | 1059 | op://personal/Gemini/credential --no-newline"`. - **Function**: you can provide |
@@ -2751,7 +2750,7 @@ The fastest way to copy an LLM’s code output is with `gy`. This will yank the |
2751 | 2750 | nearest codeblock. |
2752 | 2751 |
|
2753 | 2752 |
|
2754 | | -APPLYING AN LLM’S EDITS TO A BUFFER OR FILE ~ |
| 2753 | +APPLYING AN LLM�S EDITS TO A BUFFER OR FILE ~ |
2755 | 2754 |
|
2756 | 2755 | The |codecompanion-usage-chat-buffer-tools-files| tool, combined with the |
2757 | 2756 | |codecompanion-usage-chat-buffer-variables.html-buffer| variable or |
@@ -2856,19 +2855,8 @@ CodeCompanion provides comprehensive support for the ACP specification: |
2856 | 2855 |
|
2857 | 2856 | SUPPORTED ADAPTERS |
2858 | 2857 |
|
2859 | | - ----------------------------------------------------------------------- |
2860 | | - Adapter Description Special Features |
2861 | | - --------------- ----------------------- ------------------------------- |
2862 | | - Claude Code Anthropic’s Claude Code OAuth authentication, tool |
2863 | | - CLI output trimming |
| 2858 | +Please see the |codecompanion-configuration-adapters-acp| page. |
2864 | 2859 |
|
2865 | | - Gemini CLI Google’s Gemini CLI Multiple auth methods (OAuth, |
2866 | | - API key, Vertex AI), YOLO mode |
2867 | | - |
2868 | | - Auggie CLI Augment Code CLI Standard ACP support |
2869 | | - |
2870 | | - Codex OpenAI Codex Full ACP implementation |
2871 | | - ----------------------------------------------------------------------- |
2872 | 2860 |
|
2873 | 2861 | CLIENT CAPABILITIES |
2874 | 2862 |
|
@@ -3902,8 +3890,7 @@ The plugin allows you to run tools on autopilot, with YOLO mode. This |
3902 | 3890 | automatically approves any tool use instead of prompting the user, disables any |
3903 | 3891 | diffs, submits errors and success messages and automatically saves any buffers |
3904 | 3892 | that tools may have edited. In the chat buffer, the keymap `gty` will toggle |
3905 | | -YOLO mode on/off. Alternatively, set the global variable |
3906 | | -`vim.g.codecompanion_yolo_mode` to enable this or set it to `nil` to undo this. |
| 3893 | +YOLO mode on/off. |
3907 | 3894 |
|
3908 | 3895 |
|
3909 | 3896 | SECURITY AND APPROVALS ~ |
@@ -4670,7 +4657,7 @@ These handlers manage tool/function calling: |
4670 | 4657 | as a great reference to understand how they’re working with the output of the |
4671 | 4658 | API |
4672 | 4659 |
|
4673 | | -OPENAI’S API OUTPUT |
| 4660 | +OPENAI�S API OUTPUT |
4674 | 4661 |
|
4675 | 4662 | If we reference the OpenAI documentation |
4676 | 4663 | <https://platform.openai.com/docs/guides/text-generation/chat-completions-api> |
@@ -5324,7 +5311,8 @@ Let’s breakdown the prompts in that workflow: |
5324 | 5311 | opts = { auto_submit = false }, |
5325 | 5312 | content = function() |
5326 | 5313 | -- Leverage YOLO mode which disables the requirement of approvals and automatically saves any edited buffer |
5327 | | - vim.g.codecompanion_yolo_mode = true |
| 5314 | + local approvals = require("codecompanion.interactions.chat.tools.approvals") |
| 5315 | + approvals:toggle_yolo_mode() |
5328 | 5316 |
|
5329 | 5317 | -- Some clear instructions for the LLM to follow |
5330 | 5318 | return [[### Instructions |
@@ -6400,7 +6388,7 @@ tool to function. In the case of Anthropic, we insert additional headers. |
6400 | 6388 | < |
6401 | 6389 |
|
6402 | 6390 | Some adapter tools can be a `hybrid` in terms of their implementation. That is, |
6403 | | -they’re an adapter tool that requires a client-side component (i.e. a |
| 6391 | +they’re an adapter tool that requires a client-side component (i.e.� a |
6404 | 6392 | built-in tool). This is the case for the |
6405 | 6393 | |codecompanion-usage-chat-buffer-tools-memory| tool from Anthropic. To allow |
6406 | 6394 | for this, ensure that the tool definition in `available_tools` has |
|
0 commit comments