|
| 1 | +--- |
| 2 | +title: Testing and releasing {% data variables.copilot.custom_agents_short %} in your organization or enterprise |
| 3 | +intro: 'Ensure your {% data variables.copilot.custom_agents_short %} are performant and compliant before releasing them to your company.' |
| 4 | +versions: |
| 5 | + feature: copilot |
| 6 | +topics: |
| 7 | + - Copilot |
| 8 | +shortTitle: Test custom agents |
| 9 | +contentType: how-tos |
| 10 | +--- |
| 11 | + |
| 12 | +{% data reusables.copilot.custom-agents-preview-note %} |
| 13 | + |
| 14 | +## Introduction |
| 15 | + |
| 16 | +Before you release or update a {% data variables.copilot.copilot_custom_agent_short %} in your organization or enterprise, you can test the agent privately to ensure it meets your standards. Once you are satisfied, you can then easily change the location of your {% data variables.copilot.agent_profile %} to make it available across your company. |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Before you can test a {% data variables.copilot.copilot_custom_agent_short %}, you need to set up your organization or enterprise for {% data variables.copilot.custom_agents_short %}. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-organization/prepare-for-custom-agents) or [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/prepare-for-custom-agents). |
| 21 | + |
| 22 | +## 1. Create your test {% data variables.copilot.copilot_custom_agent_short %} |
| 23 | + |
| 24 | +1. In your organization or enterprise's `.github-private` repository, create a new directory called `.github/agents`. Agents stored in this directory are only available to members of your organization or enterprise who have access to the `.github-private` repository, and can only be used when they start a task within that repository. |
| 25 | +1. In your `.github/agents` directory, create the {% data variables.copilot.agent_profile %} for your test agent. You can create a net-new profile or duplicate an existing profile to test potential updates. For information on configuring an {% data variables.copilot.agent_profile %}, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/create-custom-agents#configuring-an-agent-profile). |
| 26 | +1. Merge your test {% data variables.copilot.agent_profile %} into the default branch of your repository. |
| 27 | + |
| 28 | +## 2. Test your {% data variables.copilot.copilot_custom_agent_short %} |
| 29 | + |
| 30 | +1. Navigate to the agents tab at [https://github.com/copilot/agents](https://github.com/copilot/agents?ref_product=copilot&ref_type=engagement&ref_style=text&utm_source=docs-signup-custom-agents&utm_medium=docs&utm_campaign=universe25post). |
| 31 | +1. Using the dropdown menu in the prompt box, select your `.github-private` repository. |
| 32 | +1. Select {% octicon "copilot" aria-label="Select a custom agent" %}, then click your test agent. |
| 33 | +1. To test your {% data variables.copilot.copilot_custom_agent_short %}, send {% data variables.product.prodname_copilot_short %} a prompt. |
| 34 | +1. In the "Recent sessions" section, click your session to see detailed information about your results. |
| 35 | +1. Continue making changes and testing your {% data variables.copilot.copilot_custom_agent_short %} as needed until you are satisfied with its performance. |
| 36 | + |
| 37 | +## 3. Release your {% data variables.copilot.copilot_custom_agent_short %} |
| 38 | + |
| 39 | +1. In your `.github-private` repository, move your {% data variables.copilot.agent_profile %} from the `.github/agents` directory into the `agents` directory. |
| 40 | +1. Merge your changes into the default branch. Your {% data variables.copilot.copilot_custom_agent_short %} is now available to all users in your organization or enterprise. |
| 41 | + |
| 42 | +## Next steps |
| 43 | + |
| 44 | +To monitor the usage of {% data variables.copilot.custom_agents_short %} in your organization, filter your organization's audit log by `actor:Copilot`. See [AUTOTITLE](/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization). |
| 45 | + |
| 46 | +To monitor the usage of {% data variables.copilot.custom_agents_short %} in your enterprise, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/monitor-agentic-activity). |
0 commit comments