You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/copilot/copilot-edits.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Use Copilot Edits to start an AI-powered code editing session and iterate quickl
15
15
Copilot Edits can function in two modes:
16
16
17
17
*[*Edit mode*](#use-edit-mode): select which files to edit, provide the relevant context and prompt, and Copilot will suggest code edits.
18
-
*[*Agent mode*](#use-agent-mode-preview) (preview): let Copilot determine which files to edit and which commands to run. Copilot will autonomously use different tools to iterate and resolve issues to achieve the desired outcome.
18
+
*[*Agent mode*](#use-agent-mode-preview) (preview): let Copilot determine which files to edit and which commands to run. Copilot will autonomously use different [tools](#agent-mode-tools) to iterate and resolve issues to achieve the desired outcome.
19
19
20
20
> [!TIP]
21
21
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
@@ -79,7 +79,7 @@ In agent mode, Copilot Edits operates in a more autonomous and dynamic manner to
79
79
* Offers both code changes and terminal commands to complete the task. For example, Copilot might compile code, install packages, run tests, and more.
80
80
* Monitors correctness of code edits and terminal command output and iterates to remediate issues.
81
81
82
-
Copilot Edits agent mode uses a set of _tools_ to accomplish these tasks. For example, to determine which files to edit, gather project context, run terminal commands, read terminal output, and more.
82
+
Copilot Edits agent mode uses a set of [_tools_](#agent-mode-tools) to accomplish these tasks. For example, to determine which files to edit, gather project context, run terminal commands, read terminal output, and more.
83
83
84
84
To enable agent mode in Copilot Edits, set the `setting(github.copilot.chat.agent.enabled)` setting to `true`.
85
85
@@ -193,6 +193,21 @@ In the Chat view, select the **Edit with Copilot** button at the bottom of the c
193
193
194
194
After moving a chat request to Copilot Edits, the chat request is removed from the chat conversation in the Chat view.
195
195
196
+
## Agent mode tools
197
+
198
+
To complete a request, Copilot Edits uses a set of _tools_ to accomplish the individual tasks. The following list gives an overview of the built-in tools:
199
+
200
+
* search_codebase - Search the workspace for relevant code or documentation
201
+
* file_search - Search for files by glob patterns (e.g., "**/*.js")
202
+
* grep_search - Do a text search in files for exact strings or regex patterns
203
+
* read_file - Read the contents of a file
204
+
* edit_file - Edit a file in the workspace
205
+
* list_dir - List the contents of a directory
206
+
* run_in_terminal - Run shell commands in a terminal
207
+
* get_terminal_output - Get output from a previously run terminal command
208
+
* get_errors - Check for errors in code files
209
+
* get_changed_files - Get diffs of file changes
210
+
196
211
## Settings
197
212
198
213
The following list contains the settings related to Copilot Edits. You can configure settings through the Setting editor (`kb(workbench.action.openSettings)`).
0 commit comments