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: content/copilot/concepts/agents/coding-agent/about-custom-agents.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The {% data variables.copilot.agent_profile %} defines the {% data variables.cop
27
27
***Prompt**: Custom instructions that define the agent's behavior and expertise.
28
28
***Tools** (optional): Specific tools the agent can access. By default, agents can access all available tools, including built-in tools and MCP server tools.
29
29
30
-
{% data variables.copilot.agent_profiles_caps %} can also include MCP server configurations using the `mcp-server` property.
30
+
{% data variables.copilot.agent_profiles_caps %} can also include MCP server configurations using the `mcp-server` property.
31
31
32
32
### Example {% data variables.copilot.agent_profile %}
@@ -35,11 +35,11 @@ The agent works by using a combination of natural language processing and machin
35
35
36
36
### Input processing
37
37
38
-
The input prompt from the user is combined with other relevant, contextual information to form a prompt. That prompt is sent to a large language model for processing. Inputs can take the form of plain natural language, code snippets, or references to files in your terminal.
38
+
Your input is combined with relevant contextual information to form a prompt. That prompt is sent to a large language model for processing. Inputs can take the form of plain natural language, code snippets, or references to files in your terminal.
39
39
40
40
### Language model analysis
41
41
42
-
The prompt is then passed through a large language model, which is a neural network that has been trained on a large body of data. The language model analyzes the input prompt to help the agent reason on the task and leverage necessary tools.
42
+
The prompt is then passed through a large language model, which is a neural network that has been trained on a large body of data. The language model analyzes the input prompt to help the agent reason about the task and use the necessary tools.
43
43
44
44
### Response generation
45
45
@@ -76,15 +76,15 @@ For more information about limitations, see the section [Limitations of {% data
76
76
77
77
### Ensure your tasks are well-scoped
78
78
79
-
{% data variables.copilot.copilot_cli %} leverages your prompt as key context when generating a pull request. The more clear and well-scoped the prompt you assign to the agent, the better the results you will get. An ideal issue includes:
79
+
{% data variables.copilot.copilot_cli %} leverages your prompt as key context when completing a task. The clearer and more well-scoped the prompt you provide, the better the results you will get. An ideal prompt includes:
80
80
81
81
* A clear description of the problem to be solved or the work required.
82
82
* Complete acceptance criteria on what a good solution looks like (for example, should there be unit tests?).
83
83
* Hints or pointers on what files need to be changed.
84
84
85
85
### Customize your experience with additional context
86
86
87
-
{% data variables.copilot.copilot_cli %} leverages your prompt, comments and the repository’s code as context when generating suggested changes. To enhance {% data variables.product.prodname_copilot_short %}’s performance, consider implementing custom {% data variables.product.prodname_copilot_short %} instructions to help the agent better understand your project and how to build, test and validate its changes. For more information, see "Add custom instructions to your repository" in [AUTOTITLE](/copilot/tutorials/coding-agent/get-the-best-results#adding-custom-instructions-to-your-repository).
87
+
{% data variables.copilot.copilot_cli %} leverages your promptand the repository’s code as context when generating suggested changes. To enhance {% data variables.product.prodname_copilot_short %}’s performance, consider implementing custom {% data variables.product.prodname_copilot_short %} instructions to help the agent better understand your project and how to build, test and validate its changes. For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions).
88
88
89
89
### Use {% data variables.copilot.copilot_cli %} as a tool, not a replacement
90
90
@@ -102,11 +102,13 @@ If you encounter any issues or limitations with {% data variables.copilot.copilo
102
102
103
103
### Constraining {% data variables.product.prodname_copilot_short %}’s permissions
104
104
105
-
By default, {% data variables.product.prodname_copilot_short %} only has access to files and folders in, and below, the directory from which {% data variables.copilot.copilot_cli %} was invoked. Ensure you trust the files in this directory. If {% data variables.product.prodname_copilot_short %} wishes to access files outside the current directory, it will ask for permission. Only grant it permission if you trust the contents of that directory.
105
+
By default, {% data variables.copilot.copilot_cli_short %}:
106
106
107
-
{% data variables.product.prodname_copilot_short %} will ask for permission before modifying files. Ensure that it is modifying the correct files before granting permission.
107
+
* Only has access to files and folders in, and below, the directory from which {% data variables.copilot.copilot_cli %} was invoked. Ensure you trust the files in this directory. If {% data variables.product.prodname_copilot_short %} wishes to access files outside the current directory, it will ask for permission. Only grant it permission if you trust the contents of that directory.
108
+
* Will ask for permission before modifying files. Ensure that it is modifying the correct files before granting permission.
109
+
* Will ask for permission before executing commands that may be dangerous. Review these commands carefully before giving it permission to run.
108
110
109
-
{% data variables.product.prodname_copilot_short %} will also ask for permission before executing commands that may be dangerous. Review these commands carefully before giving it permission to run.
111
+
You can grant {% data variables.copilot.copilot_cli_short %} specific permissions, or all permissions, by using the various command line options: for example, `--allow-tool [TOOLS...]`, `--allow-all-tools`, `--allow-all` (or its slash command equivalent `/allow-all` for use in an interactive session). For more information, see [AUTOTITLE](/copilot/reference/cli-command-reference#command-line-options). Typically, when you use {% data variables.copilot.copilot_cli_short %} in autopilot mode, you will grant it full permissions to allow it to complete a task autonomously, without requiring you to approve activity as it works on the task. For more information, see [AUTOTITLE](/copilot/concepts/agents/copilot-cli/autopilot).
110
112
111
113
For more information about security practices while using {% data variables.copilot.copilot_cli %}, see "Security considerations" in [AUTOTITLE](/copilot/concepts/agents/about-copilot-cli#security-considerations).
0 commit comments