Skip to content

Commit c77ffc4

Browse files
authored
AGENTS.md standard support in Copilot Chat in VS Code [GA] (#57874)
1 parent 92c70ba commit c77ffc4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Once saved, these instructions will apply to the current project in Eclipse that
221221

222222
* **Agent instructions** are used by AI agents.
223223

224-
You can create one or more `AGENTS.md` files, stored anywhere within the repository. When {% data variables.product.prodname_copilot_short %} is working, the nearest `AGENTS.md` file in the directory tree will take precedence. For more information, see the [openai/agents.md repository](https://github.com/openai/agents.md).
224+
{% data reusables.copilot.custom-instructions-agents %}
225225

226226
Alternatively, you can use a single `CLAUDE.md` or `GEMINI.md` file stored in the root of the repository.
227227

@@ -257,7 +257,10 @@ Once saved, these instructions will apply to the current project in Eclipse that
257257

258258
* **Agent instructions** are used by AI agents.
259259

260-
For {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode_shortname %}, instructions must be in a file called `AGENTS.md` in the root of the workspace. For more information, see the [openai/agents.md repository](https://github.com/openai/agents.md).
260+
{% data reusables.copilot.custom-instructions-agents %}
261+
262+
> [!NOTE]
263+
> Support of `AGENTS.md` files outside of the workspace root is currently turned off by default. For details of how to enable this feature, see [Use custom instructions in VS Code](https://code.visualstudio.com/docs/copilot/customization/custom-instructions#_use-an-agentsmd-file) in the {% data variables.product.prodname_vscode_shortname %} documentation.
261264
262265
## Creating repository-wide custom instructions
263266

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can create one or more `AGENTS.md` files, stored anywhere within the repository. When {% data variables.product.prodname_copilot_short %} is working, the nearest `AGENTS.md` file in the directory tree will take precedence. For more information, see the [openai/agents.md repository](https://github.com/openai/agents.md).

data/reusables/copilot/repository-custom-instructions-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following table shows which {% data variables.product.prodname_copilot_short
2020

2121
**1:** Repository-wide instructions (using the `.github/copilot-instructions.md` file).<br>
2222
**2:** Repository-wide instructions and path-specific instructions (using `.github/instructions/**/NAME.instructions.md` files).<br>
23-
**3:** Repository-wide instructions, path-specific instructions, and a single `AGENTS.md` file in the root of the workspace.<br>
23+
**3:** Repository-wide instructions, path-specific instructions, and agent instructions (using `AGENTS.md` files).<br>
2424
**4:** Repository-wide instructions, path-specific instructions, and agent instructions (using `AGENTS.md`, `CLAUDE.md` or `GEMINI.md` files).<br>
2525
**X:** Custom instructions are not supported.<br>
2626
**N/A:** Feature not available on this platform.

0 commit comments

Comments
 (0)